I had a perfectly working pivpn installation:
rpi 3 a+ on site A
rpi 0 on site B
Both as ovpn servers so I can connect to both sites whenever I'm out.
But I wanted to make it site to site so I followed up this guide:
https://opsdocks.com/posts/configure-site-to-site-openvpn/#overview
Site A would be the server and B the client for this case.
Everything seemed to work until the Enable IP and TUN/TAP forwarding part. I run the commands both on the server and the client.
iptables -A INPUT -i tun+ -j ACCEPT iptables -A FORWARD -i tun+ -j ACCEPT iptables -A INPUT -i tap+ -j ACCEPT iptables -A FORWARD -i tap+ -j ACCEPT iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE iptables-save
And right now I can't connect to any of the sites :(
Anyone knows how to remove the last commands so I can at least have connection to the sites?