Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  • Server Debian 7.0
  • Client Kubuntu 12.10

Followed debian wiki about OpenVPN with success until TLS-enabled VPN section. Now from client I want to have internet thru vpn.

For that I opened KDE manager where I tried

- gateway: server ip
- connection type: pre-shared key
- shared key: /etc/openvpn/static.key
- Key direction: none
- Local ip: 61.5xxxxxx
- remote ip:

I tested to ping google from client: nothing

But I got some log from server

Mon Aug 26 12:40:03 2013 us=340969 UDPv4 READ [100] from [AF_INET] (...)
Mon Aug 26 12:40:03 2013 us=341053 TUN WRITE [60]

How to have internet thru my openvpn ?


client config

dev tun0
secret /etc/openvpn/static.key
route-delay 2
route-method exe
redirect-gateway def1

server config

dev tun0
secret /etc/openvpn/static.key
push "redirect-gateway"
share|improve this question

migrated from Aug 27 '13 at 3:53

This question came from our site for computer enthusiasts and power users.

Is routing table on your client containing default route through your tun device? Did you enabled forwarding and allowed firewall forwarding rules on your server? – week Aug 26 '13 at 12:48
according to this post. I added iptables -t nat -A POSTROUTING -s -o eth0 -j MASQUERADE. but nothing else. How to check all things you are asking for ? – user1715542 Aug 26 '13 at 20:48
'did you allowed firewall forwarding rules on your server ?' >> how to ? – user1715542 Aug 27 '13 at 22:08

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.