Make trusted_ports list
This commit is contained in:
parent
631e09ff74
commit
35a63d7aaa
4 changed files with 11 additions and 5 deletions
|
@ -73,8 +73,8 @@ set trusted6 {
|
|||
} accept
|
||||
|
||||
# Open ssh only for trusted machines
|
||||
ip saddr @trusted4 tcp dport { ssh } accept
|
||||
ip6 saddr @trusted6 tcp dport { ssh } accept
|
||||
ip saddr @trusted4 tcp dport { {{ trusted_ports|join(', ') }} } accept
|
||||
ip6 saddr @trusted6 tcp dport { {{ trusted_ports|join(', ') }} } accept
|
||||
|
||||
# Rules based on group-vars
|
||||
{% for custom in nft_group_rules %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue