← LFCS: Linux administration in production
03 / 9 · 25 MIN

Local networking, resolution, and SSH access

Separate listener, route, resolution, and server identity.

Concept and mechanism

A socket listening on 127.0.0.1 accepts within loopback scope; opening firewall ports does not change that bind. Before exposing the listener, confirm the design: a local proxy may be the only authorized entry point. Use ss to observe sockets and connect address and port to the process.

With several interfaces, ip addr shows addresses but does not itself determine which source will be selected for a destination. ip route get lets you query that decision; with policy routing, consider relevant source, rules, and context. Avoid deleting a default route merely because it appears first.

Guided application

The application’s resolution mechanism also matters. dig queries DNS, while getent follows databases configured through NSS. If the application uses NSS and /etc/hosts contains an old address, a correct DNS test may not represent the real path.

With dual stack, test IPv4 and IPv6 separately while preserving hostname and TLS context. Success in one family does not demonstrate success in the other. In SSH, a changed host key after replacement is plausible, but the ticket does not authenticate the new key.

Confirm the fingerprint through an authenticated channel and update only the necessary trust. Do not erase every known key or globally disable verification to bypass a warning.

IN PRACTICE

The partner rejects the observed source IP: query the route to that destination before proposing firewall changes.

Common pitfalls

Open port as external listener; address list as routing decision; dig as a test of every application; planned change as authenticated key.

Related topics: Time, filtering, bonds, and proxies · Storage, mounts, and recovery

Take this idea with you

Reproduce client context and collect evidence at each flow boundary.

Create account

Reference: ss(8) · LFCS current five-domain outline; exact edition date unconfirmed

LFCS is a trademark of The Linux Foundation. Linux® is a registered trademark of Linus Torvalds. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by The Linux Foundation or Linus Torvalds. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.