bluemouseios
New Around Here
I tried my best to do a search but found no luck, so have to ask here. Let me know if my question was posted before that I did not find by myself.
My router runs merlin v384.11_2, and I also run aria2c on the router for torrenting. I have two openvpn clients config for tcp and udp respectively. When the two vpn clients enabled, all my traffic goes through the VPN server flawlessly.
However, I'd like config it so that only the torrent traffic goes through vpn while other traffic still go wan. Is there a way to config that. I looked at iptables but clueless about it.
If torrent is running on a different server with a different ip address, I know I can config it through selective routing, but since the torrent is on the router and thus has ip: 192.168.1.1
Is it possible to config iptables to route port through the vpn interface (eg. tun12 in my case) while others go through wan (eth0)?
Here is routing table when two vpn clients enabled:
My router runs merlin v384.11_2, and I also run aria2c on the router for torrenting. I have two openvpn clients config for tcp and udp respectively. When the two vpn clients enabled, all my traffic goes through the VPN server flawlessly.
However, I'd like config it so that only the torrent traffic goes through vpn while other traffic still go wan. Is there a way to config that. I looked at iptables but clueless about it.
If torrent is running on a different server with a different ip address, I know I can config it through selective routing, but since the torrent is on the router and thus has ip: 192.168.1.1
Is it possible to config iptables to route port through the vpn interface (eg. tun12 in my case) while others go through wan (eth0)?
Here is routing table when two vpn clients enabled:
Code:
admin@nas:/tmp/home/root# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
67.(wan ip) 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
23.(vpn server1) 67.x.x.1 255.255.255.255 UGH 0 0 0 eth0
23.(vpn server2) 67.x.x.1 255.255.255.255 UGH 0 0 0 eth0
10.28.16.0 0.0.0.0 255.255.255.0 U 0 0 0 tun11
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
10.28.15.0 0.0.0.0 255.255.255.0 U 0 0 0 tun12
67.x.x.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.28.15.1 128.0.0.0 UG 0 0 0 tun12
128.0.0.0 10.28.15.1 128.0.0.0 UG 0 0 0 tun12
0.0.0.0 67.x.x.1 0.0.0.0 UG 0 0 0 eth0