You are not logged in.
Hello guys,
first of all: happy christmas!
I configure my pc to use the vpn connection to veil my traffic.
But there are some services which depends on my origin geographic location, e.g. amazon prime instant video.
First i thought about a proxy which i could interpose between the vpn connection and the amazon server, like with the addon "foxyproxy" for chrome or firefox.
But i think its very risky to route my amazon account and my datas over a unknown and public proxy.. so i'd like to get a exception through my vpn tunnel.
Therefore i wrote rules like that:
echo 2 bypass >> /etc/iproute2/rt_tables # create a new table
ip route add default via 192.168.2.1 table bypass
ip rule add to 54.164.36.190 lookup bypass prio 1000
So, actually it should work, but it doesn't.. And i don't know why.
As soon as i delete
ip route add default via 192.168.2.1 table bypass
i get a connection to the ip address but unfortunality over my vpn connection and not over my default gateway. What do i wrong?
For more information:
I use a openvpn connection and this rules are automaticaly created by openvpn:
/usr/bin/ip link set dev tun0 up mtu 1500
/usr/bin/ip addr add dev tun0 local 10.129.1.2 peer 10.129.1.1
/usr/bin/ip route add 176.10.98.137/32 via 192.168.2.1
/usr/bin/ip route add 0.0.0.0/1 via 10.129.1.1
/usr/bin/ip route add 128.0.0.0/1 via 10.129.1.1
/usr/bin/ip route add 10.129.0.1/32 via 10.129.1.1
This is my output of "ip route" after i connected to the vpn successfully:
0.0.0.0/1 via 10.129.1.1 dev tun0
default via 192.168.2.1 dev lan0 src 192.168.2.105 metric 202
10.129.0.1 via 10.129.1.1 dev tun0
10.129.1.1 dev tun0 proto kernel scope link src 10.129.1.2
128.0.0.0/1 via 10.129.1.1 dev tun0
176.10.98.137 via 192.168.2.1 dev lan0
192.168.2.0/24 dev lan0 proto kernel scope link src 192.168.2.105 metric 202
Offline
Does really nobody knows an answer?
Offline