mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4480] [Feature Request] remoteAdd bind to 127.0.0.1 only #3540
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#3540
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 @richervip on GitHub (Oct 10, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4480
Describe the feature request
Cloud I bind client service remote service port to 127.0.0.1 only or particular IP rather then 0.0.0.0 ?
I do not want to open this service to any.
for proxies example in frpc.tom.
proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
remoteIP = "127.0.0.1"
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (Oct 10, 2024):
https://github.com/fatedier/frp/blob/dev/conf/frps_full_example.toml#L18
@richervip commented on GitHub (Oct 11, 2024):
proxyBindAddr is only bind ALL proxy to particular IP address.
Could I bind proxy ssh/22 to 127.0.0.1 and http/80 to 0.0.0.0 in the same server ?
@lcharles123 commented on GitHub (Oct 15, 2024):
If I understand what you are requesting, you want to specify source address of frp server and client. It is possible, but only for TCP connections, UDP based connections do not work and you need to use a wrapper to call the frp client.
The setting to specify bind addres on frp client is ConnectServerLocalIP , you need to put it in general section of frpc config
transport.ConnectServerLocalIP = "IP_addr"
Also on the server there is a option bindAddr
@richervip commented on GitHub (Oct 21, 2024):
This is my request.
Server IP : private_ip: 127.0.0.1 , public_ip : 123.123.123.123
frpc.toml
proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 222
remoteIP = "127.0.0.1" #client ssh bind to server IP 127.0.0.1 only
proxies
name = "web"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 80
remoteIP = "123.123.123.123" #client web bind to server IP 123.123.123.123 only
@fatedier commented on GitHub (Oct 21, 2024):
remoteIP is not supported. Please use proxyBindAddr and multiple frps instances to achieve this kind of requirement.