This is for anyone whose servers reach each other through long-lived SSH port forwards kept alive by AutoSSH, and who wants WireGuard instead without a big-bang cutover. At the end you will have a WireGuard hub-and-spoke network, each service moved onto it separately with a one-line rollback, and the old tunnels retired. I assume you administer Debian or Ubuntu servers over SSH. If you have never brought up a WireGuard tunnel, read my single-tunnel walkthrough first; I won’t repeat its basics here.
Last verified: December 2026. Versions: wireguard-tools 1.0.20210914 (Debian 13 and Ubuntu 24.04) and 1.0.20250521 (Ubuntu 26.04), WireGuard in the mainline kernel since Linux 5.6, autossh 1.4g, current OpenSSH manual pages. All addresses, ports, names and keys below are examples.
What Happened
I moved about ten servers, a mix of on-premises machines and cloud instances, off AutoSSH. Their ssh -L and ssh -R forwards carried database, LDAP and HTTPS traffic between the cloud side and the on-prem side. I built WireGuard tunnels next to them, then moved each service by editing /etc/hosts so its hostname resolved to the peer’s tunnel address. I did it during production hours without restarting anything.
Weeks later, one tunnel showed more than 9 GiB of traffic over seven days. The existing AutoSSH units had followed the /etc/hosts entries too: when a unit reconnected, it resolved its target name like any other program, got the tunnel address, and built its SSH session inside WireGuard. My old tunnels were running inside my new ones, encrypted twice. I left them that way deliberately until I retired those units, but it changes how you should plan rollback (Step 10).
I cut tunnels over one at a time. Each AutoSSH unit kept running for one week after its service moved, then I stopped and disabled it.
The other surprise, a signed API integration that broke because the port in its URL changed, is in Troubleshooting.
How It Works
Why AutoSSH Tunnels Get Fragile
Every connection carried by an -L or -R forward is an SSH channel, and SSH multiplexes all channels into a single connection over one TCP stream (RFC 4254, section 5). People call this TCP-over-TCP. Strictly, ssh terminates each forwarded TCP connection at both ends and carries only its bytes, so the classic meltdown, where two layers of retransmission timers fight, belongs to tun-device tunnels such as ssh -w, not to port forwards. What forwards do suffer is head-of-line blocking: one lost segment on the outer stream stalls every forwarded connection until it is retransmitted, and SSH’s per-channel window adds a second layer of flow control on top.
The worse problem is the silent stall. When the path dies without a FIN or RST (a NAT device drops its state, a link flaps), neither end is told. ServerAliveInterval defaults to 0, meaning no probes. The kernel gives up on unacknowledged data only after its retransmission limit, at least 924.6 seconds with the default tcp_retries2. AutoSSH’s monitor port (-M) tests the link every AUTOSSH_POLL seconds, 600 by default. With -M 0, a common setup, AutoSSH restarts ssh only when ssh exits, so detection depends on ServerAliveInterval and ServerAliveCountMax being set. And when the client does reconnect, the server may still hold the remote-forward port for the dead session. The new session then logs Warning: remote port forwarding failed for listen port N and, because ExitOnForwardFailure defaults to no, stays connected without the forward. With -M 0, AutoSSH sees a live ssh process and is satisfied.
At fleet scale the forwards themselves become the problem. Each is a port number someone invented, written into a unit file on one machine and an application config on another. When a shared uplink drops, every unit reconnects at once, and when ssh keeps failing quickly, AutoSSH backs off toward its poll time, so some forwards stay down for minutes after the link returns.
What WireGuard Changes
WireGuard gives each machine a network interface with its own address. Applications connect to the real service port at the peer’s tunnel address. There is no per-port mapping, and traffic in either direction needs no extra configuration beyond the firewall.
It carries IP packets over UDP and deliberately has no TCP mode, because TCP-over-TCP performs so badly. Each inner TCP connection keeps its own congestion control, so a lost packet only delays the connection it belonged to.
There is no session to stall. By default WireGuard sends nothing when idle, and each side sends to the most recent address it received authenticated data from, so a peer whose address changes keeps working without a reconnect (WireGuard calls this roaming). It has been in the mainline Linux kernel since 5.6, so on current Debian and Ubuntu you install only the userspace tools.
AllowedIPs does two jobs, which WireGuard calls cryptokey routing. When sending, it acts like a routing table: a packet for 10.99.0.2 goes to the peer that lists it. When receiving, it acts like an access control list: a packet that decrypts with a peer’s key but carries a source address outside that peer’s AllowedIPs is dropped.
The trade-off: an SSH forward exposed exactly one port. A WireGuard peer can reach every port on your tunnel address, so the host firewall has to do the job the forwards did by accident.
The Cutover Switch
On Linux, most programs resolve names through the Name Service Switch, and when files comes first on the hosts: line of /etc/nsswitch.conf, /etc/hosts wins over DNS. Change one line and every new connection to that name takes the new path. Change it back and they return. Connections that already exist stay where they are until they close. AutoSSH is just another program that resolves names, which is how my double tunnel happened.
Before and after. One SSH session per server pair carrying several forwards, replaced by one WireGuard interface per spoke.
Prerequisites
- Linux 5.6 or newer on every machine (any supported Debian or Ubuntu release qualifies) and
sudoon each. - Admin access to the on-prem perimeter firewall, to forward UDP ports to the hub.
- Static public addresses on the cloud servers, so firewall rules can name them.
- The AutoSSH tunnels left running. They are your rollback path until the end.
- Values to have on hand (all examples here): tunnel network
10.99.0.0/24(choose any private range unused on both sides), hub public address203.0.113.10, spoke public addresses198.51.100.21(web1) and198.51.100.22(web2), service hostnamedb.example.com.
Step 1: Inventory Every Forward
List the tunnel units, read each unit’s forwards, and list every running ssh client with its full command line (ps cuts long lines at terminal width; pgrep -a does not).
systemctl list-units --type=service --all | grep -i -E 'autossh|tunnel'
systemctl cat <AUTOSSH_UNIT>
pgrep -a -x ssh
For every forward, write down the service and port it reaches, which machine consumes it, and how the consumer connects: by hostname on the real port, or to 127.0.0.1:<local port>. That last column decides what Step 10 looks like for each service. Forwards with no consumer go straight to Step 12; I found at least one.
Step 2: Plan Addresses and Topology
I used hub and spoke, with the hub on-prem and the cloud servers as spokes. It fits when the dependencies run between the cloud servers and the on-prem side and the cloud servers do not need to reach each other; a full mesh would add tunnels for paths nothing uses.
On the hub I gave each spoke its own interface, its own /30 (four addresses: network, hub, spoke, broadcast) and its own UDP port. That gives one perimeter forward and one host firewall rule per spoke public address, and wg-quick down wg-web2 affects only web2. The cost is one config file and one port per spoke. A single hub interface with one [Peer] block per spoke and a /24 is simpler and equally valid.
| Tunnel | Subnet (example) | Hub address | Spoke address | Hub UDP port |
|---|---|---|---|---|
| wg-web1 | 10.99.0.0/30 | 10.99.0.1 | 10.99.0.2 | 51821 |
| wg-web2 | 10.99.0.4/30 | 10.99.0.5 | 10.99.0.6 | 51822 |
Interface names may be at most 15 characters.
Step 3: Install the WireGuard Tools
You only need wg and wg-quick, from the wireguard-tools package (the wireguard metapackage pulls it in). Run this on the hub and every spoke.
sudo apt update
sudo apt install wireguard-tools
sudo install -d -m 700 /etc/wireguard
Step 4: Generate One Key Pair per Interface
Give each interface its own private key. umask 077 makes the key file readable by root only.
On the hub, once per spoke tunnel:
sudo sh -c 'umask 077; wg genkey | tee /etc/wireguard/wg-web1.key | wg pubkey > /etc/wireguard/wg-web1.pub'
sudo cat /etc/wireguard/wg-web1.pub
On each spoke, once, for an interface named wg-hub:
sudo sh -c 'umask 077; wg genkey | tee /etc/wireguard/wg-hub.key | wg pubkey > /etc/wireguard/wg-hub.pub'
sudo cat /etc/wireguard/wg-hub.pub
Exchange only the .pub values. Private keys never leave the host that generated them.
Step 5: Write the Hub Config
The hub listens and never initiates, so its peer has no Endpoint. It learns web1’s address from web1’s first authenticated packet. Open the file with vim (press i to insert, Esc then :wq to save and quit):
sudo vim /etc/wireguard/wg-web1.conf
[Interface]
Address = 10.99.0.1/30
ListenPort = 51821
PrivateKey = <CONTENTS_OF_wg-web1.key>
MTU = 1420
[Peer]
# web1
PublicKey = <WEB1_wg-hub.pub>
AllowedIPs = 10.99.0.2/32
sudo chmod 600 /etc/wireguard/wg-web1.conf
AllowedIPs = 10.99.0.2/32 routes only web1’s tunnel address into this interface and drops anything from web1 claiming another source. Never put 0.0.0.0/0 here on a server: wg-quick would send all of the hub’s traffic into the tunnel. Repeat for wg-web2 with its own subnet, port and key.
Step 6: Write the Spoke Config
The spoke initiates, so it gets the Endpoint and the keepalive.
sudo vim /etc/wireguard/wg-hub.conf
[Interface]
Address = 10.99.0.2/30
PrivateKey = <CONTENTS_OF_wg-hub.key>
MTU = 1420
[Peer]
# hub
PublicKey = <HUB_wg-web1.pub>
Endpoint = 203.0.113.10:51821
AllowedIPs = 10.99.0.1/32
PersistentKeepalive = 25
sudo chmod 600 /etc/wireguard/wg-hub.conf
On web2 the same file uses Address = 10.99.0.6/30, AllowedIPs = 10.99.0.5/32, Endpoint = 203.0.113.10:51822 and the hub’s wg-web2.pub. Its hub address is 10.99.0.5, so use that wherever this article uses 10.99.0.1 for web1.
PersistentKeepalive = 25 sends an authenticated empty packet every 25 seconds, which keeps the NAT and stateful firewall entries along the path alive. Without it, the hub (which has no Endpoint) cannot reach an idle spoke once those entries expire. The WireGuard docs give 25 seconds as an interval that works with a wide variety of firewalls.
Set MTU explicitly. When it is missing, wg-quick takes the MTU of the route to the endpoint (on the hub, which has no endpoint, the default route; 1500 if it finds neither) and subtracts 80 bytes, the worst-case overhead of an outer IPv6 header, a UDP header and WireGuard’s own header and authentication tag. On a cloud instance whose network interface uses jumbo frames, that calculation produces a number far larger than the 1,500 bytes that leave the provider’s network. If the path between your sites is smaller than 1,500 bytes, lower MTU on both ends.
Step 7: Open the Firewalls
Three places need rules.
Perimeter firewall (on-prem): forward UDP 51821 on 203.0.113.10 to the hub’s LAN address, and restrict the source to 198.51.100.21 if your firewall supports it. Repeat per spoke.
Hub host firewall: allow each spoke’s UDP port from that spoke’s public address only, then allow only the service ports inside the tunnel. With ufw:
sudo ufw allow proto udp from 198.51.100.21 to any port 51821 comment 'wg-web1 underlay'
sudo ufw allow in on wg-web1 proto tcp from 10.99.0.2 to 10.99.0.1 port 3306 comment 'web1 to db'
If ufw is not active yet, run sudo ufw allow OpenSSH before sudo ufw enable, or you will lock yourself out.
Spoke: cloud security groups are stateful, so replies to the spoke’s outbound UDP need no inbound rule. If the hub must reach a service on the spoke (anything an old -R forward carried in that direction), add the matching ufw allow in on wg-hub rule there.
Then make the service listen where the tunnel arrives. Through SSH, every connection reached the service from loopback, so many services only listen on 127.0.0.1; many MariaDB packages bind there by default. Find the line with grep -rn bind-address /etc/mysql/. Either list the tunnel addresses (MariaDB 10.11 and later accept a comma-separated list), or bind to all addresses and rely on the firewall rules above. If you list tunnel addresses, MariaDB can fail to start at boot when it starts before the WireGuard interfaces exist; add Wants= and After= lines naming each wg-quick@ unit in a drop-in (sudo systemctl edit mariadb). Binding to all addresses also exposes the port on the LAN, so do it only with a default-deny firewall in place.
Database accounts need the same attention. Through SSH the server saw clients as 127.0.0.1. Now it sees 10.99.0.2. On the database server:
CREATE USER 'app'@'10.99.0.2' IDENTIFIED BY '<APP_DB_PASSWORD>';
GRANT SELECT, INSERT, UPDATE, DELETE ON appdb.* TO 'app'@'10.99.0.2';
Step 8: Bring the Tunnels Up with systemd
wg-quick@<name>.service reads /etc/wireguard/<name>.conf. Start the hub side, then the spoke.
# hub
sudo systemctl enable --now wg-quick@wg-web1
# spoke
sudo systemctl enable --now wg-quick@wg-hub
ping -c 3 10.99.0.1
On the hub:
sudo wg show wg-web1
interface: wg-web1
public key: <HUB_wg-web1.pub>
private key: (hidden)
listening port: 51821
peer: <WEB1_wg-hub.pub>
endpoint: 198.51.100.21:41234
allowed ips: 10.99.0.2/32
latest handshake: 12 seconds ago
transfer: 1.02 KiB received, 924 B sent
A recent latest handshake and both transfer counters above zero mean packets flow both ways. systemctl reload wg-quick@wg-web1 applies peer changes with wg syncconf without taking the interface down.
Step 9: Test Each Service by Address
Before switching anything, connect to the tunnel address directly. Production traffic stays on SSH meanwhile.
mariadb -h 10.99.0.1 -u app -p -e 'SELECT CURRENT_USER();'
CURRENT_USER() should print app@10.99.0.2 (on MySQL the client is mysql). For HTTPS services, curl --resolve sends the request to the tunnel address while keeping the real name in the Host header and TLS SNI:
curl -sS -o /dev/null -w '%{http_code}\n' \
--resolve intranet.example.com:443:10.99.0.1 https://intranet.example.com/
Step 10: Cut Over One Service with /etc/hosts
How the switch looks depends on the last column of your inventory.
The consumer connects by name on the real port (SSH to a hostname, HTTPS to a name that /etc/hosts maps to a loopback forward on 443): the switch is one line.
The consumer connects to 127.0.0.1:<local port>: /etc/hosts maps names to addresses, never ports, so a hosts edit alone cannot move it. You can change the consumer’s config to db.example.com:3306 at cutover time and accept that rollback means reverting that config. The better option is to prepare while still on SSH: re-bind the forward to a spare loopback address on the real port (-L 127.0.0.2:3306:127.0.0.1:3306 in place of -L 13306:127.0.0.1:3306), add 127.0.0.2 db.example.com to /etc/hosts, point the consumer at db.example.com:3306, and restart the AutoSSH unit and the consumer once. After that, every cutover and rollback is a hosts edit.
Make the switch on the spoke, keeping the old line commented directly underneath:
sudo vim /etc/hosts
# db.example.com on WireGuard since <DATE>. Rollback: swap the two comment marks.
10.99.0.1 db.example.com
#127.0.0.2 db.example.com
Confirm the name resolves to the tunnel and that new connections use it:
getent hosts db.example.com
sudo ss -tnp | grep '10.99.0.1:3306'
sudo ss -tnp | grep '127.0.0.2:3306'
getent should print 10.99.0.1 db.example.com. The first ss should show new connections; the second shows old ones draining. Persistent connections and connection pools stay on the old path until they close, so reload the application when you want them to move. Then watch application logs, and sudo wg show wg-hub transfer to see the counters climb.
One service’s cutover. The AutoSSH forward keeps running until the soak period ends, which is what makes rollback a single edit.
Before you remap a peer’s hostname, check what else uses it. On any machine that runs AutoSSH units, a unit whose ssh target is that hostname will build its next session inside WireGuard, as mine did. You then pay for two layers of encryption while keeping SSH’s head-of-line blocking, and the tunnel’s counters stop meaning what you think. Worse, your rollback path now depends on the tunnel you might be rolling back from. Pin each AutoSSH unit to the public address before you remap. On a hub whose unit connects to web1 by name, add a host alias to the ~/.ssh/config of the user the unit runs as, and change the unit’s target to web1-tunnel. HostKeyAlias keeps the existing known_hosts entry valid; without it, ssh looks the host key up under the IP address and a non-interactive unit can fail host key verification.
Host web1-tunnel
HostName 198.51.100.21
HostKeyAlias <OLD_TARGET_HOSTNAME>
User <TUNNEL_USER>
Restarting the unit to apply the change drops its forwards for a few seconds. Do it in a quiet moment.
Step 11: Roll Back If It Breaks
Swap the comment marks back in /etc/hosts. New connections go to the loopback forward, which is still running; reload the application to move connections already open over WireGuard. Nothing else needs undoing, because the tunnel and the forward never excluded each other.
Step 12: Retire the Old Tunnels
Once a service has run on WireGuard through your soak period (I used one week, which covers a full cycle of nightly and weekly jobs), confirm nothing still uses the forward, then stop it.
sudo ss -tnp | grep ':<FORWARD_PORT>'
sudo grep -rn '<FORWARD_PORT>' /etc /var/spool/cron <APP_CONFIG_DIR>
sudo systemctl disable --now <AUTOSSH_UNIT>
No output from the first two commands means no live connections and no configs or crontabs pointing at the old port. Keep the unit file for a week, then delete it and run sudo systemctl daemon-reload. Remove the tunnel’s public key from authorized_keys on the far end, delete the commented hosts lines, and drop database accounts that only the SSH path used, such as 'app'@'127.0.0.1', once you are sure nothing local needs them.
Verify
End to end, for each spoke:
sudo wg show all latest-handshakes
getent hosts db.example.com
mariadb -h db.example.com -u app -p -e 'SELECT 1;'
systemctl is-enabled wg-quick@wg-hub
Then reboot one spoke in a maintenance window and confirm everything comes back without help.
Measure Before You Call It Faster
I benchmarked one host pair with both paths live at the same time: mysqlslap running SELECT 1; through the AutoSSH forward and through WireGuard, at increasing concurrency. WireGuard had lower query latency and CPU use was about the same. My notes hold two different summary figures for the same comparison, so I’m not printing a percentage. Measure your own.
The tools below come from sudo apt install iperf3 mtr-tiny sysstat. Raw round-trip time through the tunnel and over the internet path beneath it (the second only if your perimeter answers ICMP), plus per-hop loss on that path:
ping -c 100 -q 10.99.0.1
ping -c 100 -q 203.0.113.10
mtr -r -w -c 100 203.0.113.10
Throughput: run iperf3 -s on the hub (allow TCP 5201 on the tunnel interface while you test), then from the spoke iperf3 -c 10.99.0.1 -t 30, and again with -R for the other direction. For the SSH comparison, open ssh -N -L 15201:127.0.0.1:5201 <USER>@<HUB_SSH_ADDRESS> and run iperf3 -c 127.0.0.1 -p 15201 -t 30.
Application timing matters most, because an SSH forward cannot be pinged. Create an empty slaptest schema and a slap user allowed only on it from both 127.0.0.1 and 10.99.0.2, then run the same load against both paths:
for target in 127.0.0.2 10.99.0.1; do
echo "== $target"
mariadb-slap --host="$target" --port=3306 --user=slap -p \
--create-schema=slaptest --query="SELECT 1;" \
--concurrency=1 --iterations=100
done
127.0.0.2 stands for your SSH forward; if yours listens on another port, run the two commands separately with the right --port. mariadb-slap was formerly mysqlslap, which is still its name on MySQL. Compare the average, minimum and maximum lines, repeat with higher --concurrency, alternate the order, and run at different times of day. Watch CPU on both ends with sar -u 1 30 (from the sysstat package): a result that only falls apart at high concurrency may be the target’s CPU, not the tunnel. For HTTP services, curl -w '%{time_connect} %{time_appconnect} %{time_total}\n' with and without --resolve gives the same comparison.
Troubleshooting
The hub shows 0 B received, or no handshake at all: packets from the spoke are not reaching the hub. Run sudo tcpdump -ni any udp port 51821 on the hub while the spoke pings. Nothing arriving means the perimeter is dropping them. Mine was a policy that named the internal mapped address as its destination instead of the port-forward (destination NAT) object, so the forward never matched. Packets arriving with no reply points at the hub’s host firewall or a key mismatch.
Handshakes work but the service does not answer: check that each side’s AllowedIPs contains the other’s tunnel address, that a ufw rule exists on the tunnel interface for that port, and that the service listens on the tunnel address (sudo ss -tlnp | grep 3306 on the hub).
Small requests work, large responses hang: MTU. From the spoke, ping -M do -s 1392 10.99.0.1 sends a 1,420-byte packet (1,392 bytes of payload plus 28 bytes of ICMP and IPv4 headers) that may not be fragmented. If it gets no replies, lower -s until replies come back, then set MTU on both ends to the largest size that passed plus 28.
A hosts edit did not move traffic: run getent hosts <name> (not dig or nslookup, which query DNS directly and skip /etc/hosts). If it prints the old address, check the order on the hosts: line in /etc/nsswitch.conf and whether a caching daemon such as nscd runs. If it prints the new address, the application resolved the name once at startup or holds persistent connections; reload it.
AutoSSH traffic is showing up inside a WireGuard tunnel: this is the double tunnel. Find it with sudo ss -tnp | grep <PEER_TUNNEL_IP>; an ssh process connected to port 22 is the giveaway. tr '\0' '\n' < /proc/<PID>/cmdline lists its forwards, and systemctl status <PID> names the unit that owns it. Pin the unit to the public address (Step 10) or retire it.
The database refuses logins that worked through SSH: read the host part of Access denied for user 'app'@'...'. Through SSH the server saw 127.0.0.1; now it sees the tunnel address, or a hostname if the database server resolves client addresses (an /etc/hosts entry for the spoke’s tunnel address on the database server is enough). The server uses the most specific matching account, so a more specific row can win over a '%' account. List accounts with SELECT user, host FROM mysql.user; and confirm which one matched with SELECT CURRENT_USER();. I created accounts for each tunnel address. Enabling skip_name_resolve is the other route, after which only IP-based accounts work.
Signed API calls fail signature validation after the move: one integration called an e-commerce platform’s REST API with OAuth 1.0a signatures. The signature covers a base string that includes the URL’s scheme, host and port, and RFC 5849 requires the host and port to match the request’s Host header, with the port included only when it is not the scheme’s default. Through SSH, the client called https://shop.example.com:8443 (the name mapped to loopback, where a forward on 8443 led to the server’s 443). It signed shop.example.com:8443, the server received Host: shop.example.com:8443, and both computed the same string. My first WireGuard attempts pointed the client at a different hostname, then at the bare tunnel address. The client built its base string from its configured endpoint, the server rebuilt its own from the Host header it received, and they no longer matched. Apache’s UseCanonicalName On did nothing: it changes SERVER_NAME and SERVER_PORT, and the application reads the raw Host header. To diagnose, I wrote a throwaway script that loaded the real client classes and reproduced the signing without touching the production config. Compare the base string the client signs with the method, scheme, Host header and path the server receives. The fix kept the hostname and dropped the port: endpoint https://shop.example.com, the client’s port setting changed to 443, and /etc/hosts on the client mapping shop.example.com to the server’s tunnel address. The server’s access log then showed 200s from the client’s tunnel address. If you assemble the URL yourself, PHP’s parse_url() omits the port key when there is none, so don’t emit a bare colon (shop.example.com:/rest/...).
Sources and further reading
- WireGuard: overview: UDP encapsulation, cryptokey routing (
AllowedIPsas routing table and ACL), roaming to the latest authenticated endpoint, kernel implementation. - WireGuard: Known Limitations: no TCP mode because of TCP-over-TCP performance; roaming caveats.
- WireGuard: Quick Start: silent when idle,
PersistentKeepaliveand the 25-second interval, key generation withumask 077. - wg(8):
AllowedIPs,Endpoint,ListenPort,PersistentKeepalive,wg showfields. - wg-quick(8): config location,
MTUauto-detection, interface name rules. - wireguard-tools: wg-quick linux.bash: MTU calculation (route MTU minus 80, fallback 1500 minus 80).
- WireGuard mailing list: header and MTU sizes: Jason Donenfeld’s breakdown of the 80-byte worst-case overhead.
- wireguard-tools: wg-quick@.service: systemd unit;
reloadrunswg syncconf. - Linux 5.6 release notes (Kernel Newbies): WireGuard merged into mainline.
- Debian package tracker: wireguard and Ubuntu packages: wireguard: package names and versions per release.
- RFC 4254, section 5: SSH channels multiplexed over one connection, window-based flow control.
- Olaf Titz: Why TCP Over TCP Is A Bad Idea: the stacked-retransmission meltdown, described for IP-over-TCP tunnels such as PPP over SSH.
- ssh(1), ssh_config(5) and sshd_config(5):
-L/-Rbind addresses,-w,ServerAliveInterval,ExitOnForwardFailure,ClientAliveIntervaldefaults. - autossh(1): monitor port,
AUTOSSH_POLLdefault of 600 seconds, back-off on repeated failures. - OpenSSH source: ssh.c: the
remote port forwarding failedwarning, fatal only withExitOnForwardFailure. - Linux kernel: ip-sysctl, tcp_retries2: 924.6-second lower bound on the retransmission timeout.
- nsswitch.conf(5) and getent(1): lookup order and testing resolution through NSS.
- ufw(8):
allow in on <interface>and source-restricted rules. - AWS: security groups and AWS: network MTU: stateful rules; jumbo frames inside a VPC, 1,500 bytes through an internet gateway.
- MariaDB: bind_address, MariaDB remote connection guide and mariadb-slap: listen addresses, loopback defaults, benchmark options.
- MySQL: access control, connection verification and host cache: most-specific account wins, reverse resolution,
skip_name_resolve. - RFC 5849, section 3.4.1: OAuth 1.0a signature base string,
Hostheader and default-port rules. - Apache httpd: UseCanonicalName: what it changes and what it does not.
- PHP: parse_url: absent components are omitted.
- iperf3(1), mtr(8) and curl: measurement flags,
--resolve,--write-outtiming variables.