mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2531] Pease add remote_ip so I can bind to localhost #2013
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#2013
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 @shemgp on GitHub (Aug 15, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2531
The solution you want
It would be nice if I can specify the
remote_ip, as the pair ofremote_port, to be able bind to localhost so that I wont expose my home server directly. I have an apache2 reverse proxy, so that I can also host websites in the VPS, while I also use frp, on a separate port, for hosting my home server on that same VPS.Alternatives considered
Use iptables to block outside requests to the
remote_port.How to implement this function
Implement
remote_ipas a pair ofremote_portset in frpc.iniApplication scenarios of this function
When one wants to host a combination of NAT based and VPS hosted sites in a VPS using a reverse proxy, but don't want to expose the NAT server port directly to avoid duplication.
Thank you for considering this feature.
@fatedier commented on GitHub (Aug 16, 2021):
Try to use
proxy_bind_addrhttps://github.com/fatedier/frp/blob/dev/conf/frps_full.ini#L17 for each frps.remote_ipcan't be set from frpc.@shemgp commented on GitHub (Aug 16, 2021):
I missed that config. It works as needed. Thanks.