I have an ISP provided modem which I have bridged to my own router. I am endeavouring to place a Rasp Pi 4 (running Openwrt) between these 2 units to provide VPN. I have installed Openwrt onto the Pi. I have basically placed the Pi between the modem and router on the same line that used to go directly from modem to router. So, the modem now plugs into a USB3/Ethernet adapter on the Pi and the router plugs into the regular ethernet outlet on the Pi.
From my PC when I am connected to the router I can see and connect to the Pi (via Luci or Putty), however, the router does not have access to the internet as it did when it was connected directly to the modem. I am assuming that my setup in Openwrt is not quite right. Firstly, I have setup the OpenVPN within OpenWrt as per outlined by my vpn provider (ProtonVPN). The other main things I have setup in OpenWrt are as follows:
- static address
- IPV4 Address = the address for the Pi
- IPV4 Netmask = 255.255.255.0
- IPV4 Gateway = blank
- IPV4 Broadcast = same as IPV4 Address except last number is replaced with '255'
- Protocol = DHCP
- send hostname of this device
Can anyone comment on whether I am barking up the right tree on trying to get this going? Is there anything in the interface settings that are obviously incorrect? Any other settings I should be looking at?
Any suggests are very much appreciated. Thank you