pschmitt / pia-tools

Shell script to automate privateinternetaccess port forwarding and starting/stopping transmission when connected/disconnected and other stuff
https://aur.archlinux.org/packages/pia-tools
GNU General Public License v3.0
132 stars 23 forks source link

Routing #29

Open robgarrett opened 8 years ago

robgarrett commented 8 years ago

Hello,

I've been looking over your PIA scripts with great interest. I now have openvpn running as a client on my raspberry PI. I leverage my PI as a gateway/router, so that all outgoing IP traffic from my LAN goes over the VPN - it works really well.

The snag I've run into is with allowing incoming traffic over the VPN tunnel to a server/service running on my LAN. I've read plenty of blogs about allowing incoming connections on the regular WAN/LAN when VPN is connected. In my case, I want the incoming traffic to come in over the the VPN channel.

I used your code to get access to the port forward from PIA, but cannot seem to redirect incoming TUN connections to ETH0 for the local PI nor any server on my LAN. I'm a noon with IPTABLES. At this point, I'm not entirely sure if PIA has the port open, but assume it must work if your code was working.

Can you provide any insight? It'd be greatly appreciated.

Thanks,

R.