Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

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 "192.168.1.0 255.255.255.0")
  • 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

Asta
112
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 10.207.40.0 netmask 255.255.255.0 gw 192.168.0.1 up

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

link

answered 02 Aug '11, 08:15

chrisjrob's gravatar image

chrisjrob
312
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

By RSS:

Answers

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

Tags:

×26

Asked: 10 Sep '10, 03:45

Seen: 1,878 times

Last updated: 02 Aug '11, 08:15

powered by OSQA