Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Script to reset 3G usb modem

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 4 Posters 5.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      azizth
      last edited by

      Hi all,

      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

      1 Reply Last reply Reply Quote 0
      • C
        cicero44bc
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Erm…... I think you must have linked to the wrong post there.  :-\

          Steve

          1 Reply Last reply Reply Quote 0
          • C
            cicero44bc
            last edited by

            Yes I have! Managed to cut the 8 off the end! http://forums.freebsd.org/showthread.php?t=24738 Thanks!

            1 Reply Last reply Reply Quote 0
            • C
              cicero44bc
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • J
                jly2680
                last edited by

                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??

                1 Reply Last reply Reply Quote 0
                • C
                  cicero44bc
                  last edited by

                  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/

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.