fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
86.23k stars 13.34k forks source link

dial tcp 10.0.1.20:443: i/o timeout #3437

Closed AndyIsHereBoi closed 1 year ago

AndyIsHereBoi commented 1 year ago

Bug Description

I know this is probably a user specific issue, but I can't solve it. When I run FRPC it eventually starts to give this error, either with the remote server, or with the local proxies like this one. Usually happens when the proxy is in use


2023/05/10 12:32:42 [E] [proxy.go:803] [a4f71c3731821522] [SSL Tunnel] connect to local service [10.0.1.20:443] error: dial tcp 10.0.1.20:443: i/o timeout

### frpc Version

0.48.0

### frps Version

0.48.0

### System Architecture

linux/amd64

### Configurations

[common]
server_addr = x.x.x.x
server_port = 7000

admin_addr = 0.0.0.0
admin_port = x
admin_user = admin
admin_pwd = admin

#log_file = ./frpc.log
#log_level = info
#log_max_days = 3

disable_log_color = false

authenticate_heartbeats = false

authenticate_new_work_conns = false

authentication_method = token

# Start proxy server
[HTTP Tunnel]
type = tcp
local_ip = 10.0.1.20
local_port = 80
remote_port = 80

[NPM Management]
type = tcp
local_ip = 10.0.1.20
local_port = 81
remote_port = 81

[SSL Tunnel]
type = tcp
local_ip = 10.0.1.20
local_port = 443
remote_port = 443
# End proxy server

# Start panel services
[Wings Daemon]
type = tcp
local_ip = 10.0.1.21
local_port = 8080
remote_port = 8080

[Wings SFTP]
type = tcp
local_ip = 10.0.1.21
local_port = 2022
remote_port = 2022

[Terraria]
type = tcp
local_ip = 10.0.1.21
local_port = 7777
remote_port = 7777
# End panel services

# Start external services
[Tmobile Router]
type = tcp
local_ip = 192.168.12.1
local_port = 80
remote_port = 25000

### Logs

2023/05/10 12:35:48 [I] [control.go:172] [a4f71c3731821522] [HTTP Tunnel] start proxy success
2023/05/10 12:35:48 [I] [control.go:172] [a4f71c3731821522] [NPM Management] start proxy success
2023/05/10 12:35:48 [I] [control.go:172] [a4f71c3731821522] [SSL Tunnel] start proxy success
2023/05/10 12:36:54 [E] [proxy.go:803] [a4f71c3731821522] [Wings Daemon] connect to local service [10.0.1.21:8080] error: dial tcp 10.0.1.21:8080: i/o timeout
2023/05/10 12:36:58 [I] [control.go:242] [a4f71c3731821522] control writer is closing
2023/05/10 12:36:58 [I] [visitor_manager.go:60] [a4f71c3731821522] gracefully shutdown visitor manager
2023/05/10 12:36:58 [I] [service.go:211] [a4f71c3731821522] try to reconnect to server...
2023/05/10 12:37:08 [W] [service.go:214] [a4f71c3731821522] reconnect to server error: dial tcp 5.161.223.225:7000: i/o timeout, wait 1s for another retry
2023/05/10 12:37:09 [I] [service.go:211] [a4f71c3731821522] try to reconnect to server...
2023/05/10 12:37:17 [I] [service.go:299] [a4f71c3731821522] login to server success, get run id [a4f71c3731821522], server udp port [0]
2023/05/10 12:37:17 [I] [proxy_manager.go:142] [a4f71c3731821522] proxy added: [Wings SFTP Terraria Tmobile Router HTTP Tunnel NPM Management SSL Tunnel Wings Daemon]

### Steps to reproduce

1. 
2. 
3. 
...

### Affected area

- [ ] Docs
- [ ] Installation
- [X] Performance and Scalability
- [ ] Security
- [X] User Experience
- [ ] Test and Release
- [ ] Developer Infrastructure
- [ ] Client Plugin
- [ ] Server Plugin
- [ ] Extensions
- [ ] Others
jsgzsjskj commented 1 year ago

我把校园网换成手机热点后也报超时,关闭win防火墙后就连接失败会话结束

github-actions[bot] commented 1 year ago

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.