]> gitweb.morketsmerke.org Git - e5270.git/commitdiff
Dodanie plików usługi ufw status.
authorxf0r3m <jakubstasinski@protonmail.com>
Wed, 4 Jun 2025 10:26:28 +0000 (12:26 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Wed, 4 Jun 2025 10:26:28 +0000 (12:26 +0200)
ufw-setup [new file with mode: 0644]
ufw-setup.service [new file with mode: 0644]

diff --git a/ufw-setup b/ufw-setup
new file mode 100644 (file)
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 (file)
index 0000000..3c0b949
--- /dev/null
@@ -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