Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.
  • 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: 10.9.0.2

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 ?

edit:

client config

remote **SERVER ADDRESS**
dev tun0
ifconfig 10.9.8.2 10.9.8.1
secret /etc/openvpn/static.key
route-delay 2
route-method exe
redirect-gateway def1

server config

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

migrated from superuser.com 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 10.9.0.0/24 -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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.