กำหนดค่าบริการเครือข่ายที่พร้อมสำหรับ production บน Rocky Linux 9 — DHCP, DNS, การจัดการ Firewalld zones และการแชร์ไฟล์ NFS ทั้งหมดด้วย SELinux enforcing
The dhcp-server package on Rocky Linux provides ISC DHCP — the most widely-deployed DHCP server in enterprise environments. Configure subnets, dynamic ranges, static reservations, and DNS options in a single dhcpd.conf file.
dhcpd -t -cf /etc/dhcp/dhcpd.conf. Watch active leases in real time with tail -f /var/lib/dhcpd/dhcpd.leases.Rocky Linux ships with firewalld using an nftables backend. It manages rules through named zones — each network interface is assigned a zone that determines which traffic is allowed. This is far more manageable than raw iptables at scale.
--permanent are lost on reload or reboot. After adding permanent rules, always run firewall-cmd --reload.drop
All incoming dropped silently
block
Incoming rejected with ICMP
public
Public-facing interface (default)
external
Masqueraded external routing
internal
Internal LAN — more trusted
trusted
All traffic accepted
Install bind and bind-utils to run an authoritative and/or caching DNS server on your Rocky Linux host. Suitable for internal name resolution in isolated networks or as a forwarding resolver.
NFS (Network File System) lets you share directories from a Rocky Linux server across your network. Clients mount the share as if it were a local disk. Rocky 9 supports NFSv4 with Kerberos authentication for secure deployments.
setsebool -P nfs_export_all_rw 1 and verify contexts with ls -Z /data/shared.rw
Read-write access for clients
ro
Read-only — safer for public shares
sync
Write to disk before replying
no_root_squash
Root on client = root on server
all_squash
Map all users to anonymous
anonuid/gid
UID/GID for squashed users
ทีมของเราออกแบบและ deploy สภาพแวดล้อมเครือข่าย Rocky Linux ครบวงจร — DHCP, DNS, นโยบาย firewall และ NFS ทดสอบและพร้อมสำหรับ production