This is a method for setting up an OpenVPN tunnel on a Raspberry Pi router device, which does not route all traffic via the VPN, but selective IP address within the LAN.
Note 1: also uses the amazing sqm-scripts for traffic shaping, to reduce bufferbloat as much as possible.
Note 2: eth0 is our internal LAN, wlan0 is our external WAN
- Allow packet forwarding (on reboot)
$ sudo nano /etc/sysctl.conf
, uncomment this line: