Port reference › Network infrastructure
Port 67 · DHCP server
Automatic IP assignment (server side)
UDP Network infrastructure Exposure risk: Low
What is port 67 used for?
Port DHCP servers listen on; clients receive replies on 68. Across subnets, the router needs a DHCP relay (ip helper-address).
Well-known port (0-1023): opening it on Linux needs root (or CAP_NET_BIND_SERVICE).
Security notes
Enable DHCP snooping on switches to stop rogue DHCP servers.
Allow port 67 through the firewall
This port is generally fine to expose publicly.
sudo ufw allow 67/udp
sudo ufw status sudo firewall-cmd --permanent --add-port=67/udp
sudo firewall-cmd --reload sudo iptables -A INPUT -p udp --dport 67 -j ACCEPT New-NetFirewallRule -DisplayName "Allow UDP 67" -Direction Inbound -Protocol UDP -LocalPort 67 -Action Allow # Replace sg-0123456789abcdef0 with your security group ID
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol udp --port 67 --cidr 0.0.0.0/0 Check whether port 67 is open
sudo ss -ulpn | grep ':67 ' netstat -ano | findstr :67 nc -zuv SERVER 67
# UDP can look "open" even with no reply, so do not trust this alone.
# Testing with a real client for the service is more reliable. sudo lsof -i :67 Ports used together
- 68 DHCP client · Automatic IP assignment (client side)