Hi all,
I am trying to configure OpenVPN, but it does not seem to work as I expect.
What I have is a WindowsXP machine, which I configured as the VPN SERVER. This server is behind a router. The router's local ip is in 192.168.1.0 network and it also has a public ip. The WindowsXP machine is part of this network. The network I am using for the VPN is 10.8.0.0/24. My server's config file is the following:
port 1194
proto udp
dev tun
ca "C:\\Programme\\OpenVPN\\config\\********"
cert "C:\\Programme\\OpenVPN\\config\\******"
key "C:\\Programme\\OpenVPN\\config\\*******"
dh "C:\\Programme\\OpenVPN\\config\\*******"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 6
I configured port forwarding on the Router, to forward all traffic intended for 1194 port to the WIndowsXP machine.
On the client side, the config file is:
client
dev tun
proto udp
remote X.X.X.X 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\********"
cert "C:\\Program Files\\OpenVPN\\config\\*******"
key "C:\\Program Files\\OpenVPN\\config\\*********"
ns-cert-type server
comp-lzo
verb 6
When I try to connect the OpenVPN on both client and server they seem to be connected. The problem comes from the fact that I cannot ping the server from the client and the client from the server. I cannot ping also the other machines part of the local network where the server is located.
What I noticed is that on both client and server the network mask is set to 255.255.255.252, which is not the one I set. Also on the Server I have 10.8.0.1 and 255.255.255.252 and on the client I have 10.8.0.6 255.255.255.252, which makes them on different subnets, right?
I have no idea from where this change in the network mask comes.
Can you please help me fisx my configuration so I can have a working VPN?
Thank you very much in advance!