Script to reset 3G usb modem
I have a Pfsense 2.0.1 server with two USB 3G keys (Huawei) in load balancing.
My problem is that the USB 3G modem are not reliable, they crash and I have to remove them from the server and put it again to re-work.
Is it possible to make a script on pfsense to say that if the connection is down, turn off and turn on the USB to reset the 3G modem?
Thank you for your help
Hi azizth, the last post in here looks very positive. http://forums.freebsd.org/showthread.php?t=2473 Might be what you need, let me know how you get on.
Erm…... I think you must have linked to the wrong post there. :-\
Yes I have! Managed to cut the 8 off the end! http://forums.freebsd.org/showthread.php?t=24738 Thanks!
Just a thought actually, I read this at work and so could not test on an actual pfSense box to test if usbconfig is installed or needs to be installed to get this to work. I'm tempted to have a play when we put this in as our main firewall and router within the next couple of months, we have a number of 3g dongles here. I've noticed a number of commercial solutions provide failover to 3g which is particularly useful for our site as our phone lines (for our cheap ADSL failover) and fiber go down the same pipe out of our building and potentially that whole pipe could be cut during underground works and our failover would be useless. I'll have a play and post back.
i follow the link you post..i modify the script regarding usbconfig power_of & on to restart my modem..but how can i add ppp command on the script??
I'm at work again and unable to test but this may be of use of on pfSense 2 or above - http://www.unix.com/man-page/FreeBSD/8/ppp/