Jump to content

Openvpn issues


Rainman_34
 Share

Recommended Posts

I have openvpn installed on my lan turtle and it connects to the VPN.  However due to firewall rules it won't connect to lanturtle.com to install modules if I am connected to the VPN server.  Also when connected to the VPN server the lan turtle won't let me ping anything.  I get a response of 

ping: sendto: Operation not permitted

I know this is an iptables issue as everything works when the lan turtle is not connected to the VPN server and all other clients work with no issues on the VPN server.

I have tried the following iptables rules and still no success

iptables -t nat -I POSTROUTING 1 -o tun0 -j MASQUERADE
iptables -I FORWARD 1 -i tun0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -I FORWARD 1 -i eth1 -o tun0 -j ACCEPT

 

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE

 

iptables -A INPUT -i eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT

 

iptables -A FORWARD -j ACCEPT
Link to comment
Share on other sites

So my inpatience kicked in. Darren does a great video on how to do this with openvpn access server and shows it working. Thats where I stipped watching. If you watch the last three minutes or so he discusses changes that need made on the turtle which makes this work. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...