firewall/zones/dmz.nft

40 lines
660 B
Text
Raw Normal View History

2018-10-14 16:49:38 +00:00
#! /sbin/nft -f
table inet firewall {
# Définition de la DMZ
set z_dmz {
2019-02-09 09:23:05 +00:00
type ipv4_addr
2018-10-14 16:49:38 +00:00
flags interval
2019-02-09 09:23:05 +00:00
elements = {193.48.225.224/27}
2018-10-14 16:49:38 +00:00
}
2019-01-09 23:04:58 +00:00
set dmz_allowed_tcp_in {
type ipv4_addr . inet_service
}
set dmz_allowed_tcp_out {
type ipv4_addr . inet_service
}
set dmz_allowed_udp_in {
type ipv4_addr . inet_service
}
set dmz_allowed_udp_out {
type ipv4_addr . inet_service
}
2018-10-14 16:49:38 +00:00
chain to_dmz {
2019-02-09 09:23:05 +00:00
#ip daddr . tcp dport @dmz_allowed_tcp_in accept
#ip daddr . udp dport @dmz_allowed_udp_in accept
accept
2018-10-14 16:49:38 +00:00
}
chain from_dmz {
2019-02-09 09:23:05 +00:00
#ip saddr . tcp dport != @dmz_allowed_tcp_out drop
#ip saddr . udp dport != @dmz_allowed_udp_out drop
2018-10-14 16:49:38 +00:00
}
}