Page 1 of 1

windows xp as vpn-server - no route

Posted: Wed May 04, 2011 5:35 pm
by herbary
hi,
i have office net with ip pull 192.168.0.100-192.168.0.250.
i need vpn-canal to share disk resource, printers of office net for remote clients.

on mashine windows xp (192.168.0.101-local) (192.168.1.1-vpn) i had set vpn-server with conf:
------------------------
dev tun
ifconfig 192.168.1.1 192.168.1.2
route 192.168.0.0 255.255.255.0 192.168.0.101
route-delay 2
secret static.key
------------------------
had change ipenablerouter to 1
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters


on client (192.168.1.2-vpn) config:
----------------------------
remote 94.100.93.155
dev tun
ifconfig 192.168.1.2 192.168.1.1
route 192.168.0.0 255.255.255.0 192.168.1.1
secret static.key
----------------------------

as result i see only 192.168.0.101-mashine, no routing. what is wrong?

Re: windows xp as vpn-server - no route

Posted: Thu May 05, 2011 6:33 am
by maikcat
hi there,

from server remove this

>route 192.168.0.0 255.255.255.0 192.168.0.101

also which gateway your pcs on server side have?

Michael.

Re: windows xp as vpn-server - no route

Posted: Thu May 05, 2011 8:12 am
by herbary
gateway is local ip of internet router - in my case is 192.168.0.1

Re: windows xp as vpn-server - no route

Posted: Thu May 05, 2011 8:47 am
by herbary
i can ping vpn server local interface 192.168.0.101 and vpn interface 192.168.1.1. but no routing

Re: windows xp as vpn-server - no route

Posted: Fri May 06, 2011 7:30 am
by maikcat
hi there,

add to your clients a static route for the vpn subnet pointing to your
openvpn server(or add it to your router).

Michael.