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

    Shutdown WAN when Reaching Data Cap?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    10 Posts 4 Posters 436 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.
    • W
      Witchboard
      last edited by

      Hi all.

      I have two ISPs and I have a load balance WAN setup. One of my ISPs has a data cap where the other does not. Is there a way I can shut down the WAN with the data cap once it gets close to going over?

      I'm not wanting to limit the speed, basically just stop using it if it gets 90% usage of the data and just use the one without the cap until the cap resets at the ISP.

      I'm new to pfSense and networking in general, but I'd think there would be a way to monitor the usage and set some kind of rule and reset on a monthly basis. Any tips on where I should look?

      GertjanG G 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @Witchboard
        last edited by

        @Witchboard

        Out of the box, there is this : SOFTWARE RELEASE: pfSense Plus v24.03

        There is also this :

        a73e732b-7c85-4578-b9d2-28780696e3c3-image.png

        Up to you to discover when these counters are reset.

        And yeah, pfSense hasn't a "stop using a WAN when xx bytes are used".
        This exists when you use the captive portal, but a captive portal isn't a WAN, but LAN interface thing.

        @Witchboard said in Shutdown WAN when Reaching Data Cap?:

        I'm new to pfSense and networking in general

        Look here : the same info as it exists since 1960 ( ? ) on the command line :

        61258a10-529b-485d-887e-3e71ff48000b-image.png

        Now you have all that is needed to work with.

        Mission : You want to automatize something.
        Two choices exist since the dawn of time :
        Hire someone.
        Write a script.

        You chose.
        Btw : Noop, I'm not joking 😊

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • G
          Gblenn @Witchboard
          last edited by Gblenn

          @Witchboard Depending on what type of metered WAN you actually have, there may be a solution inside the "ISP router" already. In many FWA routers today there is a function to monitor and at least send a message when a certain data limit has been exceeded.

          I'm using an LTE router for my failover connection and the TP-Link router I use lets me set a monthly allowance and then a trigger level to send a notification via sms.

          It doesn't stop the connection but I get the chance to act at least. There may be other FWA routers from different brands that could have more elaborate solutions, and perhaps the ability to stop the traffic completely...

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

            Thanks for the input guys. There's no router other than my pfSense for that ISP. It plugs directly into the modem, but before I started paying for unlimited, I would get messages letting me know I was getting near my cap. It may be a non issue since I'm running both now and have a load balanced gateway set up. I'll have to monitor the monthly data usage and see where it all ends up.

            G 1 Reply Last reply Reply Quote 0
            • G
              Gblenn @Witchboard
              last edited by

              @Witchboard So you actually have a fixed metered connection?? That is quite unusual... where is this?

              W R 2 Replies Last reply Reply Quote 0
              • W
                Witchboard @Gblenn
                last edited by

                @Gblenn

                It's not fixed as in they slam the door on me, it's fixed as in they charge me for an overage after I think 1TB. I can't recall as I've been paying an extra $50 a month for unlimited for a while now, but it cost less than the overage on a bad month. Looking to recoup those costs now that I can split my data between two ISPs.

                G 1 Reply Last reply Reply Quote 0
                • G
                  Gblenn @Witchboard
                  last edited by Gblenn

                  @Witchboard Ah yes, I meant fixed as in wired... vs wireless which is commonly offered as a metered connection, although many are not...

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    Witchboard @Gblenn
                    last edited by

                    @Gblenn Ah, understood. No, this is cabled internet, not a 5G wireless plan or anything.

                    1 Reply Last reply Reply Quote 0
                    • R
                      rune-san @Gblenn
                      last edited by

                      @Gblenn All of AT&T's DSL/Fixed Wireless/Fiber plans below 100Mbps plans have Data Caps. Same with Cox cable internet. I agree it's not common when looking across say, a large part of the US, but for those that are in that location, it's probably the only choice they've got.

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        Gblenn @rune-san
                        last edited by

                        @rune-san said in Shutdown WAN when Reaching Data Cap?:

                        @Gblenn All of AT&T's DSL/Fixed Wireless/Fiber plans below 100Mbps plans have Data Caps. Same with Cox cable internet. I agree it's not common when looking across say, a large part of the US, but for those that are in that location, it's probably the only choice they've got.

                        Hmm, makes sense when they offer connections over a shared resource like FWA, but fiber (or cable)... seems like a way to force people to pay extra, just because they can. Or to force people to abandon costly (for the operator) DSL.

                        Globally though, quite unusual...

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