Port reference › Network infrastructure
Port 68 · DHCP client
Automatic IP assignment (client side)
UDP Network infrastructure Exposure risk: Low
What is port 68 used for?
Port DHCP clients receive server replies on.
Well-known port (0-1023): opening it on Linux needs root (or CAP_NET_BIND_SERVICE).
Security notes
Nothing special.
Allow port 68 through the firewall
This port is generally fine to expose publicly.
sudo ufw allow 68/udp
sudo ufw status sudo firewall-cmd --permanent --add-port=68/udp
sudo firewall-cmd --reload sudo iptables -A INPUT -p udp --dport 68 -j ACCEPT New-NetFirewallRule -DisplayName "Allow UDP 68" -Direction Inbound -Protocol UDP -LocalPort 68 -Action Allow # Replace sg-0123456789abcdef0 with your security group ID
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol udp --port 68 --cidr 0.0.0.0/0 Check whether port 68 is open
sudo ss -ulpn | grep ':68 ' netstat -ano | findstr :68 nc -zuv SERVER 68
# 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 :68 Ports used together
- 67 DHCP server · Automatic IP assignment (server side)