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

    Howto ping hosts on LAN and Halt System

    General pfSense Questions
    2
    2
    1.3k
    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
      Rasco
      last edited by

      I am looking for a script that can ping hosts on the LAN and WLAN and when there are no host left, then pfSense router can halt the system.
      The reason is that my network 70% of the day doing nothing.

      1 Reply Last reply Reply Quote 0
      • E
        esnakk
        last edited by

        @Rasco:

        I am looking for a script that can ping hosts on the LAN and WLAN and when there are no host left, then pfSense router can halt the system.
        The reason is that my network 70% of the day doing nothing.

        Why not do it the other way around? Configure your router to use wake on lan (WOL) and if there IS traffic, it boots up and stays up. Sounds dangerous to allow a script to shut down the system. How ever a quick and dirty shell or perl script that checks the output of, for example tcpdump on an interface and a loop and a counter to check if nothing happened for X amount of minutes etc.

        OT: If electricity cost is the issue, why not switch to less power hungry components such as Intel Atom or similar, the power consumption on these while idling is almost none and probably switches, UPS, etc consumes more power than the router itself during these times your network users are busy IRL?

        Cheers
        E

        –
        Cheers,
        E

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