mirror of
https://github.com/bol-van/zapret.git
synced 2025-12-19 14:08:46 +03:00
nftables support
This commit is contained in:
23
common/linux_fw.sh
Normal file
23
common/linux_fw.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
zapret_do_firewall()
|
||||
{
|
||||
linux_fwtype
|
||||
|
||||
case "$FWTYPE" in
|
||||
iptables)
|
||||
zapret_do_firewall_ipt "$@"
|
||||
;;
|
||||
nftables)
|
||||
zapret_do_firewall_nft "$@"
|
||||
;;
|
||||
esac
|
||||
|
||||
return 0
|
||||
}
|
||||
zapret_apply_firewall()
|
||||
{
|
||||
zapret_do_firewall 1 "$@"
|
||||
}
|
||||
zapret_unapply_firewall()
|
||||
{
|
||||
zapret_do_firewall 0 "$@"
|
||||
}
|
||||
Reference in New Issue
Block a user