@@ -112,7 +112,7 @@ sudo journalctl -u adguard-shield -f # Logs live ver
|
|||||||
│ ├── report.html # HTML-Report-Template
|
│ ├── report.html # HTML-Report-Template
|
||||||
│ └── report.txt # TXT-Report-Template
|
│ └── report.txt # TXT-Report-Template
|
||||||
├── README.md
|
├── README.md
|
||||||
└── doc/
|
└── docs/
|
||||||
├── architektur.md # Architektur & Funktionsweise
|
├── architektur.md # Architektur & Funktionsweise
|
||||||
├── konfiguration.md # Alle Parameter erklärt + Konfig-Migration
|
├── konfiguration.md # Alle Parameter erklärt + Konfig-Migration
|
||||||
├── befehle.md # Vollständige Befehlsreferenz inkl. Installer
|
├── befehle.md # Vollständige Befehlsreferenz inkl. Installer
|
||||||
@@ -125,12 +125,12 @@ sudo journalctl -u adguard-shield -f # Logs live ver
|
|||||||
|
|
||||||
| Dokument | Inhalt |
|
| Dokument | Inhalt |
|
||||||
|----------|--------|
|
|----------|--------|
|
||||||
| [Architektur](doc/architektur.md) | Wie das Tool funktioniert, iptables-Strategie, Konfig-Migration |
|
| [Architektur](docs/architektur.md) | Wie das Tool funktioniert, iptables-Strategie, Konfig-Migration |
|
||||||
| [Konfiguration](doc/konfiguration.md) | Alle Parameter, Ports, Whitelist-Pflege, automatische Migration |
|
| [Konfiguration](docs/konfiguration.md) | Alle Parameter, Ports, Whitelist-Pflege, automatische Migration |
|
||||||
| [Befehle](doc/befehle.md) | Vollständige Befehlsreferenz für Installer, Monitor, iptables-Helper und systemd |
|
| [Befehle](docs/befehle.md) | Vollständige Befehlsreferenz für Installer, Monitor, iptables-Helper und systemd |
|
||||||
| [Benachrichtigungen](doc/benachrichtigungen.md) | Setup für Discord, Slack, Gotify, Ntfy |
|
| [Benachrichtigungen](docs/benachrichtigungen.md) | Setup für Discord, Slack, Gotify, Ntfy |
|
||||||
| [E-Mail Report](doc/report.md) | Periodische Statistik-Reports per E-Mail (HTML/TXT) |
|
| [E-Mail Report](docs/report.md) | Periodische Statistik-Reports per E-Mail (HTML/TXT) |
|
||||||
| [Tipps & Troubleshooting](doc/tipps-und-troubleshooting.md) | Best Practices, häufige Probleme, Deinstallation |
|
| [Tipps & Troubleshooting](docs/tipps-und-troubleshooting.md) | Best Practices, häufige Probleme, Deinstallation |
|
||||||
|
|
||||||
## Lizenz
|
## Lizenz
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -551,9 +551,9 @@ send_notification() {
|
|||||||
message="🚫 AdGuard Shield: Client **$client_ip** gesperrt (${count}x $domain in ${window}s via **$protocol**, ${reason_label}). Sperre für ${simple_dur}."
|
message="🚫 AdGuard Shield: Client **$client_ip** gesperrt (${count}x $domain in ${window}s via **$protocol**, ${reason_label}). Sperre für ${simple_dur}."
|
||||||
fi
|
fi
|
||||||
elif [[ "$action" == "service_start" ]]; then
|
elif [[ "$action" == "service_start" ]]; then
|
||||||
message="🟢 AdGuard Shield v${VERSION} wurde gestartet."
|
message="🟢 AdGuard Shield ${VERSION} wurde gestartet."
|
||||||
elif [[ "$action" == "service_stop" ]]; then
|
elif [[ "$action" == "service_stop" ]]; then
|
||||||
message="🔴 AdGuard Shield v${VERSION} wurde gestoppt."
|
message="🔴 AdGuard Shield ${VERSION} wurde gestoppt."
|
||||||
else
|
else
|
||||||
message="✅ AdGuard Shield: Client **$client_ip** wurde entsperrt."
|
message="✅ AdGuard Shield: Client **$client_ip** wurde entsperrt."
|
||||||
fi
|
fi
|
||||||
@@ -1097,7 +1097,7 @@ stop_blocklist_worker() {
|
|||||||
# ─── Hauptschleife ──────────────────────────────────────────────────────────
|
# ─── Hauptschleife ──────────────────────────────────────────────────────────
|
||||||
main_loop() {
|
main_loop() {
|
||||||
log "INFO" "═══════════════════════════════════════════════════════════"
|
log "INFO" "═══════════════════════════════════════════════════════════"
|
||||||
log "INFO" "AdGuard Shield v${VERSION} gestartet"
|
log "INFO" "AdGuard Shield ${VERSION} gestartet"
|
||||||
log "INFO" " Limit: ${RATE_LIMIT_MAX_REQUESTS} Anfragen pro ${RATE_LIMIT_WINDOW}s"
|
log "INFO" " Limit: ${RATE_LIMIT_MAX_REQUESTS} Anfragen pro ${RATE_LIMIT_WINDOW}s"
|
||||||
log "INFO" " Sperrdauer: $(format_duration "${BAN_DURATION}")"
|
log "INFO" " Sperrdauer: $(format_duration "${BAN_DURATION}")"
|
||||||
log "INFO" " Prüfintervall: ${CHECK_INTERVAL}s"
|
log "INFO" " Prüfintervall: ${CHECK_INTERVAL}s"
|
||||||
@@ -1150,7 +1150,7 @@ trap cleanup SIGTERM SIGINT SIGHUP
|
|||||||
# ─── Kommandozeilen-Argumente ────────────────────────────────────────────────
|
# ─── Kommandozeilen-Argumente ────────────────────────────────────────────────
|
||||||
case "${1:-start}" in
|
case "${1:-start}" in
|
||||||
start)
|
start)
|
||||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [INFO] AdGuard Shield v${VERSION} wird gestartet..."
|
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [INFO] AdGuard Shield ${VERSION} wird gestartet..."
|
||||||
check_dependencies
|
check_dependencies
|
||||||
check_already_running
|
check_already_running
|
||||||
init_directories
|
init_directories
|
||||||
@@ -1250,7 +1250,7 @@ case "${1:-start}" in
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
cat << USAGE
|
cat << USAGE
|
||||||
AdGuard Shield v${VERSION}
|
AdGuard Shield ${VERSION}
|
||||||
|
|
||||||
Service-Steuerung (empfohlen):
|
Service-Steuerung (empfohlen):
|
||||||
sudo systemctl start adguard-shield
|
sudo systemctl start adguard-shield
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ sudo bash install.sh --help
|
|||||||
|
|
||||||
## Uninstaller (eigenständig)
|
## Uninstaller (eigenständig)
|
||||||
|
|
||||||
Ab Version 0.6 wird bei der Installation ein eigenständiger Uninstaller nach `/opt/adguard-shield/uninstall.sh` kopiert. Die Deinstallation kann damit **ohne die originalen Installationsdateien** durchgeführt werden:
|
Ab Version 0.5.2 wird bei der Installation ein eigenständiger Uninstaller nach `/opt/adguard-shield/uninstall.sh` kopiert. Die Deinstallation kann damit **ohne die originalen Installationsdateien** durchgeführt werden:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Direkt aus dem Installationsverzeichnis — kein install.sh benötigt
|
# Direkt aus dem Installationsverzeichnis — kein install.sh benötigt
|
||||||
Reference in New Issue
Block a user