Split youtube/download traffic

The_Unbeliever

Honorary Master
Joined
Apr 19, 2005
Messages
103,193
Reaction score
10,233
Location
Nkaaaaandla
Hi All

I'm sitting with an interesting problem/proposal regarding my house network.

With Friday night's storm (and no doubt Eskom loadshedding as well) something borked somewhere along the way to the DSLAM - our line is totally dead. No ringtone, no ADSL access.

This has already been reported.

Now I was thinking - will it be possible to split the following traffic :

email
whatsapp


from

web browsing
youtube
torrents
big downloads

This should be possible as email and whatsapp uses different ports as the rest.

What I want to do is to procure an Axxess SIM and mobile device, set this up as a second gateway, thusly :

Proposed new layout.jpg

Which firewall distro will be able to handle one static IP/gateway (axxess double NATted) and one dynamic IP/gateway (CrystalWeb)?

And which 3G router would you recommend for this task? I don't need wifi access on the 3G router since I have my own wifi AP behind a firewall.

The other idea is, should the ADSL line go down, all traffic except for youtube and torrents be routed via Axxess until the ADSL line is back up again.

Another thing is, should 3G connectivity go down (for whatever reason) emails and IM be routed over the ADSL line.

Regards

Ook (very frustrated by lack of ADSL access) :mad:
 
Last edited:
Kind of challenging task. But I think you can use static routes on your gateway to point certain IPs to use a specific gateway (your 3G router). That is set static routes for whatsapp IPs and your mail server's IP addresses to be routed via the Axxess connected 3g router. I know my TP Link MR3420 3g router has a failover setting where you can set it up to use 3G as main connection and the WAN port as the backup connection. Something along those lines could work for you

Edit: The other challenge would be to keep the list of static routes up to date in instances where whatsapp changes their IPs , I'm not sure how static they are and all. Same with your mail server if the IPs are changed , though you can play around with port numbers to be more specific
 
Last edited:
pfSense can do what you want using gateway groups, basic firewall rules and maybe some layer7 traffic shaping policies.
 
It should be relatively simple to do, using e.g. an OpenWRT-based gateway with multiple interfaces.

In my case, I have a TP-Link WR1043ND, talking to a DLink 2500U ADSL modem via its WAN port. The TP-Link also has a USB port, which means it can support a 3G modem. Once you have the interfaces available, you can then consider how to handle the routing of the traffic. As I understand it, you can take 2 approaches to this, one using IPTables, and the other using Policy based routing.

You can take a look at the following articles which may be of use:

http://blog.scottlowe.org/2013/05/29/a-quick-introduction-to-linux-policy-routing/

and

http://lartc.org/howto/
 
Top
Sign up to the MyBroadband newsletter
X