Files
keenetic-dns-routes/app
Андрей Бобырев 61e273f05b fix(tunnel): AUTOSSH_GATETIME=0 + setsid + log file for diagnostics
Background autossh kept exiting because of two things:
1. autossh's gate-time guard (default 30s): if first ssh dies "too fast"
   autossh treats it as failure and gives up. Setting GATETIME=0 disables it.
2. nohup+subshell on BusyBox doesn't always fully detach. Try setsid first
   (proper new session, no controlling tty) and fall back to nohup subshell.

Also write autossh diagnostics to /tmp/kdns_tun.log and dump it on failure
so the user can see the real reason instead of just "не запустился".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 22:51:42 +03:00
..