I am trying to bind an openvpn client's connection to an Ethernet port(eth1) in order to route an entire network through it.
I have already configured the OpenVPN server and tested it on a Windows client.
The server is connected to the internet with interface "ens3" and "tun0" for the vpn. IP forwarding is enabled.
dev tun ifconfig 10.8.0.1 10.8.0.2 secret /etc/openvpn/static.key push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 22.214.171.124" push "dhcp-option DNS 126.96.36.199" cipher AES-128-CBC
The client will be running Raspbian Stretch Lite (Debian based). It has two Ethernet port eth0 and eth1. eth0 is connected to the internet with a static IP. I wish to route all of the openvpn traffic through eth1. A wireless router will plugged into eth1.
remote XXX.XXX.XXX.XXX dev tun ifconfig 10.8.0.2 10.8.0.1 secret /etc/openvpn/static.key redirect-gateway def1 bypass-dhcp dhcp-option DNS 188.8.131.52 dhcp-option DNS 184.108.40.206 cipher AES-128-CBC
How do I route the traffic to eth1?