Basic OpenVPN setup
Posted
by WalterJ89
on Server Fault
See other posts from Server Fault
or by WalterJ89
Published on 2010-05-20T01:21:16Z
Indexed on
2010/05/20
1:32 UTC
Read the original article
Hit count: 410
I am attempting to connect 2 win7 (x64+ x32) computers (there will be 4 in total) using OpenVPN. Right now they are on the same network but the intention is to be able to access the client remotely regardless of its location.
The Problem I am having is I am unable to ping or tracert between the two computers. They seem to be on different subnets even though I have the mask set to 255.255.255.0. The server ends up as 10.8.0.1 255.255.255.252 and the client 10.8.0.6 255.255.255.252. And a third ends up as 10.8.0.10. I don't know if this a Windows 7 problem or something I have wrong in my config. Its a very simple set up, I'm not connecting two LANs.
this is the server config (removed all the extra lines because it was too ugly)
port 1194
proto udp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key # This file should be kept secret
dh keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
duplicate-cn
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 6
this is the client config
client
dev tun
proto udp
remote thisdomainis.random.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca keys/ca.crt
cert keys/client.crt
key keys/client.key
ns-cert-type server
comp-lzo
verb 6
Is there anything I missed in this? keys are all correct and the vpn's connect fine, its just the subnet or route issue.
Thank You
© Server Fault or respective owner