I would like to route certain ports to openvpn client 2 and certain IPs to openvpn client 1. Has anyone had any success selectively routing with two different openvpn clients running simultaneously?
Thanks in advance
ip route add default via 10.200.1.80 dev tun12 table 300
ip rule add fwmark 128 table 300
ip route
XXX.XXX.XXX.1 dev eth0 scope link
10.8.0.2 dev tun21 proto kernel scope link src 10.8.0.1
10.8.0.0/24 via 10.8.0.2 dev tun21
10.88.8.0/24 dev br0 proto kernel scope link src 10.88.8.1
XXX.XXX.XXX.0/22 dev eth0 proto kernel scope link src XXX.XXX.XXX.123
10.200.0.0/22 dev tun11 proto kernel scope link src 10.200.1.8
10.200.0.0/22 dev tun12 proto kernel scope link src 10.200.1.80
127.0.0.0/8 dev lo scope link
default via 92.14.80.1 dev eth0
iptables -t mangle -A PREROUTING -i br0 -m iprange --src-range 10.88.8.115 -j MARK --set-mark 128
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!