U
U
unbelieve2022-04-12 20:42:35
VPN
unbelieve, 2022-04-12 20:42:35

Traffic routing or how to direct traffic to a specific site (ip) to another server?

Given: laptops, smartphones. They have a wireguard client. All traffic from them goes to the server with wireguard vpn.
Task: redirect traffic to the conditional site vasyapupkin.ru to another server.

Why is this needed? Then, that some sites do not open if you have a foreign ip address. For such sites and applications, you need to make sure that they open through a vpn server with an ip address in the country you need.

All this needs to be configured on the server side, because. normal users will not be able to edit the wireguard config. They need to be as simple as possible - on / off.

How to implement such routing?

If this can be done with wireguard, great. Well, if 3proxy.
If not by them, I am ready to study the necessary topics.

I will be grateful for adequate answers.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexVWill, 2022-04-12
@AlexVWill

How to implement such routing?

Not if you don’t have a proxy, or another VPN with an IP range allocated for the desired country, through which routes can be assigned.

T
TheAndrey7, 2022-04-12
@TheAndrey7

How to implement such routing?

through the routing table. It is responsible for which network connection will be used for the specified IP. You need to disable the default route and register the desired IP. I think it is possible to do this in the wireguard config, otherwise through scripts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question