Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect different nodes? #213

Open
lorki opened this issue Mar 11, 2020 · 6 comments
Open

How to connect different nodes? #213

lorki opened this issue Mar 11, 2020 · 6 comments

Comments

@lorki
Copy link

lorki commented Mar 11, 2020

I have a server on the Internet (S) and I have two PCs behind NAT. How can I make PC1 connect to PC2?

@lorki
Copy link
Author

lorki commented Mar 11, 2020

Two PCs can be connected to S, but cannot be directly connected.

@lorki
Copy link
Author

lorki commented Mar 11, 2020

S:

[fscp]
listen_on=0.0.0.0:12000

[tap_adapter]
type=tap
ipv4_address_prefix_length=10.0.0.1/8
dhcp_server_ipv4_address_prefix_length=10.0.0.0/8
[switch]
routing_method=hub
relay_mode_enabled=yes
[router]
local_ip_route=10.0.0.0/8

PC1:

[fscp]
contact={$s_ip_address}:30000
[tap_adapter]
type=tap
ipv4_address_prefix_length=10.0.0.2/8

PC2:

[fscp]
contact={$s_ip_address}:30000
[tap_adapter]
type=tap
ipv4_address_prefix_length=10.0.0.3/8

With the above configuration, I can achieve interconnection, but the speed is too slow and the network overhead is too large.

Is there a way for S to provide stun service for two PCs. There is no need to pass data through S to achieve interconnection.

@richman1000000
Copy link

use Dynamic contacts

@lorki
Copy link
Author

lorki commented Mar 11, 2020

use Dynamic contacts

Can you give me further enlightenment? For example, some documents or samples?

@richman1000000
Copy link

richman1000000 commented Mar 11, 2020

@richman1000000
Copy link

this is my working configuration. My White IP replaced so noone will DDoS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants