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

proxies randomly die over time but ~20% of them stay up #4229

Closed
2 of 11 tasks
modpotato opened this issue May 21, 2024 · 2 comments
Closed
2 of 11 tasks

proxies randomly die over time but ~20% of them stay up #4229

modpotato opened this issue May 21, 2024 · 2 comments

Comments

@modpotato
Copy link

Bug Description

after a few days (or hours) of running frp it will randomly close a large amount of connections

frpc Version

0.56.0

frps Version

0.56.0

System Architecture

linux/amd64

Configurations

server:

# frps.toml
bindPort = 7000
kcpBindPort = 7000
vhostHTTPSPort = 8080
allowPorts = [
    {single = 2022},
    {start = 4000, end = 5000},
    {single = 8080}
]
# The default value is 127.0.0.1. Change it to 0.0.0.0 when you want to access it from a public network.
webServer.addr = "0.0.0.0"
webServer.port = 7500
# dashboard's username and password are both optional
webServer.user = "admin"
webServer.password = "admin"

auth.additionalScopes = ["HeartBeats"]
auth.method = "token"
auth.token = "authtoken"

client

# frpc.toml
serverAddr = "15.204.234.35" # Replace with frps server IP
serverPort = 7000
transport.protocol = "kcp"

auth.additionalScopes = ["HeartBeats"]
auth.method = "token"
auth.token = "authtoken"


# TCP port range mapping
{{range $val := parseNumberRangePair "4000-5000" "4000-5000"}}
[[proxies]]
name = "tcp-{{$val.First}}"
type = "tcp"
localPort = {{$val.First}}
remotePort = {{$val.Second}}
{{end}}

# Additional TCP ports
[[proxies]]
name = "tcp-2022"
type = "tcp"
localPort = 2022
remotePort = 2022

[[proxies]]
name = "tcp-8080"
type = "https"
customDomains = ["website.com"]

[proxies.plugin]
type = "https2http"
crtPath = ""
keyPath = ""
localAddr = "127.0.0.1:8080"

# UDP port range mapping
{{range $val := parseNumberRangePair "4000-5000" "4000-5000"}}
[[proxies]]
name = "udp-{{$val.First}}"
type = "udp"
localPort = {{$val.First}}
remotePort = {{$val.Second}}
{{end}}


Logs

im only going to cite relevant logs, lmk if more are needed (10k lines plus)

May 21 01:58:26 frpc[70729]: 2024-05-21 01:58:26.855 [W] [client/control.go:127] [22197ea8e7593c30] start new connection to server error: session shutdown
May 21 01:58:26 frpc[70729]: 2024-05-21 01:58:26.348 [I] [proxy/udp.go:142] [22197ea8e7593c30] [udp-4021] writer goroutine for udp work connection closed
May 21 01:58:26 frpc[70729]: 2024-05-21 01:58:26.348 [W] [proxy/udp.go:128] [22197ea8e7593c30] [udp-4178] read from workConn for udp error: EOF

all 3 of these are spammed (aside from these the others are just random requests that didnt reach an endpoint)

Steps to reproduce

  1. load configs
  2. use ovhcloud vps for server
  3. use local for client
  4. wait

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
@xqzr
Copy link

xqzr commented May 21, 2024

#4223

Copy link

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants