• Linux dual wan router?

    From RogerN@1:0/0 to All on Sat Oct 4 16:50:47 2014

    Here's my situation, I have a slow DSL (~730? kbps) connection, I'm on the border of not available. The great thing about the DSL it I have unlimited data usage.

    My other connection is satellite at 10-12 Mbps, it has unlimited data usage from midnight till 5AM and 10G data usage per month, resets on the 28th.

    The DSL has much faster ping that the satellite but slower downloading.

    Unless there is already something like it, I would like to build a linux router that would use wan1 ( or wan1 + wan2) from midnight till 5AM and keep track of wan1 data usage and allow a running total, updated daily, resetting to zero on the 28th of the month.

    So on the 28th, my data allowance might be 300 meg, next day, 600 meg ... up to 9,900 or so meg on the 27th. That way, if I don't use my limit for a few days, I can catch up whenever I do have larger downloads or want to watch videos.

    I guess something like cron would allow me to perform some of these tasks, maybe at midnight turn wan1 ON and stop data usage counting on wan1, then at 5am restart data usage counting on wan1 and calculate new total limit for
    the day.

    Would something like that work on a Raspberry PI with a couple of USB to ethernet adapters? Or would this be do-able with DDWRT or OpenWRT?

    Thanks!

    RogerN



    --- MBSE BBS v1.0.4 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb
  • From Moe Trin@110:110/2002 to All on Sun Oct 5 17:39:44 2014
    On Sat, 4 Oct 2014, in the Usenet newsgroup comp.os.linux.networking, in article <F9udna2aqdP7uK3JnZ2dnUVZ_oSdnZ2d@earthlink.com>, RogerN wrote:

    Here's my situation, I have a slow DSL (~730? kbps) connection, I'm on
    the border of not available. The great thing about the DSL it I have >unlimited data usage.

    My other connection is satellite at 10-12 Mbps, it has unlimited data
    usage from midnight till 5AM and 10G data usage per month, resets on
    the 28th.

    OK - do remote hosts see you using the same IP address/range (example, 192.0.2.0/24) when you connect from _either_ WAN (i.e. you have your own routable addresses) - or are they different (example, 198.51.100.0/24
    on DSL, 203.0.113.0/24 on the satellite) - i.e. they're related to the
    ISP rather than you. If they're the same, you need to discuss this with
    your up-streams relating to routing issues.

    The DSL has much faster ping that the satellite but slower downloading.

    The DSL link is probably terrestrial - likely fiber between main nodes.
    The satellite is 22200 miles/35800 km above the equator - that's about
    239 msec of transit time just for the out/back distance.

    Unless there is already something like it, I would like to build a
    linux router that would use wan1 ( or wan1 + wan2) from midnight till
    5AM and keep track of wan1 data usage and allow a running total,
    updated daily, resetting to zero on the 28th of the month.

    If you have different IPs from the two up-streams, trying to use both at
    the same time is very complicated (how does www.example.com know that
    they can send packets to your computer at either/both 198.51.100.51 and 203.0.113.86 at the same time). If you have multiple local hosts and
    each is connected to a remote, they can each use either WAN at the same
    time (i.e. two hosts each using one WAN at the same time) - not trivial,
    but relatively simple. Likewise, one host at your end can connect to two _different_ remote servers - one link on each WAN - at the same time.

    I guess something like cron would allow me to perform some of these
    tasks,

    Yup. Only minor complication - don't change the routing while the
    route is in actual use.

    Would something like that work on a Raspberry PI with a couple of USB
    to ethernet adapters?

    I suspect the hardware would be adequate - have you looked at the
    Usenet newsgroup comp.sys.raspberry-pi?

    Or would this be do-able with DDWRT or OpenWRT?

    Should be - again, look at the network speed capability of the hardware.
    The software/computing requirements are relatively small.

    Old guy

    --- MBSE BBS v1.0.4 (GNU/Linux-i386)
    * Origin: Crash Test Dummy Training Academy (110:110/2002@linuxnet)