Template:nftables/config

Description
{	"params": { "category": { "suggested": true, "label": "Category", "description": "Label be used as category header", "example": "Web Server", "type": "string" },		"tcp_port_in": { "type": "string", "suggested": true, "label": "tcp_port_in", "description": "Comma separated list of TCP ports to open from the internet to the machine", "example": "80, 443" },		"udp_port_in": { "type": "string", "suggested": true, "label": "udp_port_in", "description": "Comma separated list of UDP ports to open from the internet to the machine", "example": "4567" },		"tcp_port_out": { "type": "string", "suggested": true, "description": "Comma separated list of TCP ports to open from the machine to the internet", "example": "80, 443", "label": "tcp_port_out" },		"udp_port_out": { "type": "string", "suggested": true, "label": "udp_port_out", "description": "Comma separated list of UDP ports to open from the machine to the internet", "example": "123" },		"user_out": { "type": "string", "suggested": true, "label": "user_out", "description": "Comma separated list of user with unlimited internet access", "example": "root" }	},	"description": "Configure nftables", "paramOrder": [ "category", "tcp_port_in", "udp_port_in", "tcp_port_out", "udp_port_out", "user_out" ] }

Assuming that you configured nftables as described, you can edit file  and add

and activate it using