From 9ad37f1b6b74da648fb12b41c92ea3e7c6591f08 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Wed, 4 Jun 2025 12:26:28 +0200 Subject: [PATCH] =?utf8?q?Dodanie=20plik=C3=B3w=20us=C5=82ugi=20ufw=20stat?= =?utf8?q?us.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ufw-setup | 4 ++++ ufw-setup.service | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 ufw-setup create mode 100644 ufw-setup.service diff --git a/ufw-setup b/ufw-setup new file mode 100644 index 0000000..7a5a0a5 --- /dev/null +++ b/ufw-setup @@ -0,0 +1,4 @@ +#!/bin/bash + +ufw allow 1714:1764/udp +ufw allow 1714:1764/tcp diff --git a/ufw-setup.service b/ufw-setup.service new file mode 100644 index 0000000..3c0b949 --- /dev/null +++ b/ufw-setup.service @@ -0,0 +1,9 @@ +[Unit] +Description=Configure UFW with ufw commands in script +After=ufw.service +[Service] +Type=OneShot +ExecStart=/usr/local/sbin/ufw-setup +RemainAfterExit=yes +[Install] +WantedBy=multi-user.target -- 2.39.5