sshd: public exposure contradicts tangled-knot 'tailnet-only' comment; do security pass #103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
During mobile-SSH debugging today,
auth.logon kai-server showed live brute-force scan attempts from public IPs (2.57.122.177,89.134.210.182,213.35.128.24,161.35.139.3). That contradicts the comment ininfrastructure/sshd/tangled-knot.confwhich states 'SSH stays tailnet-only.'Observed state on kai-server (snapshot from this debug session)
0.0.0.0:22and[::]:22(all interfaces, including public).systemctl is-active fail2ban sshguard-> both inactive.ufwactive, rules not verified in this session (no interactive sudo).Likely sources of the gap
Match User gitblock). If so, the 'tailnet-only' comment is stale and the security posture relies entirely on the keyfetch denying unknown keys.Proposed scope for the security pass
Non-exhaustive, ordered by likely payoff:
docs/k3s-deploy-notes.mdor a newdocs/ssh-exposure.md.gituser, restrict thekaiuser to tailnet-only via aMatch Addressblock + a non-default port for the git user, or split the daemons.PasswordAuthenticationglobally if not already; pubkey only. (Need to verify current state - not visible without sudo.)PermitRootLoginglobally. (Need to verify.)ListenAddressto100.69.164.66(tailscale0) +127.0.0.1if router forwards aren't required.docs/k3s-deploy-notes.mdsection on tailnet-only services and update if reality differs.Related
coilysiren/mobile-ssh-debug.mdon Kai's workstation).Filed by Claude.