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

NAT问题 #727

Open
zhengkaiGithub opened this issue Oct 22, 2024 · 8 comments
Open

NAT问题 #727

zhengkaiGithub opened this issue Oct 22, 2024 · 8 comments

Comments

@zhengkaiGithub
Copy link

部署情况
tracker和storage都在同一台服务器
网络情况
本身ip10.60.33.36
跨网段后通过NAT转发到10.60.33.36,ip是10.188.33.36

通过10.188.33.36连接上22122后,返回的是10.60.33.36:23000,导致无法连接

@happyfish100
Copy link
Owner

可以试试 V6开始支持的双IP特性。

@zhengkaiGithub
Copy link
Author

已经是6.12.1,但是我配置了后启动报错,不知道哪儿错了,可以给个示例吗

@happyfish100
Copy link
Owner

源码的conf目录下有配置示例。

@zhengkaiGithub
Copy link
Author

我目前就是按照源码目录的conf文件配置的,但是还是报错

@zhengkaiGithub
Copy link
Author

现在的要求是一个内网ip、一个外网ip,或者两个不同类型的内网ip,但是由于我两个ip都是10,被识别为了同一个类型的ip,启动时就会报错

@happyfish100
Copy link
Owner

内外网IP不能配置为同一种类型的网络IP啊!需要区分开,比如一个用 10,另外一个用172

@zhengkaiGithub
Copy link
Author

问题是我这边网络环境复杂,不能改用172,跨机房通信必须用10.188,通过中间的NAT转到10.60

@zhengkaiGithub
Copy link
Author

主要还不能修改,必须这么用

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