Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




4 posts

Wannabe Geek


# 214064 26-Apr-2017 14:44
Send private message

Hi All

 

I think im using the right terms here, I will give you an Outline of what the issue is and what we are trying to do.

 

The "PROBLEM"

 

For our Business clients they have fibre connections with Cyberoam Routers out of preference.  We also use a particular ISP out of preference for most, but some clients use there own.

 

Our preferred ISP has an issue with the Cyberoams, particularly when night time maintenance occurs.  The Internet connection will drop out and not re-establish itself until the modem is rebooted or power off/on.  

 

We have about a dozen sites in this predicament.  The connection drops off and wont reestablish.  I have contacted the re-seller and the only solution they provided was to set the modems gateway address to Static instead of DHCP.  

 

Bear in mind these are business clients and run Static IP's out of preference.  I did a trial and set a couple to static address as issued by the ISP.  It made the situation worse.  With the gateway on DHCP it allows us or the site to reboot the router and the connection reestablishes.   With it set to static it does not.  I have had to call the client and direct them over the phone to change the gateway setting back.

 

So you can see the issue, one network maintenance outage can cause up to a dozen clients to come in the morning with no Internet connection and sometimes no VOIP phones either.  This is not ideal, some are local and I can drive to, some users are not able to reboot the device and some sites are hours drive away and can then only be contacted by mobile.

 

The "PLAN"

 

Place a basic Mikrotik Routerboard RB750Gr3 in front of a Cyberoam Router.  You can run a script on Mikrotik to allow the router to auto reboot after say 5 minutes of Internet loss, Mikrotik Auto Reboot Script https://forum.mikrotik.com/viewtopic.php?t=56138 I could use something like the Google DNS server 8.8.8.8  If the Mikrotik can't talk to that after 5 minutes it restarts, this should establish the connection back to the cyberoam.  

 

 

 

 

 

Otherwise is there a script or setting I should change in the Cyberoam you think, is the idea itself mad????

 

My issue is the configuration of the Mikrotik, I have tried setting to Pass-thru or Bridge etc but end up getting locked out and it does not work, I know the script itself works cause I can get it to reboot after 5 mins.

 

Any configuration sites or help would be much appreciated.

 

Regards

 

 

 

Brendan


Create new topic
2587 posts

Uber Geek

Trusted
Lifetime subscriber

  # 1770717 26-Apr-2017 15:05
Send private message

Have you asked Cyberoam whether 'automatically reboot after X minutes of internet loss' is possible to configure, likely from the command line?





"4 wheels move the body.  2 wheels move the soul."

“Don't believe anything you read on the net. Except this. Well, including this, I suppose.” Douglas Adams

28108 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  # 1770734 26-Apr-2017 15:47
Send private message

I'm confused - how would setting a Mikrotik to reboot fix the issue with a 3rd party piece of hardware?

 

 


 
 
 
 




4 posts

Wannabe Geek


# 1771114 27-Apr-2017 10:18
Send private message

Setting up the Mikrotek in front of the Cyberoam would allow it to monitor Internet Connectivity and reboot the unit using the script included in the original post.  This would flow internet thru to the Cyberoam.




4 posts

Wannabe Geek


  # 1771116 27-Apr-2017 10:18
Send private message

Talked to Cyberoam support today:

 

Mohin:
So basically, there is some issue with ISP end during maintenance hour and connection got terminated and it does not get re-established auto matically.
Mohin:
There is no such feature for auto reboot the device.

 

 

 

So next it happens I am going to get them the a specific log from the CLI, and copy and paste it to forward to them for inspection

 

Enter CLI, hit option 4

 

Enter:  cyberoam diagnostics show sysmsg

 

Then:  cyberoam diagnostics show syslog line 10000

 

 

 

Have to wait till next it happens then run these commands before rebooting the Cyberoam and reconnecting to the Internet.


28108 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  # 1771120 27-Apr-2017 10:23
One person supports this post
Send private message

deltaflyer:

 

Setting up the Mikrotek in front of the Cyberoam would allow it to monitor Internet Connectivity and reboot the unit using the script included in the original post.  This would flow internet thru to the Cyberoam.

 

 

How? Unless you configure it for double NAT the Mikrotik will not have internet access.

 

I also don't understand why when you say rebooting the Cyberroam fixes the issue that rebooting a Mikrotik would fix things.

 

 


5525 posts

Uber Geek


  # 1771125 27-Apr-2017 10:30
Send private message

How is your IP address(es) supplied to you - PPP or DHCP?

 

Rebooting a router every time a connection drops is a pretty drastic approach - but if that's the way you want to do it, dare I suggest an automatic reboot at the same time every day?


963 posts

Ultimate Geek

Trusted

  # 1771135 27-Apr-2017 10:46
Send private message

So you are saying the cyberoam routers you are using are not attempting to re-establish PPPoE connection if you have a drop? unless they are rebooted? 

 

If replacing the cyberoam router is not an acceptable solution then adding another router into the mix is going to introduce problems in my opinion. Is there any particular reason why you have to use this piece of hardware? is there no firmware update or setting you can modify to make it attempt to re-establish a PPP connection after a certain time?






 
 
 
 




4 posts

Wannabe Geek


  # 1771154 27-Apr-2017 11:17
Send private message

Using Cyberoams was not my decision as I dont handle purchasing, just technical, they are a good unit, but they have this flaw with MyRepublic

 

@sbiddle, that answers my question of needing double NAT on the Mikrotik.  The Cyberoam is not capable of coming back online after a MyRepublic / Vocus Maintenance, so the idea was to Place a Mikrotik in front to handle connecting to the Internet itself, run this script https://forum.mikrotik.com/viewtopic.php?t=56138 on it so it would auto reboot after 5 minutes of disconnection to 8.8.8.8.  Thus saving a manual or client reboot of the cyberoam, as the cyberoam should manage to stay connected to the mikrotik.  Just having issues with configuration on the Mikrotik itself.

 

@runningman Checked with MyRepublic they only supply DHCP IP address's not PPP, no authenticaton settings like usernames and passwords required they told me

 

@darylblake Yes the Cyberoam is not re-establishing connection if there is a drop, unless I log into the device and resave the gateway or perform a reboot.  I realise adding a Mikrotik will possibly add issues, I would need it to kind pass thru all trafffic and still use the Cyberoams firewall.  We have done a couple of firmware updates in the last year which have not made a difference, Cyberoam have not mentioned ability for the device to connect at a certain time.


5525 posts

Uber Geek


  # 1771214 27-Apr-2017 12:39
Send private message

If your IP is supplied by DHCP, what is the lease time? Surely the cyberoam will pick up the interface again when the lease expires, even if it is incapable of monitoring it for a drop.

 

If that's the case, can the lease time be shortened?


Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Kiwi workers still falling victim to old cyber tricks
Posted 12-Aug-2019 20:47


Lightning Lab GovTech launches 2019 programme
Posted 12-Aug-2019 20:41


Epson launches portable laser projector
Posted 12-Aug-2019 20:27


Huawei launches new distributed HarmonyOS
Posted 12-Aug-2019 20:20


Lenovo introduces single-socket servers for edge and data-intensive workloads
Posted 9-Aug-2019 21:26


The Document Foundation announces LibreOffice 6.3
Posted 9-Aug-2019 16:57


Symantec sell enterprise security assets for US$ 10.7 billion to Broadcom
Posted 9-Aug-2019 16:43


Artificial tongue can distinguish whisky and identify counterfeits
Posted 8-Aug-2019 20:20


Toyota and Preferred Networks to develop service robots
Posted 8-Aug-2019 20:11


Vodafone introduces new Vodafone TV device
Posted 7-Aug-2019 17:16


Intel announces next-generation Intel Xeon Scalable processors with up to 56 cores
Posted 7-Aug-2019 15:41


Nokia 2.2 released in New Zealand
Posted 5-Aug-2019 19:38


2degrees celebrating ten years
Posted 5-Aug-2019 05:00


Sure Petcare launches SureFeed microchip pet feeder
Posted 2-Aug-2019 17:00


Symantec Threat Intelligence: revival and rise of email extortion scams
Posted 2-Aug-2019 16:55



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.