9.07 - Fixed removal of complex allow and deny rules
viewtopic.php?f=4&t=9603
It appears that these changes are preventing complex rules from being removed when using the IP address itself. This complicates things when iptables rules generated for LFD automated blocks are entered. As an example:
Code: Select all
tcp|in|d=2078|s=1.2.3.4 # lfd: (cpanel) Failed cPanel login from 1.2.3.4 (PA/Panama/-): 5 in the last 3600 secs - Wed Jun 29 16:08:07 2016
tcp|in|d=2082|s=1.2.3.4 # lfd: (cpanel) Failed cPanel login from 1.2.3.4 (PA/Panama/-): 5 in the last 3600 secs - Wed Jun 29 16:08:07 2016
tcp|in|d=2083|s=1.2.3.4 # lfd: (cpanel) Failed cPanel login from 1.2.3.4 (PA/Panama/-): 5 in the last 3600 secs - Wed Jun 29 16:08:08 2016
tcp|in|d=2086|s=1.2.3.4 # lfd: (cpanel) Failed cPanel login from 1.2.3.4 (PA/Panama/-): 5 in the last 3600 secs - Wed Jun 29 16:08:08 2016
tcp|in|d=2087|s=1.2.3.4 # lfd: (cpanel) Failed cPanel login from 1.2.3.4 (PA/Panama/-): 5 in the last 3600 secs - Wed Jun 29 16:08:09 2016
tcp|in|d=2095|s=1.2.3.4 # lfd: (cpanel) Failed cPanel login from 1.2.3.4 (PA/Panama/-): 5 in the last 3600 secs - Wed Jun 29 16:08:09 2016
tcp|in|d=2096|s=1.2.3.4 # lfd: (cpanel) Failed cPanel login from 1.2.3.4 (PA/Panama/-): 5 in the last 3600 secs - Wed Jun 29 16:08:09 2016
Code: Select all
csf -dr 1.2.3.4
csf: 1.2.3.4 not found in csf.deny
Code: Select all
csf -g 1.2.3.4
Chain num pkts bytes target prot opt in out source destination
DENYIN 91 0 0 DROP tcp -- !lo * 1.2.3.4 0.0.0.0/0 tcp dpt:2078
DENYIN 92 0 0 DROP tcp -- !lo * 1.2.3.4 0.0.0.0/0 tcp dpt:2082
DENYIN 93 0 0 DROP tcp -- !lo * 1.2.3.4 0.0.0.0/0 tcp dpt:2083
DENYIN 94 0 0 DROP tcp -- !lo * 1.2.3.4 0.0.0.0/0 tcp dpt:2086
DENYIN 95 0 0 DROP tcp -- !lo * 1.2.3.4 0.0.0.0/0 tcp dpt:2087
DENYIN 96 0 0 DROP tcp -- !lo * 1.2.3.4 0.0.0.0/0 tcp dpt:2095
DENYIN 97 0 0 DROP tcp -- !lo * 1.2.3.4 0.0.0.0/0 tcp dpt:2096
ip6tables:
Chain num pkts bytes target prot opt in out source destination
No matches found for 1.2.3.4 in ip6tables
Code: Select all
csf -dr 'tcp|in|d=2096|s=1.2.3.4'
Removing rule...
DROP tcp opt -- in !lo out * 1.2.3.4 -> 0.0.0.0/0 tcp dpt:2096