mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2084] FRP ssh service with fail2ban #1657
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#1657
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 @troyliu0105 on GitHub (Nov 19, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2084
VERSION: frps:0.34.2, frpc:0.34.2
OS: frps: Archlinux x64, frpc: Ubuntu x64
Description:
When I use the frpc config to expose a local ssh service to public network, config like below:
it forwards incoming connections to 127.0.0.1:22, and the auth.log show that remote IP address is 127.0.0.1.
So fail2ban could not find the correct public IP address. 🙃
@fatedier commented on GitHub (Nov 19, 2020):
You can try
proxy protocolhttps://github.com/fatedier/frp#proxy-protocol.But i'm not sure if fail2ban can support this protocol.
On the other hand, if you are care about security, do not expose your ssh port to public network directly. Try
stcphttps://github.com/fatedier/frp#expose-your-service-privately instead.@github-actions[bot] commented on GitHub (Jan 4, 2021):
Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.