A
A
Alexander Ivanov2021-08-11 20:33:01
iptables
Alexander Ivanov, 2021-08-11 20:33:01

How to connect two NATs using iptables?

Is it even possible to connect two machines with iptables using a separate server, each of which is behind its own NAT. What would they exchange tcp packets with each other? If possible, how? I ask for a detailed detailed answer plz

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2021-08-11
@Drno

vpn organize ... for the machines must knock somewhere and for some reason in order to unite

C
CityCat4, 2021-08-12
@CityCat4

Provided that a separate server has a white static IP - you can.
Client A connects to the server, client B connects to the server, the server sends packets from client A to client B. This is how TeamViewer works for example. The simplest case is a VPN from the server to A, and a VPN to B, the server does the routing.
Which VPN - at your discretion, which one you can put. Usually either openvpn or strongswan/racoon (which implements IPSec)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question