Skip to content

Commit

Permalink
[Fix] expirebans() would only remove bans that contained comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rfxn committed Jul 31, 2014
1 parent 8b29ae4 commit f31026a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
[Change] consolidated TMP_DROP and TMP_ALLOW chains into REFRESH_TEMP
[Change] updated copyright dates in all output and file headers
[Change] removed use of *_URL_PROT variables, URL's should now be fully qualified URI's (e.g: http://domain.com/path/file)
[Fix] expirebans() would only time delay remove bans that contained comments
[Fix] expirebans() would only remove bans that contained comments
[Fix] allow rules in the format advanced trust syntax, when otherwise not defining a protocol, were only applying to TCP traffic
[Fix] trust rules refresh cronjob modified to remove MAILTO & SHELL variables which were causing crond
'bad minute' errors on some systems
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
[Change] consolidated TMP_DROP and TMP_ALLOW chains into REFRESH_TEMP
[Change] updated copyright dates in all output and file headers
[Change] removed use of *_URL_PROT variables, URL's should now be fully qualified URI's (e.g: http://domain.com/path/file)
[Fix] expirebans() would only remove bans that contained comments
[Fix] allow rules in the format advanced trust syntax, when otherwise not defining a protocol, were only applying to TCP traffic
[Fix] trust rules refresh cronjob modified to remove MAILTO & SHELL variables which were causing crond
'bad minute' errors on some systems
Expand Down
2 changes: 2 additions & 0 deletions files/internals/functions.apf
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,8 @@ if [ "$SET_EXPIRE" -ge "60" ]; then
time_diff=$[$check_time-$ban_time]
if [ "$time_diff" -ge "$expire_time" ]; then
eout "{trust} removed expired ban for $ip (${time_diff}s/${expire_time}s)"
sdel=`echo $ip | sed 's%/%\\\/%'`
sed -i "/$sdel/d" /etc/apf/deny_hosts.rules
/etc/apf/apf -u "$ip" >> /dev/null 2>&1
fi
done
Expand Down

0 comments on commit f31026a

Please sign in to comment.