i have a running vpnc connection from my arch-linux device. All traffic goes through the tunnel to the vpnc server.
But i need to exclude the 443 port, because a running https server need to be reachable from the local internet connection.
There is thread with just the same requirements. But this isn't working to me.
https://unix.stackexchange.com/questions/581419/routing-port-traffic-over-specific-interface?newreg=ac3f46c081724e8c93c007f1e35e44ae
All traffic still goes through the tun0 device.
i've no experience with routing ... maybe anyone can give me a hint?
May network interface is: enp1s0
The vpnc network device is: tun0
Device IP: 192.168.2.10
Router IP: 192.168.2.1
> #route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 0.0.0.0 0.0.0.0
> U 0 0 0 tun0 i577B2E95.versa 192.168.2.1
> 255.255.255.255 UGH 0 0 0 enp1s0
> 192.168.2.0 0.0.0.0 255.255.255.0 U 100 0 0 enp1s0
Asked by user3008086
(1 rep)
Aug 11, 2025, 09:27 AM