Answer the question
In order to leave comments, you need to log in
How to allow part of the traffic to bypass the VPN?
There is a raised VPN connection.
How can connections with certain ip (or better with any ip on a certain port) be allowed to bypass VPN?
Answer the question
In order to leave comments, you need to log in
If the packets must go to a specific IP, then the easiest way is to add a route on the client (or push from the vpn of the server, if it is under your control).
In Linux, the command is:
route add -net 192.168.0.0/16 dev eth1
In Windows, on the command line:
route ADD IP_WHERE MASK 255.255.255.255 GATEWAY METRIC 1 IF INTERFACE
output
example: 1 ................................Software Loopback Interface 1
You can route to an entire subnet (0-255), read more about the mask and "network address":
route ADD 12.34.56.0 MASK 255.255.255.0 GATEWAY METRIC 1 IF INTERFACE
mark packets to a specific port in iptables
by label using ip rule taxi into a separate routing table
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question