Page 1 of 1

Multiple vpn tunnels with different interfaces

Posted: Thu Feb 24, 2022 10:02 pm
by VPN-Newbie-1337
Good day,

I have several vpn tunnels open at the same time (tun0, tun1, tun2 etc.) via WLAN (Internet). I also have several physical interfaces to the local network (eth0, eth1, eth2 etc...). Now I would like to assign a VPN connection to a physical ethernet connection (tun0 <--> eth0), so that the PC/network connected to ethX can use the VPN connection tunX. Is there a way to achieve this?

Regards

Re: Multiple vpn tunnels with different interfaces

Posted: Thu Feb 24, 2022 10:24 pm
by TinCanTech
You could try --bind or --local but they are probably not what you want.

Re: Multiple vpn tunnels with different interfaces

Posted: Fri Mar 11, 2022 10:10 am
by bethnicholes
Do you need to setup POLICY based routing.
Work with multiple routing tables, interfaces and iptables rules.