Nftables: add support for nat table
This commit is contained in:
parent
c586a58043
commit
dbf32dccb6
2 changed files with 16 additions and 0 deletions
roles/nftables
|
@ -16,6 +16,9 @@
|
|||
- 'filter-input.d'
|
||||
- 'filter-forward.d'
|
||||
- 'filter-output.d'
|
||||
- 'nat-toplevel.d'
|
||||
- 'nat-prerouting.d'
|
||||
- 'nat-postrouting.d'
|
||||
- name: deploy nftables root configuration
|
||||
template:
|
||||
src: "nftables/nftables.conf.j2"
|
||||
|
|
|
@ -48,3 +48,16 @@ table inet filter {
|
|||
include "/etc/nftables/filter-output.d/*.conf"
|
||||
}
|
||||
}
|
||||
|
||||
table inet nat {
|
||||
include "/etc/nftables/nat-toplevel.d/*.conf"
|
||||
|
||||
chain prerouting {
|
||||
type nat hook prerouting priority 100; policy accept;
|
||||
include "/etc/nftables/nat-prerouting.d/*.conf"
|
||||
}
|
||||
chain postrouting {
|
||||
type nat hook postrouting priority 100; policy accept;
|
||||
include "/etc/nftables/nat-postrouting.d/*.conf"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue