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

网络错误无法重新连接:connect: network is unreachabl #1283

Open
PoonKinWang opened this issue May 1, 2024 · 0 comments
Open

网络错误无法重新连接:connect: network is unreachabl #1283

PoonKinWang opened this issue May 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@PoonKinWang
Copy link

PoonKinWang commented May 1, 2024

很感谢NPS团队为开源社区带来优秀易用的网络穿透组建。
我已经使用nps一年了,在我使用的过程中,经常遇到网络波动而中断连接的情况:
2024/04/24 12:16:43.228 [E] [control.go:111] dial tcp 35.215.137.212:9990: connect: network is unreachable
这种情况出现后服务并不会再次尝试连接,我尝试过一些解决办法,比如通过systemd去守护nps服务,但由于nps连接错误的时候并不会自动退出,因此没办法通过守护进程自动重启。
根据 Issue #763 中提到的建议,我尝试过修改disconnect_time参数为默认和不同值,但是遇到网络波动时仍然发生永久性中断。

我的配置文件如下:

[common]
server_addr=nps_ip:nps_port
conn_type=tcp
vkey=nps_vkey
compress=true
crypt=true
rate_limit=10000
flow_limit=100
remark=ssh
max_conn=10
@PoonKinWang PoonKinWang added the enhancement New feature or request label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant