block_ip.sh and iptables 2.1
Updated iptables and scripts for this feature
http://help.directadmin.com/item.php?id=380
See file differences from 2.0 here
Changes
- New allowed_ips and blocked_ips chains for faster adding/removing
- Will add blocked_ips and /usr/local/directadmin/data/admin/ip_whitelist to allowed_ips
- Actively checks sshd_config and './directadmin c' output to ensure those ports are open
- ALLOW_PING=1 setting to enable ICMP pings/traceroute (by default)
- Cleaner rate limiting for 25 and 465 via rate_limit function
- Better commenting for easier navigation
Updating
Run steps 1, 2 and 4 from this guide, with version 2.1 set:
http://help.directadmin.com/item.php?id=380&in1=2.1.