This commit is contained in:
Bxio 2025-06-23 16:53:47 +01:00
parent 0e220a6c28
commit 0210cbb6f6

View File

@ -33,9 +33,7 @@ function add_iptables_rule() {
echo "Regra iptables já existe: $chain$set_name"
else
echo "Inserindo regra iptables: $chain$set_name"
iptables -t raw -I "$chain" -i eth0 -m set --match-set "$set_name" src -j DROP
iptables -t raw -I "$chain" -i vmbr0 -m set --match-set "$set_name" src -j DROP
iptables -t raw -I "$chain" -i vmbr1 -m set --match-set "$set_name" src -j DROP
fi
}