I'm attempting to set up a Raspberry Pi ( in such a way that it allows all traffic that uses it as the default gateway to be pushed through an external OpenVPN tunnel (Private Internet Access) using a single physical interface.

I've configured IP forwarding and it works as a gateway however when I start the OpenVPN tunnel no traffic can get leave the network unless it originates from the Raspberry Pi or the router, when I stop OpenVPN the traffic goes trough without a problem.

The output of route while running the VPN is:

default UG 0 0 0 tun0
default UG 0 0 0 eth0 UGH 0 0 0 tun0 * UH 0 0 0 tun0 UG 0 0 0 tun0 * U 0 0  0 eth0

iptables -L FORWARD -nv: returns nothing and allows no traffic with NATing on the VPN network.

tcpdump -i tun0 -n shows failing DNS lookups.

Any help anyone could offer world be greatly appreciated.

  • What is the output of ip route and iptables -L FORWARD -nv when OpenVPN is running? Does tcpdump -i tun0 -n show any traffic in the tunnel? – Hauke Laging Nov 4 '14 at 3:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.