I am updating some firewall rules to work with fail2ban, and when I set to create the table on boot process I got this message:
My /etc/ipfw.rules of this part:
Theres an way to fix the warning?
Something like:
Code:
DEPRECATED: inserting data into non-existent table 1. (auto-created)
My /etc/ipfw.rules of this part:
Code:
...
ipfw -q add 01500 check-state
# fail2ban IPs
ipfw table 1 flush
ipfw table 1 add 127.0.0.2
ipfw add 1 deny ip from "table(1)" to me
...
Theres an way to fix the warning?
Something like:
Code:
If ipfw "table(1)" does not exist
Create
Else
flush
Then
ipfw table 1 add 127.0.0.2
ipfw add 1 deny ip from "table(1)" to me