From 7265c2ae20ac232b6cc9eb03e002d20ad7c299e8 Mon Sep 17 00:00:00 2001 From: celso Date: Thu, 12 Dec 2024 22:12:20 -0300 Subject: [PATCH] moved defines to their own file --- defines.nft | 3 +++ filter.nft | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 defines.nft 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 {