mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1439] Can I enable a reverse proxy for LAN only on server side? #1133
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#1133
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 @Doc-Saintly on GitHub (Sep 16, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1439
Is it possible to open a reverse proxy connection from the client without automatically exposing it on the server? I want to use FRP to allow multiple clients to connect to my central patch management server from behind a firewall, but I do not want to have this port be opened to the WAN for the server.
I know that I could utilize a firewall to block all except specifically allowed ports, but then this would make the feature of automatically opening ports with FRP useless. I would have to pre-define which ports to allow to be opened in the firewall in order to block the others.
@fatedier commented on GitHub (Sep 28, 2019):
proxy_bind_addr = 127.0.0.1in frps.ini will help you.It will only let frps bind ports on localhost that only this server can connect.
@Doc-Saintly commented on GitHub (Sep 28, 2019):
Thanks for the reminder about that configuration option. But doesn't mean that all connections will be unavailable? I want to proxy ~10 ports to a server and have 8 available locally and 2 available externally. So it seems I either have to use a firewall to block the 8 I only want locally, or use two instances of frps (one binding to localhost, one binding externally) and then pick which one to have the client bind to.
Is it possible to add as a feature so the client can determine if the server should use the configured bind address, or local only for each port?
@fatedier commented on GitHub (Sep 29, 2019):
Try stcp https://github.com/fatedier/frp#expose-your-service-in-security . But it requires you deploy frpc on each client who wants to connect.