How do I route local web traffic via raspberry pi running LibreELEC?

  • Hi

    I'm looking for some advice as I'm not really sure quite what to search for on Google

    What I'd like to do is to route all web traffic (wifi & LAN connections on my local network) to my raspberry Pi3 so everything is routed through a VPN connection I've set up on the Pi.

    Is this possible and how would I go about doing this?

    Thanks

  • You'd need to setup your clients to use your Pi's local IP as a default gw, then on the Pi you'd need to activate IP forwarding and masquerading. You would need something like redirect-gateway in your OpenVPN config to make sure the traffic is sent through the VPN as well.

    So yes, it's possible. There's no single click button to do this though, it would need some effort on your part.


  • You'd need to setup your clients to use your Pi's local IP as a default gw, then on the Pi you'd need to activate IP forwarding and masquerading. You would need something like redirect-gateway in your OpenVPN config to make sure the traffic is sent through the VPN as well.

    So yes, it's possible. There's no single click button to do this though, it would need some effort on your part.

    Excellent ..... really pleased that it is possible. I thought it might be a little involved.

    Any pointers on suggested articles or 'how tos' that might start me off in the right direction would be really appreciated.

    PS. I've found an addon which allows the Pi to connect to a range of different VPN service providers - so that is the VPN part solved. Now its the internal routing on my home network to sort out!