1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 06:18:42 +03:00

sync on be, vpn

This commit is contained in:
Anton Afanasyeu
2026-06-13 15:31:18 +02:00
parent f9b73b48da
commit 86055bf509
42 changed files with 2472 additions and 917 deletions

View File

@@ -0,0 +1,30 @@
# /etc/conf.d/wan-watch — source from cron on Pi, monstro, FE
#
# Deploy ONE file:
# sudo cp wan-watch.sh /usr/local/bin/wan-watch.sh && sudo chmod +x /usr/local/bin/wan-watch.sh
#
# Cron (every 5 minutes):
# */5 * * * * root . /etc/conf.d/wan-watch 2>/dev/null; /usr/local/bin/wan-watch.sh >>/var/log/wan-watch.cron.log 2>&1
WAN_WATCH_LOG=/var/log/wan-watch.log
WAN_WATCH_ROLE=pi # pi | router | fe
# Pi
# ROUTER_PING_TARGET=10.7.6.228
# FE_PING_TARGET=10.7.0.10
# BE_PING_TARGET=10.7.16.128
# monstro
# WAN_WATCH_ROLE=router
# FE
# WAN_WATCH_ROLE=fe
# ROUTER_PING_TARGET=10.7.6.228
WAN_WATCH_DEEP=auto # auto | always | never
WAN_WATCH_COOLDOWN_S=300 # 5 min between deep captures
# Thresholds (ms)
# WAN_ALERT_MS=50
# FE_ALERT_MS=50
# CONNTRACK_ALERT_PCT=70