rebasing .git

This commit is contained in:
journal_froid
2026-01-23 09:59:19 +01:00
parent 199b9429ad
commit 1d4435089f
60 changed files with 382 additions and 154 deletions
+3 -3
View File
@@ -18,9 +18,9 @@
[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
DNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 #cloudflare-dns.com
DNS=1.1.1.1 2606:4700:4700::1111 2606:4700:4700::1001
# Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
FallbackDNS=193.110.81.0 185.253.5.0 2a0f:fc80:: 2a0f:fc81:: #dns0.eu
FallbackDNS=185.253.5.0 2a0f:fc80:: 2a0f:fc81::
#
# Using DNS= configures global DNS servers and does not suppress link-specific
# configuration. Parallel requests will be sent to per-link DNS servers
@@ -30,7 +30,7 @@ FallbackDNS=193.110.81.0 185.253.5.0 2a0f:fc80:: 2a0f:fc81:: #dns0.eu
#DNS=
#FallbackDNS=9.9.9.9#dns.quad9.net 2620:fe::9#dns.quad9.net 1.1.1.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 8.8.8.8#dns.google 2001:4860:4860::8888#dns.google
#Domains=
DNSSEC=yes
DNSSEC=allow-downgrade
DNSOverTLS=yes
MulticastDNS=yes
LLMNR=yes
-1
View File
@@ -4,7 +4,6 @@ After=network-online.target
[Service]
ExecStart=/bin/bash /etc/systemd/system/tcpd.sh
After=tcpd-bkup.service
Type=simple
[Install]
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=backups tcpd log file, keeping ip adresses only
[Service]
ExecStart=/bin/bash /etc/systemd/system/tcpd_bkup.sh
Restart=on-failure
RestartSec=121s
Type=oneshot
[Install]
WantedBy=multi-user.target
+9 -8
View File
@@ -1,21 +1,22 @@
#!/usr/bin/bash
#!/bin/bash
#run from crontab
. /home/.bashrc
[ -f "$LOG_CONN" ] || exit 0
. refresh_time
STATUS=ronron
STATUS=network.conns
if [ -f $NET_STATUS ] ; then
STATUS=$(cat $NET_STATUS)
fi
DIR=$LOG_CONN_DIR/$STATUS
DIR="$LOG_CONN_DIR/$STATUS"
mkdir -p $DIR
grepip $LOG_CONN > $DIR/${DATE}_${TIME}.conn
mv -f $LOG_CONN $LOG_CONN_DIR/prev.log
grepip "$LOG_CONN" > "$DIR/${DATE}_${TIME}.conn"
mv -f "$LOG_CONN" "$LOG_CONN_DIR/prev.log"
systemctl restart tcpd
exit 0
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=Run tcpd_bkup.service every 2 minutes
[Timer]
OnBootSec=2min
OnUnitActiveSec=2min
Persistent=true
[Install]
WantedBy=timers.target