initial commit of file from CVS for e-smith-packetfilter on Wed 12 Jul 09:02:33 BST 2023
This commit is contained in:
18
root/usr/lib/systemd/system/masq.service
Normal file
18
root/usr/lib/systemd/system/masq.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=masq, the Koozali SME Server firewall script
|
||||
Before=network-pre.target
|
||||
Wants=network-pre.target
|
||||
Conflicts=iptables.service ip6tables.service ebtables.service ipset.service nftables.service firewalld.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=/sbin/e-smith/service-status masq
|
||||
ExecStart=/etc/rc.d/init.d/masq start
|
||||
ExecStop=/etc/rc.d/init.d/masq stop
|
||||
ExecReload=/etc/rc.d/init.d/masq adjust
|
||||
RemainAfterExit=yes
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
||||
|
@@ -0,0 +1,3 @@
|
||||
[Unit]
|
||||
Wants=ulogd.service
|
||||
|
17
root/usr/lib/systemd/system/ulogd.service
Normal file
17
root/usr/lib/systemd/system/ulogd.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Netfilter Userspace Logging Daemon
|
||||
Before=masq.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
Restart=always
|
||||
TimeoutSec=0
|
||||
Type=forking
|
||||
|
||||
PIDFile=/run/ulog/ulogd.pid
|
||||
ExecStart=/usr/sbin/ulogd --daemon --uid ulog --pidfile /run/ulog/ulogd.pid
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target multi-user.target
|
1
root/usr/lib/tmpfiles.d/ulog.conf
Normal file
1
root/usr/lib/tmpfiles.d/ulog.conf
Normal file
@@ -0,0 +1 @@
|
||||
d /run/ulog 2755 ulog ulog
|
Reference in New Issue
Block a user