mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
init: openwrt group functions
This commit is contained in:
parent
5a1ca8d481
commit
5e81194483
@ -130,25 +130,6 @@ fw_tpws6()
|
||||
fw_tpws_x $1 "$2" $3 6
|
||||
}
|
||||
|
||||
nft_fw_tpws4()
|
||||
{
|
||||
_nft_fw_tpws4 "$1" $2 always_apply_wan_filter
|
||||
}
|
||||
nft_fw_tpws6()
|
||||
{
|
||||
local script ifaces DLAN
|
||||
call_for_multiple_items network_get_device DLAN "$OPENWRT_LAN"
|
||||
_nft_fw_tpws6 "$1" $2 "$DLAN" always_apply_wan_filter
|
||||
}
|
||||
nft_fw_nfqws_post4()
|
||||
{
|
||||
_nft_fw_nfqws_post4 "$1" $2 always_apply_wan_filter
|
||||
}
|
||||
nft_fw_nfqws_post6()
|
||||
{
|
||||
_nft_fw_nfqws_post6 "$1" $2 always_apply_wan_filter
|
||||
}
|
||||
|
||||
|
||||
create_ipset()
|
||||
{
|
||||
@ -248,12 +229,21 @@ nft_fill_ifsets_overload()
|
||||
nft_fill_ifsets "$DLAN" "$DWAN" "$DWAN6"
|
||||
}
|
||||
|
||||
nft_fw_tpws4()
|
||||
{
|
||||
_nft_fw_tpws4 "$1" $2 always_apply_wan_filter
|
||||
}
|
||||
nft_fw_tpws6()
|
||||
{
|
||||
# $1 - filter ipv6
|
||||
# $2 - tpws port
|
||||
|
||||
local DLAN
|
||||
local script ifaces DLAN
|
||||
call_for_multiple_items network_get_device DLAN "$OPENWRT_LAN"
|
||||
_nft_fw_tpws6 "$1" $2 "$DLAN"
|
||||
_nft_fw_tpws6 "$1" $2 "$DLAN" always_apply_wan_filter
|
||||
}
|
||||
nft_fw_nfqws_post4()
|
||||
{
|
||||
_nft_fw_nfqws_post4 "$1" $2 always_apply_wan_filter
|
||||
}
|
||||
nft_fw_nfqws_post6()
|
||||
{
|
||||
_nft_fw_nfqws_post6 "$1" $2 always_apply_wan_filter
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user