Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/etc/fail2ban/jail.d/ 下创建 sshd.conf | |
| [sshd] | |
| enabled = true | |
| port = ssh | |
| filter = sshd | |
| logpath = /var/log/auth.log | |
| maxretry = 5 | |
| bantime = -1 | |
| ignoreip = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -Lo brook https://github.com/txthinking/brook/releases/download/v20230606/brook_linux_amd64 && chmod +x brook && mv -f brook /usr/local/bin/ | |
| [Unit] | |
| After=network.target nss-lookup.target | |
| [Service] | |
| User=root | |
| WorkingDirectory=/root | |
| CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE |