Skip to content

Instantly share code, notes, and snippets.

@Andy963
Andy963 / andy.svg
Created February 14, 2026 14:50
andy avatars
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Andy963
Andy963 / sshd.conf
Created November 6, 2023 08:12
fail2ban sshd
#/etc/fail2ban/jail.d/ 下创建 sshd.conf
[sshd]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 5
bantime = -1
ignoreip =
@Andy963
Andy963 / brook.service
Last active November 6, 2023 08:11
brook service
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