What's new

Selective Routing Over Two WANs.

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Ian Barton

New Around Here
What I would like to achieve is to have all traffic except the Netflix block of IP addresses routed through my ADSL ethernet connection (slow about 4Mbits). Anything for Netflix should get routed via the 3g phone connected to USB (about 15Mbits).

I already know how to do this over a single interface i.e. route only some traffic via the VPN. However, is routing over two interfaces as I have described possible in Merlin? If so can anyone point me towards the correct documentation?
 
What I would like to achieve is to have all traffic except the Netflix block of IP addresses routed through my ADSL ethernet connection (slow about 4Mbits). Anything for Netflix should get routed via the 3g phone connected to USB (about 15Mbits).

I already know how to do this over a single interface i.e. route only some traffic via the VPN. However, is routing over two interfaces as I have described possible in Merlin? If so can anyone point me towards the correct documentation?


If you have a dual WAN setup, then you will have to add the RPDB selective routing rules manually.

issue

Code:
ip   rules

and you will hopefully see the selective routing rules

I believe tables 100 and 200 will be your ADSL / USB 3g devices...

so for your Netflix destinations you would issue

Code:
ip   rule   add   from   all   to   xxx.xxx.xxx.xxx/nn   table   200

or individually if not in an identifiable CIDR subnet range

ip   rule   add   from   all   to   xxx.xxx.xxx.xxx   table   200
ip   rule   add   from   all   to   xxx.xxx.xxx.yyy   table   200
etc.

ip route flush cache

assuming table 200 is definitely the USB 3g modem...you can check with the command

Code:
ip   route   show   table   xxx

then once you have proved they work, you can add the RPDB rules permanently to say services-start etc.
 
Last edited:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top