Jump to content

Greetings.

 

So i have two LAN's one with the RPI2 as server(lets call it remote) and one with a RPI2 as a client(this one will be the local). The VPN tunnel works just fine and the server side routing is good(tested it temporarily with the router on the local network but the openvpn client had quite a hit on it). Forwarding is enabled in the kernel and added a basic config which in theory should work:

iptables -A FORWARD -i tap0 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o tap0 -j ACCEPT
ip route add <remote ip>/24 via <VPN server tap adapter address> dev tap0

 

I cant get it to work for some reason... Have someone an idea what i am missing? :/ Both RPI2 is running raspbian.

 

Thanks in advance for the help.

Link to comment
https://linustechtips.com/topic/801684-connecting-two-lan-through-openvpn/
Share on other sites

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

×