vpn routing problem
Hello , I've setup a vpn (openvpn) trougth two different network server like this :
SERVER1 <--vpn---> SERVER2
Ping from ip of tun0 10.0.0.x works fine .
SERVER1 and SERVER2 are 2 ethernet interface with same subnet 10.10.10.x connect to users pc .
I want to route all traffic from users pc from SERVER1 (10.10.10.x) with a vpn interface (tun0) and not with default SERVER1 gateway but if I try to route subnet 10.10.10.0/24 there is many problem .
Example :
SERVER1
eth0 193.1.1.1 (wan interface)
eth1 10.10.10.1 (lan interface)
tun0 10.0.0.2 P-t-P:10.0.0.1 (vp interface)
SERVER2
eth0 193.2.2.2 (wan interface)
eth1 10.10.10.2 (lan interface)
tun0 10.0.0.1 P-t-P:10.0.0.2 (vp interface)
# TEST
# Test ping from SERVER1 to SERVER2 and viceversa :
# ping 10.0.0.1 -c 3
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.996 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=0.964 ms
64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=0.989 ms
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=1.00 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=1.75 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.977 ms
Now ... ping from servers works fine , vpn works fine ... but I dont know how to route all traffic from pc of server1 trougth server2 without use server1 gw
Thanks for help
|