Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm having trouble getting IP forwarding going in Ubuntu 12.04 server with UFW. I'm trying to get OpenVPN working. I have two interfaces, eth0 and tun0, and they can't ping each other.

  • I've made the interfaces promiscuous.
  • net/ipv4/ip_forward=1 in /etc/ufw/sysctl.conf.
  • DEFAULT_FORWARD_POLICY="ACCEPT" in /etc/default/ufw.
  • I used the IP masquerading section from

Is there something I am missing?

Network setup is as such:

[Gateway] <LAN - 172.28.0.0/16> [Ubuntu] <VPN Network - 172.29.0.0/22> [VPN Clients]
share|improve this question

put on hold as unclear what you're asking by Eric Carvalho, Jacob Vlijm, guntbert, KasiyA, David Foerster 2 days ago

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

    
You probably have a routing problem. Can you elaborate some more about your network architecture. How do you connect to your vpn server? Is it through a public ip adress? Does your Lan clients have internet access or the should only be reachable through the VPN clients? Can you add the routing table for: server, Lan clients and vpn clients? –  Awi Dec 17 '12 at 22:15