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
Multiple vpn tunnels with different interfaces
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 5
- Joined: Mon Feb 21, 2022 11:05 am
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Multiple vpn tunnels with different interfaces
You could try --bind or --local but they are probably not what you want.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Mar 09, 2022 4:34 pm
Re: Multiple vpn tunnels with different interfaces
Do you need to setup POLICY based routing.
Work with multiple routing tables, interfaces and iptables rules.
Work with multiple routing tables, interfaces and iptables rules.