V
V
Vyacheslav Grachunov2017-10-30 14:33:25
linux
Vyacheslav Grachunov, 2017-10-30 14:33:25

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

3 answer(s)
P
PrAw, 2017-10-30
@Qwentor

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

V
Vladimir, 2017-10-30
@rostel

mark packets to a specific port in iptables
by label using ip rule taxi into a separate routing table

I
Igor Maksimov, 2017-11-10
@Chunk

register routes in a config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question