IPBAN
⚔️🧱🔥🛑IP BAN Block Allow GEOIP country traffic limit server input/output to IP countries with iptables+xt_geoip, auto db-ip update, firewall fail2ban gfw ufw cidr blacklist netfilter rules persistent restrict netaddr xtables linux debian ubuntu apache nginx web server anti hack ddos firewalld ipblocks ipdeny ip ranges MaxMind ipset
Install / Use
/learn @AliDbg/IPBANREADME
IPBAN (Limiting IP countries with iptables+xt_geoip)
- Full IP Range
- Support IPv4-v6
- Support Multi-Country
- Support all protocols and ports
- Support INPUT/OUTPUT Server
- Persistent settings/rules after reboot
- Automatic IP update every day
- Support Ubuntu≥20 Debian≥11 CentOS≥8
:warning: Disable the firewall and install on a clean Linux
Install [Add rules]
bash <(wget -qO- raw.githubusercontent.com/AliDbg/IPBAN/main/ipban.sh) -add OUTPUT -geoip CN,IR -limit DROP
Reset/Clean rules
bash <(wget -qO- raw.githubusercontent.com/AliDbg/IPBAN/main/ipban.sh) -reset y
Uninstall IPBAN [Restore previous iptables rules]
bash <(wget -qO- raw.githubusercontent.com/AliDbg/IPBAN/main/ipban.sh) -remove y
Install Arguments
-add INPUT or OUTPUT or FORWARD
-geoip Country Alpha-2 code
-limit DROP(Reject) or ACCEPT(Allow)
-icmp no/yes (Deny ping your server)
Useful commands
iptables -F && ip6tables -F ## Reset/clean iptables rules
systemctl enable firewalld ufw ## Enable firewall
iptables-save > rules.txt ## Backup iptables
iptables-restore < rules.txt ## Restore iptables
iptables -nvL # Show iptables rule
ping x.x.x.x # Ping ip and domain
Useful tools
SSH Client: https://github.com/nirui/sshwifty
Checker: https://check-host.net
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
