Jump to content
Hak5 Forums
Sign in to follow this  
Rainman_34

Openvpn issues

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

Share this post


Link to post
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. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×