I can ping remote addresses by IP with no issues through the VPN.
Server side: Windows 2003 SP2, using OpenVPN 2.3.2-I003
Server side config
port 1194
proto udp
dev tun
server 10.0.0.0 255.255.255.0 #you may choose any subnet. 10.0.0.x is used for this example.
ca ca.crt #certs are optional. you may choose to go with keys or passwords instead.
cert server.crt
key server.key
dh dh1024.pem
push "redirect-gateway def1"
;push "dhcp-option DNS 8.8.8.8"
#the following commands are optional
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
Client config
client
dev tun
proto udp
remote x.x.x.x 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
explicit-exit-notify 2
ping 10
ping-restart 60
route-method exe
route-delay 2
I have no problems with establishing a connection from client to server for the VPN.
I can ping 4.2.2.2 with no problems through the VPN:
Pinging 4.2.2.2 with 32 bytes of data:
Reply from 4.2.2.2: bytes=32 time=167ms TTL=52
Reply from 4.2.2.2: bytes=32 time=166ms TTL=52
Reply from 4.2.2.2: bytes=32 time=166ms TTL=52
Reply from 4.2.2.2: bytes=32 time=166ms TTL=52
However, I have issues with DNS resolution:
nslookup www.google.com
Server: google-public-dns-a.google.com
Address: 8.8.8.8
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to google-public-dns-a.google.com timed-out
But to nslookup an IP would give me this:
nslookup 8.8.8.8
Server: google-public-dns-a.google.com
Address: 8.8.8.8
Name: google-public-dns-a.google.com
Address: 8.8.8.8
And pinging any hostname would give me this:
Ping request could not find host google.com. Please check the name and try again.