windows xp as vpn-server - no route

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

windows xp as vpn-server - no route

Post by herbary » Wed May 04, 2011 5:35 pm

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?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: windows xp as vpn-server - no route

Post by maikcat » Thu May 05, 2011 6:33 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

Re: windows xp as vpn-server - no route

Post by herbary » Thu May 05, 2011 8:12 am

gateway is local ip of internet router - in my case is 192.168.0.1

herbary
OpenVpn Newbie
Posts: 9
Joined: Tue May 03, 2011 5:18 pm

Re: windows xp as vpn-server - no route

Post by herbary » Thu May 05, 2011 8:47 am

i can ping vpn server local interface 192.168.0.101 and vpn interface 192.168.1.1. but no routing

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: windows xp as vpn-server - no route

Post by maikcat » Fri May 06, 2011 7:30 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply