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

    Basing gateway status on something other than ping/loss

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 1 Posters 564 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.
    • J
      Jckf
      last edited by

      Hello, forum! Long time listener, first time caller here ;) I recently installed a pfSense router at the in-laws' to do load balancing between their two Internet connections. One is cellular, and the other is a KASAT uplink. Both of these connections have a monthly bandwidth cap, which when exceeded causes the available bandwidth to be limited. This leaves the connection effectively useless, but Apinger does not detect any trouble as the link is still up and able to ping remote hosts. In turn, this makes pfSense route traffic over the capped connection, which slows the perceived speed of the entire setup.

      My question is this: Is it possible to have Apinger (or a script) base the gateway status on something like the time it takes to make a web request instead of just ping and/or packet loss?

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

        Shamelessly bumping my own thread ;) I've started developing a PHP class that lets you programmatically connect to the WebConfigurator to make changes. It's very low-level at the moment, but it working very well :) I plan to use it together with a simple wget operation that tests the responsiveness of each WAN interface, to automatically disable routing of traffic across a capped connection. Unless there are better options available, I might release this code.

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