Skip to content

v1.4.0 — VayDNS Tunnels, Monitoring & Diagnostics

Latest

Choose a tag to compare

@SamNet-dev SamNet-dev released this 03 Apr 15:41
· 5 commits to master since this release

What's New

⚡ VayDNS Tunnel Support

VayDNS is an optimized fork of DNSTT by net2share with KCP/smux reliable sessions, auto-recovery, and a leaner wire protocol. Runs in -dnstt-compat mode for backwards compatibility with existing SlipNet clients.

  • 2 new tunnels: vay1 (SOCKS on v subdomain) and vay-ssh (SSH on vz subdomain)
  • Up to 8 tunnels total (Slipstream + DNSTT + NoizDNS + VayDNS, each with SOCKS and SSH)
  • Transport option 4 in --add-tunnel TUI
  • Binary downloaded automatically during setup; graceful fallback if unavailable
  • Simpler service override than NoizDNS — supports -udp directly, no PT mode needed
  • Full integration: --status, --monitor, --diag, --add-domain, --remove-tunnel, --uninstall

📈 --monitor Command

Live tunnel usage monitoring:

  • Per-tunnel process stats (PID, CPU%, memory, uptime)
  • Active SOCKS/SSH/DNS connection counts
  • Total memory usage
  • Recent journalctl logs
  • Optimized: ~3 forks per tunnel, cached ss output
sudo bash dnstm-setup.sh --monitor
# Live monitoring:
watch -n 5 sudo bash dnstm-setup.sh --monitor

🔍 --diag Command

Comprehensive tunnel diagnostics with issue counting and fix hints:

  • Binary validation (dnstm, dnstt-server -udp flag, noizdns-server/vaydns-server ELF check)
  • Service status with journal log snippets on failure
  • NoizDNS/VayDNS drop-in override and PT env var checks
  • Config.json transport/MTU analysis with high-MTU warnings
  • Port 53 binding, SSH localhost reachability, UFW/iptables rules
  • Public/private key file presence per tunnel
  • External DNS resolution test
  • systemd-resolved conflict detection
sudo bash dnstm-setup.sh --diag

Bug Fixes

--status Hangs (Fixes #31)

  • dnstm tunnel share had no timeout — could hang indefinitely when DNS/domain config is missing
  • Added timeout --kill-after=3 10 to all dnstm subcommand calls in the status path

Empty SlipNet URLs in --status (Fixes #32)

  • When dnstm tunnel list doesn't include domains in its table output, slipnet:// URLs were silently skipped
  • Added fallback to read tunnel domains from /etc/dnstm/config.json via jq or python3

SSH User Management Hangs (Fixes #33)

  • sshtun-user commands were missing </dev/null stdin redirect, causing TTY blocking
  • All sshtun-user calls (list, create, show, update, delete, configure) now have </dev/null and timeout --kill-after=3

Other Improvements

  • 9 DNS records (was 7) — 2 new NS records for VayDNS subdomains (v, vz)
  • --add-domain creates VayDNS tunnels for backup domains
  • --add-tunnel offers 4 transport choices: Slipstream, DNSTT, NoizDNS, VayDNS
  • --remove-tunnel cleans up VayDNS service overrides
  • --uninstall removes vaydns-server binary and drop-in files
  • SSH user management generates VayDNS SSH share URLs
  • Help text lists all 10 components (was 6)

Upgrade

curl -fsSL -o dnstm-setup.sh https://raw.githubusercontent.com/SamNet-dev/dnstm-setup/master/dnstm-setup.sh
sudo bash dnstm-setup.sh

Existing setups will continue to work. VayDNS tunnels are created automatically on fresh installs or when running --add-domain. To add VayDNS to an existing server, use --add-tunnel and select transport 4.