diff --git a/defines.nft b/defines.nft index e9a85f8..7bf8e9d 100644 --- a/defines.nft +++ b/defines.nft @@ -8,6 +8,9 @@ define HTTP_PORT = 80 define HTTPS_PORT = 443 define SYNCPLAY_PORT = 60000 define TERRARIA_PORT = 7777 +define MAINPAGE_PORT = 3000 +define NEXTCLOUD_PORT = 3001 +define GITEA_PORT = 3002 # TCP and UDP services (needs to go in both sets) define DNS_PORT = 53 diff --git a/filter.nft b/filter.nft index 62fcef1..567702c 100644 --- a/filter.nft +++ b/filter.nft @@ -7,7 +7,7 @@ table ip filter { set allowed_tcp_ports { type inet_service; flags constant; - elements = { $SSH_PORT1, $SSH_PORT2, $DNS_PORT, $HTTP_PORT, $HTTPS_PORT, $SYNCPLAY_PORT, $TERRARIA_PORT, $OPENTTD_PORT }; + elements = { $SSH_PORT1, $SSH_PORT2, $DNS_PORT, $HTTP_PORT, $HTTPS_PORT, $SYNCPLAY_PORT, $TERRARIA_PORT, $OPENTTD_PORT, $MAINPAGE_PORT, $NEXTCLOUD_PORT, $GITEA_PORT }; } set allowed_udp_ports_in {