D
D
densaface2015-12-30 10:07:35
VPN
densaface, 2015-12-30 10:07:35

How to open a port with a working vpn connection?

Successfully opened a port for incoming connections according to the instructions www.youtube.com/watch?v=LmFXIJmYyd4
But as soon as I connect to vpn, the port is again displayed as closed (according to 2ip.ru/check-port ), which is logical in principle, all traffic goes through vpn server. Can I configure my routing so that traffic through this port goes past the vpn, through my main provider.
Purpose: to open a port for incoming connections so that users of my program can query the database located on my computer

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Proktorios, 2015-10-26
@Proktorios

Much easier to set up if you work through a service, for example thesafety.us/en

A
AbroMaRiNa, 2021-03-12
@AbroMaRiNa

I want to describe my solution:
1. Register metrics - for VPN - 1, for the main network - 2.
2. Disable the checkbox about the gateway in the remote network for VPN
3. Register a static route to all IPs through VPN: route add 0.0.0.0 mask 0.0 .0.0 Gateway-VPN IP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question