OpenVPN with Windows Clients

This forum is for general conversation and user-user networking.

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

Post Reply
mnorgate
OpenVpn Newbie
Posts: 4
Joined: Fri Jul 08, 2011 3:10 pm

OpenVPN with Windows Clients

Post by mnorgate » Fri Jul 08, 2011 3:20 pm

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

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

Re: OpenVPN with Windows Clients

Post by maikcat » Sat Jul 09, 2011 9:51 am

hi there

what is your servers LAN ip?

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"

mnorgate
OpenVpn Newbie
Posts: 4
Joined: Fri Jul 08, 2011 3:10 pm

Re: OpenVPN with Windows Clients

Post by mnorgate » Tue Jul 12, 2011 6:23 pm

Server IP Address is:

10.202.194.198

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

Re: OpenVPN with Windows Clients

Post by maikcat » Wed Jul 13, 2011 8:08 am

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.
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