install/config.sh
usr/etc/systemd/system/tcpd.service
This commit is contained in:
@@ -21,3 +21,10 @@ cat $SUDO_HOME/$FILE > $SKEL/$FILE
|
||||
|
||||
groupadd svr
|
||||
usermod -aG svr $SUDO_USER
|
||||
|
||||
systemctl daemon-reexec
|
||||
systemctl daemon-reload
|
||||
systemctl enable tcpd
|
||||
systemctl start tcpd
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
[Unit]
|
||||
Description=watch connections
|
||||
After=network-online.target
|
||||
Description=TCP connections logger
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/bash /etc/systemd/system/tcpd.sh
|
||||
Type=simple
|
||||
ExecStart=/svr/usr/bin/tcpd /var/log/connections/lasts.tcpd
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user