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

    Data Usage Caps & Time Scheduling 2 WANS

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 3 Posters 1.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
      acatalano
      last edited by

      I am very new to PFSense and would like to use it to control data usage. I have two WANs one with no data cap (a T1 line) and the other a Hughesnet satellite connection. Although the satellite connection is faster, it comes with a data usage cap: 10 G/month from 8 AM till 2AM the following day and 50 G/month from 2 AM to 8 AM. The satellite is for fail-over primarily, but it would be nice to actually use some of it, especially at night when the cap is larger for things like cloud backups.

      So although PFSense provides a means to regulate bandwidth usage using Tiers to determine failover and bandwidth, I'm not aware if it can regulate usage based on both (or either) data usage and/or time of day.

      Is any of this possible?

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Hmmm.  You might find some joy using rule schedules and gateway groups.

        If you were to define two gateway groups.  One that had the T1 as tier 1 and satellite as tier 2, call it PREFER_T1 and another with satellite as tier 1 and T1 as tier 2, call it PREFER_SAT.

        Then, on your LAN:

        Pass any any any Gateway PREFER_SAT schedule 2AM - 8AM
        Pass any any any Gateway PREFER_T1 no schedule

        That might get you going in the right direction.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • A
          acatalano
          last edited by

          Many thanks for the great suggestion. This could indeed work well enough to simulate the data cap. I believe there is a way to specify bandwidth for each WAN. By assigning a lower bandwidth to the satellite connection than it really is, perhaps that might add an additional variable that could be used to adjust usage? What do you think? I seem to recall in reading the manual that the usage is apportioned to each WAN based on the bandwidth that was specified for that particular WAN. So "spoofing" the bandwidth might also help.

          Data usage control might be a nice feature in the future. I haven't seen anything like this in a commercial router, but I haven't owned too many and its difficult to discern from the specs. In the future it might be worthwhile to add a cellular modem as a WAN3, which of course has another data cap. I bought a TP-LINK load balancing/fail-over router but there really is very little flexibility in this area.

          As a sidenote, is it possible to "write-over" the firmware on a commercial router with PFSense? I've setup a small network to adjust the PFsense configuration variables without disturbing the status quo using a spare PC, but its overkill to dedicate a (relatively) power hungry PC to a router/firewall. Highjacking the TP-Link sounds attractive. I suppose there is a list here somewhere with a list of routers that can be overwritten…

          1 Reply Last reply Reply Quote 0
          • H
            heper
            last edited by

            atm pfsense only runs on pc architecture (cpu's).

            maybe someday it'll run on different cpu's

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