firewall/zones/prerezotage.nft

31 lines
341 B
Text
Raw Normal View History

2018-10-14 18:49:38 +02:00
#! /sbin/nft -f
table inet firewall {
set allowed_daddr_prerezotage {
2019-02-09 10:23:05 +01:00
type ipv4_addr
2018-10-14 18:49:38 +02:00
flags interval
elements = {
$comnpay,
$website
2018-10-14 18:49:38 +02:00
}
}
chain to_prerezotage {
2019-02-09 10:23:05 +01:00
accept
2018-10-14 18:49:38 +02:00
}
chain from_prerezotage {
2019-02-09 10:23:05 +01:00
ip daddr != @allowed_daddr_prerezotage drop
2018-10-14 18:49:38 +02:00
}
}
2019-01-09 00:21:24 +01:00
table nat {
2019-02-09 10:23:05 +01:00
chain prerezotage_nat {
2019-04-30 00:12:26 +02:00
snat to $ip_self_public
2019-01-09 00:21:24 +01:00
}
}