You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
328 B
30 lines
328 B
#! /sbin/nft -f
|
|
|
|
table inet firewall {
|
|
|
|
set allowed_daddr_prerezotage {
|
|
type ipv4_addr
|
|
flags interval
|
|
elements = {
|
|
$comnpay,
|
|
$website
|
|
}
|
|
}
|
|
|
|
|
|
chain to_prerezotage {
|
|
accept
|
|
}
|
|
|
|
chain from_prerezotage {
|
|
ip daddr != @allowed_daddr_prerezotage drop
|
|
}
|
|
|
|
}
|
|
|
|
table nat {
|
|
chain prerezotage_nat {
|
|
masquerade
|
|
}
|
|
}
|
|
|
|
|