mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4483] tls2raw plugin doesn't work, getting remotePort isn't defined during startup. #3543
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3543
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JiachenRen on GitHub (Oct 12, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4483
Bug Description
In order to use the new tls2raw plugin, you would have to specify remotePort under proxies session, however during config validation it complains that remotePort isn't defined.
frpc Version
0.60.0
frps Version
0.60.0
System Architecture
linux/amd64
Configurations
frpc.toml
serverAddr = "..."
serverPort = "..."
auth.method = "token"
auth.token = "..."
transport.poolCount = 5
transport.tls.enable = true
transport.tls.certFile = "..."
transport.tls.keyFile = "..."
transport.tls.disableCustomTLSFirstByte = false
proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
proxies
name = "..."
type = "https"
remotePort = 11001
[proxies.plugin]
type = "tls2raw"
localAddr = "127.0.0.1:11001"
crtPath = "..."
keyPath = "..."
proxies
name = "..."
type = "tcp"
localIP = "127.0.0.1"
localPort = 3478
remotePort = 3478
proxies
name = "..."
type = "udp"
localIP = "127.0.0.1"
localPort = 3478
remotePort = 3478
proxies
name = "nextcloud"
type = "https"
customDomains = ["..."]
[proxies.plugin]
type = "https2http"
localAddr = "127.0.0.1:11000"
crtPath = "..."
keyPath = "..."
hostHeaderRewrite = "127.0.0.1"
requestHeaders.set.x-from-where = "frp"
Logs
frp ./frpc verify -c frpc.toml
unmarshal ProxyConfig error: json: unknown field "remotePort"
Steps to reproduce
2855ac71e3/conf/frpc_full_example.toml)Affected area
@fatedier commented on GitHub (Oct 14, 2024):
remotePort not for https proxy
@JiachenRen commented on GitHub (Oct 17, 2024):
Thanks for your prompt reply. In that case, I think it's misleading to add this in the example config under tls2raw plugin demo here. In this case, how would you configure a tls2raw connection from a custom remote port to a local port?
@fatedier commented on GitHub (Oct 17, 2024):
That example is incorrect; I will submit a PR for the fix later.
TCP type proxies are configured with remotePort, while HTTPS type proxies reuse frps's vhostHTTPSPort and do not require remotePort configuration.