I'm well out of my depth here, but before I rush in and change what I suspect needs doing, would appreciate input from those more knowledgeable and experienced on whether I am right and how to do it (or why I am wrong and what to do that is correct!)
I installed OpenVPN on a Raspberry Pi using the Pivpn package. Great! It worked really easily and the VPN proved easy to access from a range of clients outside my network. They could all get to internet via server and I could access web servers on my network (eg control page of router) as well as VNC and SSH into several servers in my network.
When installed the server was on wifi (for sundry reasons!). I would now like to have it Ethernet connected to my router for better speed. So, I did just that, sorted things out so the router will assign the same fixed ip on Ethernet, connected it, turned off wifi. So far so good.
Now when accessing VPN the clients connect and I can access the device with the server other ways (VNC, SSH) BUT - I cannot access other devices on my network nor get to the internet. If I swap back to wifi connection, everything works just fine again.
Looking in various forums I deduce that my problem lies in the IPtables which must have been configured for me by the Pivpn process. This is what I get from
sudo iptables -t nat -S
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-A POSTROUTING -s 10.8.0.0/24 -o wlan0 -j MASQUERADE
Q1 - am I correct that this is the cause of my problem?
q2 - if I am - can somebody prevent me screwing it all up by recommending how to use the IPTABLES command to fix this
Many thanks!