L
L
Luchnik222012-05-30 11:57:34
VPN
Luchnik22, 2012-05-30 11:57:34

How to establish a computer-to-computer connection?

I have a computer COMP_Server with a white IP and two computers COMP_1 and COMP_2 behind NAT on different networks. All computers (including COMP_Server) are running Windows 7.
My task is to create a direct tunnel between COMP_1 and COMP_2 using COMP_Server, how can I do it programmatically ?
Tunnel encryption and authorization on the server are not required, but not prohibited.
Hamachi is no good. You can use any programming languages/modules/libraries, etc.
If you offer Open VPN, then please show examples of implementation.
PS I dug up the solution, but I can’t implement it, I stumbled on compiling the driver, I will be very grateful if you chew it or suggest your own implementation method.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
4
4dmonster, 2012-05-30
@4dmonster

Install OpenVPN openvpn.net/index.php/open-source/documentation/howto.html
in its config, uncomment
client-to-client
so that clients can see each other
and in order not to add a bunch of clients but issue one certificate to everyone, you can use
duplicate-cn
true I did not use it, I cannot tell how clients will define each other in this case. and in the case of personal certificates, pairs certificate - ip will be written to the file

N
Nikolai Vasilchuk, 2012-05-30
@Anonym

I'm not sure if several clients can connect at once, but it's still worth a try

A
agasper, 2012-05-30
@agasper

If it is possible to forward ports through NAT, then look at rinetd

V
ValdikSS, 2012-05-30
@ValdikSS

Why doesn't hamachi work?
If you have many clients, I recommend that you immediately think about full mech routing. OpenVPN does not know how to do this, I recommend tinc.
If, nevertheless, full mech is not needed, then use OpenVPN with one key for all. And you don't need to compile tap/tun, they come with openvpn

W
WondeRu, 2012-06-29
@WondeRu

Vintage: we had experience connecting computers via RS232 via COM ports) Even NFS Porche almost did not lag on such a network)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question