[GH-ISSUE #2531] Pease add remote_ip so I can bind to localhost #2013

Closed
opened 2026-05-05 13:18:06 -06:00 by gitea-mirror · 2 comments
Owner

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 of remote_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_ip as a pair of remote_port set in frpc.ini

Application 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.

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 of `remote_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_ip` as a pair of `remote_port` set in frpc.ini **Application 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.
Author
Owner

@fatedier commented on GitHub (Aug 16, 2021):

Try to use proxy_bind_addr https://github.com/fatedier/frp/blob/dev/conf/frps_full.ini#L17 for each frps.

remote_ip can't be set from frpc.

<!-- gh-comment-id:899178959 --> @fatedier commented on GitHub (Aug 16, 2021): Try to use `proxy_bind_addr` https://github.com/fatedier/frp/blob/dev/conf/frps_full.ini#L17 for each frps. `remote_ip` can't be set from frpc.
Author
Owner

@shemgp commented on GitHub (Aug 16, 2021):

I missed that config. It works as needed. Thanks.

<!-- gh-comment-id:899189049 --> @shemgp commented on GitHub (Aug 16, 2021): I missed that config. It works as needed. Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2013
No description provided.