- Full IP Range
- Support IPv4-v6
- Support Multi-Country
- Support all protocols and ports
- Support INPUT/OUTPUT Server
- Persistent settings after reboot
- Automatic IP update every day
- Support Debian v11-12, Ubuntu v20-22
Upgrade and reboot your server>>
apt update && apt -y upgrade && sleep 3 && reboot
Install
bash <(wget -qO- https://raw.githubusercontent.com/AliDbg/IPBAN/main/ipban.sh) -install yes -io OUTPUT -geoip CN,IR,RU,CU,VN,ZW,BY -limit DROP -noicmp yes
Add Rules
bash <(wget -qO- https://raw.githubusercontent.com/AliDbg/IPBAN/main/ipban.sh) -add yes -io INPUT -geoip CN,RU -limit DROP
Reset Rules
bash <(wget -qO- https://raw.githubusercontent.com/AliDbg/IPBAN/main/ipban.sh) -reset yes
Remove IPBAN
bash <(wget -qO- https://raw.githubusercontent.com/AliDbg/IPBAN/main/ipban.sh) -remove yes
-io INPUT or OUTPUT or FORWARD
-geoip Country Alpha-2 code
-limit DROP(Reject) or ACCEPT(Allow)
-noicmp yes (Disable ICMP Protocol for deny ping)
SSH Client: https://github.com/nirui/sshwifty
Checker: https://check-host.net