- Joined
- Feb 27, 2003
- Messages
- 9,158
I've made some changes to the block_ip.sh, iptables, and related scripts:
http://files.directadmin.com/services/all/block_ips/2.1/
Version: 2.1 - RC1
it has been tested on a test box, but is only labelled RC1 to allow some time for testing before making it the default in the guide, which will still use 2.0.
The following changes have been made:New allowed_ips and blocked_ips chains for faster adding/removing (no need for full iptables restart)
Will add blocked_ips and /usr/local/directadmin/data/admin/ip_whitelist to allowed_ips to ensure no accidental blocking.
Actively checks sshd_config and './directadmin c' output to ensure those ports are open, to prevent accidental blocking of ssh.
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
If you decide to update to this version, use steps 1, 2 and 4, with version 2.1 set:
http://help.directadmin.com/item.php?id=380&in1=2.1
and let us know if you run into any issues.
Also let us know if you don't run into any issues and if it works correctly.
John
http://files.directadmin.com/services/all/block_ips/2.1/
Version: 2.1 - RC1
it has been tested on a test box, but is only labelled RC1 to allow some time for testing before making it the default in the guide, which will still use 2.0.
The following changes have been made:New allowed_ips and blocked_ips chains for faster adding/removing (no need for full iptables restart)
Will add blocked_ips and /usr/local/directadmin/data/admin/ip_whitelist to allowed_ips to ensure no accidental blocking.
Actively checks sshd_config and './directadmin c' output to ensure those ports are open, to prevent accidental blocking of ssh.
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
If you decide to update to this version, use steps 1, 2 and 4, with version 2.1 set:
http://help.directadmin.com/item.php?id=380&in1=2.1
and let us know if you run into any issues.
Also let us know if you don't run into any issues and if it works correctly.
John