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

    Can pfSense control other devices

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 5 Posters 2.2k 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.
    • R
      Ragai
      last edited by

      I have a few DSL/CABLE modems that loss connection every few days when ISPs change something at their end. Is there a way to reset these devices? For example to reset the DSL/cable modem when the gateway goes down for a while.
      If pfSense can send some sort of a signal to a port then a simple circuit can power cycle these devices.

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        No

        1 Reply Last reply Reply Quote 0
        • B
          Briantist
          last edited by

          Not out of the box, but you could use a power strip with IP connectivity and an API to set something like that up. It would require you to write the necessary scripts though. If you're interested in posting a bounty, it's something I might be willing to take on, depending on the scope of the project.

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

            Do your modems have a telnet or ssh interface? I could imagine a script that logged into the modem and issued a reboot. I've never tried that though.  ;)

            Steve

            1 Reply Last reply Reply Quote 0
            • W
              wallabybob
              last edited by

              @Ragai:

              If pfSense can send some sort of a signal to a port then a simple circuit can power cycle these devices.

              Does your system have a parallel port? If so, it could possibly be used for digital control of external devices. I suspect google could help help you find a parallel port interface with a number of relays that could switch power to external devices. It would probably require custom software.

              1 Reply Last reply Reply Quote 0
              • R
                Ragai
                last edited by

                Actually, that is what I was thinking of. Few years ago, I did something like that. There was a parallel-port-based ISA card that we were able to access any of its 23 ports directly, turning them ON or OFF at will. I did a simple PCB with switching transistors that reset the modems and hung computers. Working with less than 12V, we didn't have to deal with complicated 120v regulation, certification, etc… May be it was sophisticated but it was a lot cheaper ;)
                I am currently serving few small customers who can't afford few hundred dollars just to rest the modems. I'll use a simple timer that power cycle the modem every morning for the one that is having troubles right now.
                I do not know how much difficult or simple it is to write a script that uses the router parallel (or serial) port as I do not have much experience programming under BSD.

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