What's new

Routing / IPTables - Selective routing

  • 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!

msalerno

New Around Here
RT-N66U
Firmware:378.55
OpenVPN

br0 - Regular Cable (US)
Client 1 - tun11 - VPN to Endpoint1
Client 2 - tun12 - VPN to Endpoint2

Client 1 is setup with policy based routes for my server to use.
Client 2 is setup for policy based routes, but I have no entries.
The rest of my LAN should be using the standard internet connection.

My objective is to route only specific IP ranges out of my LAN through Client 2.

For testing purposes, I used http://ipleak.net (54.164.36.190) to show my IP address.

When I enter:
Code:
ip rule add to 54.164.36.190 lookup 112
ip route add 54.164.36.190 table 112 dev tun12

I am able to browse to the site from anywhere on my lan and get my VPN ip address. The strange thing is that if I execute a traceroute, it times out as soon as it hits my routers internal ip.

If I set Client 2 to handle all traffic (through merlin), the traceroute executes without missing a hop.

I read some other solutions that call for using IPtables to mark the packets, but I'm not sure how that would translate into a situation with 2 tun adapters up at the same time.

Is anyone doing something similar?

Thanks
 
Last edited:
Traceroute is a bad way to test selective routing, since it will access each hop directly.
 

Similar threads

Latest threads

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!
Top