Skip to contentSkip to conversation

setting up routes after connecting to via openvpn

Openvpn-devel anjini shukla 1 participant 1 message Feb 8, 2011

lore
Share & tools
lore
#0 lore raw

I need some help in setting up routes, once i have a point to point connection between two computers using openVpn.

-Computer A: 10.8.0.1
( windows xp) 10.10.15.39

-Computer B: 10.8.0.2
( windows xp) 10.208.54.100

I can ping 10.8.0.1 from computerB and 10.8.0.2 from computer A.

I want to connect computerB to the 10.10.15.x subnet. I explicitly added route using command :

ComputerB: "route add 10.10.15.0 mask 255.255.255.255 10.10.8.2"
and modified HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\IPEnableRouter 1

I expect all the traffic for 10.10.15.x subnet to be routed through 10.8.0.2, but that is never the case. I observed in tracert and wireshark a ping 10.10.15.39 always has source as 10.208.54.100. Anyone has seen a similar issue? I also tried adding push route parameter as openVpn documentation suggests, but that did not help.

Thank you for all help in advance,
Anjini

ps:
command used to connect to openvpn

ComputerA: "openvpn.exe --dev tun --proto tcp-server --ifconfig 10.8.0.1 10.8.0.2"

Computer V: "openvpn.exe --dev tun --proto tcp-client --remote computerBIPAddress --ifconfig 10.8.0.2 10.8.0.1 "