[GH-ISSUE #312] 如果想从固定ip段去ssh管理各个frpc,不是固定来源的ssh则拒绝,能在frps,frpc上用iptables实现吗? #233

Closed
opened 2026-05-05 12:01:50 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @bk111 on GitHub (May 9, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/312

frp开了ssh后,只要一次ssh登录,就能进入frpc岂不是不安全,能改进吗? (http 登录时,就有2次验证。 一次是自己设的 frp的密码, 一次是frpc所在的机器的登录密码。 但ssh登录时就只有一次密码验证。)

能不能在frps, frpc 上用iptables对 来源ip 做限制? 使只有来自于某网段的ip才能ssh 通过frps,进入frpc ?
假设一种场景, 需要从固定网段去ssh管理多个frpc 。 但不是从这个固定网段去连 frps, 就拒绝。

Originally created by @bk111 on GitHub (May 9, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/312 frp开了ssh后,只要一次ssh登录,就能进入frpc岂不是不安全,能改进吗? (http 登录时,就有2次验证。 一次是自己设的 frp的密码, 一次是frpc所在的机器的登录密码。 但ssh登录时就只有一次密码验证。) 能不能在frps, frpc 上用iptables对 来源ip 做限制? 使只有来自于某网段的ip才能ssh 通过frps,进入frpc ? 假设一种场景, 需要从固定网段去ssh管理多个frpc 。 但不是从这个固定网段去连 frps, 就拒绝。
Author
Owner

@fatedier commented on GitHub (May 18, 2017):

可以自行使用 iptables 做这件事,frp 不提供这个功能。

<!-- gh-comment-id:302500780 --> @fatedier commented on GitHub (May 18, 2017): 可以自行使用 iptables 做这件事,frp 不提供这个功能。
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#233
No description provided.