Page 1 of 1

OpenVPN with Windows Clients

Posted: Fri Jul 08, 2011 3:20 pm
by mnorgate
I have setup an OpenVPN server on my ubuntu machine and I am trying to connect from some Windows machines. The Windows machines connect to the vpn perfectly but are unable to access any network resources because the subnet mask is set to 255.255.255.252 rather that 255.255.255.0

I am a bit of a newbie and have just been following online tutorials to get everything up and running but I dont understand why the wrong subnet is being used and how I fix it

Server Config

Code: Select all

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
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Client Config

Code: Select all

client
dev tun
proto udp
remote my.server.address 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert Client.crt
key Client.key
comp-lzo
verb 3

Re: OpenVPN with Windows Clients

Posted: Sat Jul 09, 2011 9:51 am
by maikcat
hi there

what is your servers LAN ip?

Michael.

Re: OpenVPN with Windows Clients

Posted: Tue Jul 12, 2011 6:23 pm
by mnorgate
Server IP Address is:

10.202.194.198

Re: OpenVPN with Windows Clients

Posted: Wed Jul 13, 2011 8:08 am
by maikcat
hi there,

add this to your server config

push "route 10.202.194.0 255.255.255.0"

also enable ip forwarding on your server
restart the openvpn service and try again.

ps: for testing setup your pcs inside your lan to use as gateway the 10.202.194.198.

Michael.