Quote from: XrayDoc88 on May 26, 2026, 07:06:57 PMThanks. I hadn't heard of Silver Peak. Looking on Ebay, I don't see any mention of 10G ports nor SFP+ ports however.
#!bin/sh
# --- CONFIGURAZIONE ---
INTERFACE="wg4" # Nome della tua interfaccia WireGuard
PEER_IP="10.2.0.1" # IP del peer da testare con traceroute
THRESHOLD=300 # Soggetto di timeout in secondi
DOWNTIME=360 # Tempo di disattivazione (6 minuti = 360 secondi)
WAIT_AFTER_UP=60 # Secondi di attesa dopo riattivazione
# --- LOGICA ---
# 1. Recupera l'ultimo handshake (timestamp Unix)
# 'wg show' restituisce il timestamp dell'ultimo handshake riuscito
LATEST_HANDSHAKE=$(wg show "$INTERFACE" latest-handshakes | awk '{print $2}')
# 2. Calcola il tempo trascorso
CURRENT_TIME=$(date +%s)
ELAPSED=$((CURRENT_TIME - LATEST_HANDSHAKE))
# 3. Verifica se supera la soglia
if [ "$ELAPSED" -gt "$THRESHOLD" ]; then
# Disattiva l'interfaccia
sudo ifconfig "$INTERFACE" down
sleep "$DOWNTIME"
# Riattiva l'interfaccia
sudo ifconfig "$INTERFACE" up
sleep "$WAIT_AFTER_UP"
# Esecuzione Traceroute
traceroute -g 127.0.0.1 "$PEER_IP"
else
exit 0
fichmod 755 script.sh[START]
command:/usr/local/opnsense/service/conf/actions.d/SCRIPT_10_2_0_1_HANDSHAKE.sh
parameters:
type:script
message:Check WG handshake time and renew
description:Check WG handshake time and renew[put-your-user-here-without-brackets] ALL=(ALL) NOPASSWD: /sbin/ifconfig wg0 down
[put-your-user-here-without-brackets] ALL=(ALL) NOPASSWD: /sbin/ifconfig wg0 upQuote from: mooh on May 26, 2026, 06:19:59 PMQuote from: Patrick M. Hausen on May 26, 2026, 04:02:40 PMOPNsense business editions are released in April and October.Isn't the business edition always based on the preceding community edition? Say, the CE doesn't adopt FreeBSD 15.1 in July, then the BE won't be based on it either, right?