diff --git a/defines.nft b/defines.nft new file mode 100644 index 0000000..fba9f41 --- /dev/null +++ b/defines.nft @@ -0,0 +1,3 @@ +define SSH_PORT1 = 22 +define SSH_PORT2 = 8022 + diff --git a/filter.nft b/filter.nft index 5a52ff4..b31ddb2 100644 --- a/filter.nft +++ b/filter.nft @@ -1,8 +1,7 @@ #!/usr/bin/nft flush ruleset -define SSH_PORT1 = 22 -define SSH_PORT2 = 8022 +include "./defines.nft" table ip filter { set allowed_tcp_ports {