mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #4110] [CLOSED] nathole: upnp support #4920
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#4920
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?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/4110
Author: @slayercat
Created: 3/28/2024
Status: ❌ Closed
Base:
dev← Head:dev-nathole-upnp-helpers📝 Commits (1)
5d87105nathole: upnp support📊 Changes
10 files changed (+244 additions, -3 deletions)
View changed files
📝
client/proxy/xtcp.go(+19 -1)📝
client/visitor/xtcp.go(+19 -1)📝
conf/frpc_full_example.toml(+5 -0)📝
go.mod(+3 -0)📝
go.sum(+6 -0)📝
pkg/config/v1/common.go(+5 -0)📝
pkg/config/v1/proxy.go(+2 -0)📝
pkg/config/v1/visitor.go(+2 -0)📝
pkg/nathole/nathole.go(+10 -1)➕
pkg/nathole/upnp/upnp.go(+173 -0)📄 Description
WHY
When a router supports UPnP,
frpccan be configured to utilize the UPnP protocol to assist with tunnel traversal.This method can circumvent issues associated with the lack of support for STUN, enhancing the possibility of establishing direct connections.
It is important to note that UPnP operates as a plaintext protocol. Therefore, it should be disabled in scenarios where secure, concealed communication is required.
By default, this configuration is disabled, and it requires the specification of the program name to be exposed to UPnP devices.
see also:
https://github.com/fatedier/frp/issues/1823
https://github.com/fatedier/frp/issues/3703
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.