docs+scripts: model matrix with prices, email rules, IPv6 egress rotation (pxserve + wave runner)

This commit is contained in:
reform
2026-11-22 15:39:31 +02:00
parent 43189c1ed8
commit 714231485b
3 changed files with 180 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
# Параллельная волна по IPv6-адресам kf-x1: 3 воркера, каждый адрес = свой pxserve + 2 аккаунта.
cd "$(dirname "$0")/.." || exit 1
PY=C:/Users/User/AppData/Local/Programs/Python/Python311/python.exe
K=C:/Users/User/.ssh/id_ed25519
SSH="ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o ConnectTimeout=12 -i $K root@31.77.251.176"
START=${1:-16}
END=${2:-60}
WORKERS=${3:-3}
LOG=ipv6_wave.log
worker() {
w=$1
for i in $(seq $START $END); do
[ $((i % WORKERS)) -ne $w ] && continue
port=$((8910+i))
$SSH "ip -6 addr add 2a0c:b641:614:15::$i/64 dev eth0 nodad 2>/dev/null; nohup python3 /root/pxserve.py $port '' '2a0c:b641:614:15::$i' '<твой.внешний.ip>' >/root/pxr$i.log 2>&1 &" >/dev/null 2>&1
sleep 2
echo "=== ::$i порт $port w$w $(date +%H:%M) ===" >> $LOG
timeout 420 env -u PYTHONPATH PYTHONIOENCODING=utf-8 $PY ul_bigwave.py "http://31.77.251.176:$port" --new=2 --deadline=380 --norec 2>&1 \
| grep -E "signup:|KEY ok|ИТОГО|limit" | tail -6 >> $LOG
done
}
for w in $(seq 0 $((WORKERS-1))); do worker $w & done
wait
echo "DONE $(date +%H:%M)" >> $LOG