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 -> [Ubuntu] <VPN Network -> [VPN Clients]
share|improve this 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

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.