This commit is contained in:
parent
0e220a6c28
commit
0210cbb6f6
2
start.sh
2
start.sh
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user