Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My problem is that after setting up VPN on a virtual machine (Ubuntu Linux) with that has an IP I cant ping anyone at all over the tun interface from the client. VPN Connection is however successful. I would be eternally grateful for any help. I have looked in google, obviously without success, because of the varying scenarios that could cause this problem.

Here are the setup details :

  • Network with netmask with default gateway
  • Network runs off a Linksys router , I also have a dyndns account. And have opened port 1194, so that the router forwards everything to for this port.
  • Openvpn server IP with port 1194 open.
  • Routing table entry in router:

    • Destination : (IP Pool for OpenVpn)
    • Subnet Mask :
    • Gateway

Openvpn server.conf :

# Which local IP address should OpenVPN
# listen on? (optional)
;local a.b.c.d

port 1194

# TCP or UDP server?
;proto tcp
proto udp

;dev tap
dev tun

ca ca.crt
cert homesrv.crt
key homesrv.key  # This file should be kept secret

dh dh1024.pem

ifconfig-pool-persist ipp.txt



push "route"
;push "route"

;learn-address ./script

;push "dhcp-option DNS"
;push "dhcp-option DNS"



keepalive 10 120

;tls-auth ta.key 0 # This file is secret

;cipher BF-CBC        # Blowfish (default)
;cipher AES-128-CBC   # AES
;cipher DES-EDE3-CBC  # Triple-DES


max-clients 2

;user nobody
;group nogroup


status openvpn-status.log

log         openvpn.log
;log-append  openvpn.log

verb 5
mute 20
share|improve this question
I have almost the same config except that l have pushed an existing DNS server. What's the client's DNS setting? – ott-- Sep 14 '13 at 19:38
What's the problem? – joeqwerty Sep 14 '13 at 21:44
Does the dns setting of the client play a role? I thought since openvpn controlls the tun interface on the client it would take care of the dns. – Roland Hediger Mar 25 '15 at 10:50
@joeqwerty the problem is I cannot ping anybody on the network I am trying to connect to once it is connected. Thus not achieving the goal of said vpn in the first place. I suspect it has to do with a routing problem, perhaps on the router side, so that the traffic is not redirected to – Roland Hediger Mar 25 '15 at 10:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.