configure open vpn file

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
gogi100
OpenVpn Newbie
Posts: 2
Joined: Tue Jan 18, 2011 11:09 am

configure open vpn file

Post by gogi100 » Tue Jan 18, 2011 11:24 am

i would test open vpn and i installed in the virtual box window xp pro, windows 2003 (it will be open vpn server) and windows 2003 (it will be local lan). my configuration wil be

LAN-client WINDOWS 2003 192.168.3.2
|
OpenVPN-server WINDOWS 2003 (2 NETWORK ADAPTER 192.168.3.1 AND 192.168.1.1)
|
Internet (VIRTUAL INTERNET- THIS IS THE SAME SUBNET 192.168.1.0)
|
OpenVPN-client WINDOWS XP 192.168.1.1

I installed open vpn server on windows 2003 and configure sample.opnvpn
like
dev tun
ifconfig 192.168.0.5 192.168.0.6
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
on open vpn client windows xp i configured file like
remote 192.168.1.1
dev tun
ifconfig 192.168.0.5 192.168.0.6
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key

problem is connection doesn't work. what i do?
i don't understand what do the desktop client work? i have undestand that the role of client work same installation with config file in c:\program files\openvpn\config?
plz help me
thanks

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

Re: configure open vpn file

Post by gladiatr72 » Tue Jan 18, 2011 12:57 pm

Hello,

The first thing I would suggest is to go through this document: http://openvpn.net/index.php/open-sourc ... howto.html and configure your test environment as per its description.

Afterwards, if you still are having issues, please feel free to ask questions--the more specific the better. There is also a sticky post at the top of the forum index that specifies what information to provide to get the best results.

Good luck, and welcome to OpenVPN :D

Regards,
Stephen
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

gogi100
OpenVpn Newbie
Posts: 2
Joined: Tue Jan 18, 2011 11:09 am

Re: configure open vpn file

Post by gogi100 » Wed Jan 19, 2011 11:00 am

i used documentation on page http://openvpn.net/index.php/open-sourc ... ml?start=1 and i configured the point to point vpn. on side vpn server config file is

Code: Select all

remote 192.168.1.2
dev tap
ifconfig 10.3.0.1 255.255.255.0
secret key
ping 10
verb 3
mute 10
on side the roadwarrior or client config file is

Code: Select all

remote 192.168.1.1
dev tap
ifconfig 10.3.0.2 255.255.255.0
secret key
ping 10
verb 3
mute 10
the connection work ok. i make route on client route add 192.168.3.0 mask 255.255.255.0 10.3.0.1
and when i ping address 192.168.3.1 on vpn server all is ok, but when i ping windows 2003 192.168.3.2 in local lan the ping doesn't work. what i do?

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

Re: configure open vpn file

Post by gladiatr72 » Fri Jan 21, 2011 3:32 pm

It sounds like you don't have a return route for your VPN client subnet. On the system that is the default gateway for your 2003 system, you need to add a static route to the effect of: to access 10.10.3.0/24 send packets to the internal address of the openvpn server.

If the openvpn server is your server-side default gateway, make sure your firewall is not interfering with your ability to pass traffic between the vpn client net and your internal network.

-Stephen
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

Post Reply