mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
firewall: Add ipblocklist related chains.
Signed-off-by: Tim FitzGeorge <ipfr@tfitzgeorge.me.uk> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Stefan Schantl
parent
3e0cb28fc6
commit
733267f35a
@@ -180,6 +180,14 @@ iptables_init() {
|
||||
iptables -A HOSTILE_DROP -m limit --limit 10/second -j LOG --log-prefix "DROP_HOSTILE "
|
||||
iptables -A HOSTILE_DROP -j DROP -m comment --comment "DROP_HOSTILE"
|
||||
|
||||
# IP Address Blocklist chains
|
||||
iptables -N BLOCKLISTIN
|
||||
iptables -N BLOCKLISTOUT
|
||||
iptables -A INPUT ! -p icmp -j BLOCKLISTIN
|
||||
iptables -A FORWARD ! -p icmp -j BLOCKLISTIN
|
||||
iptables -A FORWARD ! -p icmp -j BLOCKLISTOUT
|
||||
iptables -A OUTPUT ! -p icmp -j BLOCKLISTOUT
|
||||
|
||||
# IPS (Guardian) chains
|
||||
iptables -N GUARDIAN
|
||||
iptables -A INPUT -j GUARDIAN
|
||||
|
||||
Reference in New Issue
Block a user