Page 1 of 1

Setting up openvpn server and client on windows 7

Posted: Tue Mar 20, 2012 4:26 pm
by helloworld
Hi
I am new to openvpn.
I was wondering am I able to setup openvpn server and client on windows 7 32bit.
Note: Both the server and client are on the same domain network. (eg.xxxx.org)
If so, should i use routing or bridging for my case.

In mytesting, i am able to assign my server with ip address 10.8.0.1 using routing.
However, i am not able to sucessfully establish a connection for my client side.
Please any advice are welcome.

Re: Setting up openvpn server and client on windows 7

Posted: Tue Mar 20, 2012 4:28 pm
by george
Note: Both the server and client are on the same domain network. (eg.xxxx.org)
Are they on the same subnet?

Please post server and client configs.

Re: Setting up openvpn server and client on windows 7

Posted: Wed Mar 21, 2012 1:30 am
by helloworld
Thank you for the reply.

Yes they are from the same subnet.
The server and client config are as followed:

Server:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3


client:
client
dev tun
proto udp
remote 10.8.0.1 1194

resolv-retry infinite
nobind
persist-key
persist-tun

ca ca.crt
cert client.crt
key client.key
ns-cert-type server

comp-lzo
verb 3

ping 10
ping-restart 60

Re: Setting up openvpn server and client on windows 7

Posted: Wed Mar 21, 2012 8:34 am
by maikcat
hi there,

10.8.0.1 is the openvpn virtual interface address..

you must use the lan ip of your server to connect.

what lan ips your pcs have?

Michael.

Re: Setting up openvpn server and client on windows 7

Posted: Thu Mar 22, 2012 1:54 am
by helloworld
Hi

Thank you for the reply.
I have the solve the issue by changing the ip address to the lan of my computer.
Thank you once again.