Cant route between two interface...

Kernels & Hardware, configuring network, installing services

Cant route between two interface...

Postby jagdtigger » 2017-07-01 17:12

Greetings.

Im trying to create a "permanent" link between two LAN with openvpn(without NAT) and it has gone very well so far. Until i hit a brick wall with this RPI2. I just cant get it to forward packets. All the routing is fine at the server side since i was able to do it with my router, but i dont want to run openvpn on it 24/7. So far i did this after i enabled forwarding in the kernel:
Code: Select all
iptables -A FORWARD -i tap0 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o tap0 -j ACCEPT
ip route add 10.125.210.0/24 via 10.125.201.1 dev tap0


But for some reason it just doesnt work, im still a noob in regards of networking... :D I hope someone can help me.

Thanks in advance for the help :) .
User avatar
jagdtigger
 
Posts: 11
Joined: 2017-06-05 13:33

Return to System configuration

Who is online

Users browsing this forum: Hip and 8 guests

fashionable