Multiple vpn tunnels with different interfaces

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
VPN-Newbie-1337
OpenVpn Newbie
Posts: 5
Joined: Mon Feb 21, 2022 11:05 am

Multiple vpn tunnels with different interfaces

Post by VPN-Newbie-1337 » Thu Feb 24, 2022 10:02 pm

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

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Multiple vpn tunnels with different interfaces

Post by TinCanTech » Thu Feb 24, 2022 10:24 pm

You could try --bind or --local but they are probably not what you want.

bethnicholes
OpenVpn Newbie
Posts: 2
Joined: Wed Mar 09, 2022 4:34 pm

Re: Multiple vpn tunnels with different interfaces

Post by bethnicholes » Fri Mar 11, 2022 10:10 am

Do you need to setup POLICY based routing.
Work with multiple routing tables, interfaces and iptables rules.

Post Reply