Hi. I'm setting up a VPN with openVPN on a debian lenny server. I successfully installed it in the server, then created the certificates and both client (winXP) and server config files. For the client I use openVPN gui. I tested the tunnel and everything went just fine. I even can ping the openVPN server from the XP client. But that´s all. I can't ping any machine behind the openvpn server. Some facts that you may find useful to help me with this issue are:

  • The openVPN server is not the default gateway of the LAN. The dg is a pfsense server
  • I don´t have iptables enabled (policy of all chains are ACCEPT).
  • I have configured ip forwarding (echo "1" >/proc/sys/net/ipv4/ip_forward)
  • I my server.conf I have the line: push route "")
  • My openVPN server has two NIC's. One connected to the LAN, and the other to the WAN. I have checked and all seems to be OK. I think that the problem is connected with routing the traffic from the vpn to my LAN but I don't know how to do that (besides the push route line in the server.conf).

I Hope you can help me! Thanks!

asked 10 Sep '10, 03:45

Asta's gravatar image

accept rate: 0%

If the gateway is not the default route, then every machine behind the server will need a route back.

On one of the machines to which you are trying to connect, create a route:

route add -net netmask gw up

Where is the OpenVPN subnet allocated by your OpenVPN server and is the LAN address of your openvpn server.


answered 02 Aug '11, 08:15

chrisjrob's gravatar image

accept rate: 0%

edited 02 Aug '11, 08:15

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 10 Sep '10, 03:45

Seen: 1,828 times

Last updated: 02 Aug '11, 08:15

powered by OSQA