Linode Forum
https://forum.linode.com/

openvpn connects but no internet access
https://forum.linode.com/viewtopic.php?f=19&t=9236
Page 1 of 1

Author:  akhos007 [ Tue Aug 07, 2012 1:28 am ]
Post subject:  openvpn connects but no internet access

Hello, I have openVPN installed on my VPS server which is debian 6 through following the linode documentation. The whole guide was followed including the tunneling and dnsmasq part.
From my client machine I can connect to the VPN but then I do not have any internet accesss.
I use the client.conf to connect to the vpn and followed steps 10 and 11 from this guide: http://tipupdate.com/how-to-install-ope ... buntu-vps/
My friend who can connect to the VPN, has internet access, and pulls the IP from linode on whatismyipaddress.com. I am using almost the same distro as he is using ubuntu 12.04 and i am using xubuntu 12.04.
I asked in the linode IRC chat and I kept getting responses to check my routing and NAT forwarding. I think the problem might be client-side related since my friend is able to connect to it with his certs which are differnt than mine.

Author:  akhos007 [ Thu Aug 09, 2012 1:36 am ]
Post subject:  Re: openvpn connects but no internet access

got it to work, thanks anyways..

added:

iptables -A INPUT -j ACCEPT -s 10.8.0.0/24 -p esp
iptables -A INPUT -j ACCEPT -s 10.8.0.0/24 -p udp -m multiport --sports isakmp,10000
iptables -A INPUT -j ACCEPT -i tun+
iptables -A OUTPUT -j ACCEPT -d 10.8.0.0/24 -p esp
iptables -A OUTPUT -j ACCEPT -d 10.8.0.0/24 -p udp -m multiport --dports isakmp,10000
iptables -A OUTPUT -j ACCEPT -o tun+

to: /etc/firestarter/user-pre

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/