81 articles
Knowledge Base
Networking
81 articles in the Networking category · page 1 of 4.
- iptables port forwarding: DNAT, SNAT and MASQUERADE Forward a port with iptables by enabling IP forwarding, adding a DNAT rule, rewriting replies with SNAT or MASQUERADE, and allowing it through FORWARD.
- VPN audit logging: a pattern that survives discovery Set up VPN audit logging that answers who connected, when, from where, and what they reached, across OpenVPN, WireGuard, IPsec, and Tailscale. You also get retention rules that hold up when a security auditor asks.
- Deploy an ISC Kea DHCP high-availability pair, replacing dhcpd Set up Kea DHCP high availability on two Debian or Ubuntu hosts so one server takes over when the other fails. You will move off the retired ISC dhcpd, turn on the hot-standby hook, and test a real failover.
- Configure static IPs, VLANs and an LACP bond with Netplan on Ubuntu Learn how to set a static IP, VLANs and an LACP bond with Netplan on Ubuntu, using the current routes syntax instead of the deprecated gateway4 key. You will also use netplan try, which rolls back a bad change automatically so you never lock yourself out of a remote server.
- Linux conntrack tuning: table sizing, timeouts, and avoiding the drop Learn how to stop a busy Linux router or NAT gateway from dropping packets when its connection-tracking table fills up. This guide shows you how to size nf_conntrack_max, tune the per-protocol timeouts, and read /proc to spot the problem early.
- IPv6 address autoconfiguration: SLAAC, DHCPv6, and how Linux decides Learn how a Linux server gets its IPv6 address through SLAAC or DHCPv6, what the router's M and O flags decide, and which commands show what the host really received.
- mDNS and Avahi: zero-configuration service discovery on Linux Learn how mDNS and Avahi give Linux machines zero-configuration name and service discovery, so hosts find each other by .local name with no DNS server to maintain. You will also set up the firewall rules and the reflector that carry discovery across subnets.
- Adding and routing additional IPs on a WHM server — the complete order of operations WHM Add a New IP Address writes the interface config, /etc/ips, the IP pool and a gratuitous ARP. It does not touch your firewall, per-account assignment, Exim source IP, PTR or SPF. A runbook with a verification gate after every step.
- Diagnose "Connection reset by peer" (ECONNRESET) on Linux A systematic method for diagnosing Connection reset by peer (ECONNRESET) on Linux servers: capture the TCP RST with tcpdump, establish which host actually sent it, confirm the cause with kernel counters such as ListenOverflows and TCPAbortOnClose, then fix that cause.
- Tune NIC IRQ affinity and RSS queues on a busy Linux server Prove that one CPU is absorbing every network interrupt, then fix it: size RSS queues with ethtool -L, pin queue IRQs with smp_affinity_list, keep irqbalance out of the way, and use RPS when the NIC has a single queue.
- nftables NAT and port forwarding on a Linux gateway Configure nftables NAT and port forwarding on a Linux gateway: DNAT a public port to an internal host, masquerade outbound traffic, fix hairpin NAT, and persist it in /etc/nftables.conf.
- Export block storage over iSCSI on Linux with targetcli and open-iscsi Build an iSCSI target on Linux with targetcli, connect it from an open-iscsi initiator, make the mount survive reboot, and lock the LUN down with CHAP and an initiator ACL.
- OpenSSH server hardening checklist A practical sshd hardening pass on OpenSSH 9.x: key-only auth, no root login, AllowUsers, tuned ciphers, login limits, and validating with sshd -t before reload so you never lock yourself out.
- firewalld zones and rules — configure firewall-cmd without locking yourself out A practitioner guide to firewalld on RHEL, Rocky, AlmaLinux, and Fedora: the zone model, assigning interfaces and sources, adding services and ports, rich rules, and permanent versus runtime changes.
- PIM-SM multicast routing on Linux: pimd, FRR, and a small working tree How PIM Sparse-Mode builds shared and source trees, how to bring up FRR pimd on a Linux router, and the operational details that show up in production multicast deployments.
- TOTP/MFA integration for VPN: OpenVPN and strongSwan patterns How to add TOTP-based MFA to OpenVPN and strongSwan VPN gateways — google-authenticator PAM, EAP-RADIUS, push-based providers, and the enrollment flow we run.
- Installing strongSwan IPsec on Ubuntu A production strongSwan install — swanctl-style configuration, the systemd unit, certificates, and the verification checks an MSP runs before relying on the tunnel.
- Headscale: self-hosting the Tailscale control plane How to deploy Headscale as an open-source coordination server for Tailscale clients — install, OIDC, DERP, and the operational trade-offs versus the managed control plane.
- WireGuard split tunneling that does not leak How to route only specific traffic through a WireGuard tunnel — AllowedIPs design, DNS hygiene, route precedence, and the leak-test we run before shipping a profile.
- Deploying OpenLiteSpeed on AlmaLinux 9 (production-ready) Stand up a hardened OpenLiteSpeed web server on AlmaLinux 9 — LSCache, PHP 8.2 LSPHP, WordPress vhost skeleton, admin behind firewall, Let's Encrypt TLS.
- Deploying Traefik 3 in cluster mode with KV-backed dynamic config (Consul) on AlmaLinux 9 Stand up a three-node Traefik 3 cluster on AlmaLinux 9 driven by Consul KV — shared cert resolvers, dynamic routes, sticky sessions, Prometheus metrics.
- BGP with FRR: peering, prefix advertisement, and route policy basics How to bring up BGP on Linux with FRR, the four pieces every session needs, basic prefix policy with route-maps, and the verification commands that catch silent peerings.
- Choosing the LB algorithm: weighted round-robin, least-connections, or IP-hash The default algorithm in your load balancer is round-robin. It is the right default and the wrong choice for several real workloads.
- Migrating from OpenVPN to WireGuard A staged migration from an OpenVPN gateway to WireGuard — running both in parallel, cutting users over without breakage, and the audit-tracked decommission of the old stack.