Port 67-68: DHCP (Dynamic Host Configuration Protocol)
What port 67-68 (UDP) does, the security risks of leaving it open, and how to secure and test it.
| Port | 67-68 |
|---|---|
| Transport | UDP |
| Service | Dynamic Host Configuration Protocol (DHCP) |
| Encrypted | No |
What is port 67-68?
DHCP hands out IP addresses, the default gateway and DNS servers automatically. Servers listen on UDP 67 and clients on UDP 68.
Common uses
- Giving every PC, phone and printer its network settings
- Network boot (PXE) for installing operating systems
Security risks
- Rogue DHCP servers sending clients to an attacker's gateway
- DHCP starvation attacks that use up every address in the pool
How to secure port 67-68
- Enable DHCP snooping on switches and trust only the uplink to the real server
- Use port security to limit MAC addresses per port
- On routers, use ip helper-address to forward requests to a central server instead of many small ones
How to check if port 67 is open
| Where | Command |
|---|---|
| Scan from another machine | nmap -sU -p 67 <host> |
| Linux (what is listening) | sudo ss -tulpn | grep :67 |
| Windows (what is listening) | netstat -ano | findstr :67 |
Only scan systems you own or have permission to test.
Example: block it at the internet edge (Cisco)
For a service that should stay inside your network, deny it on the internet-facing interface. Put the rule before any broader permit statements:
ip access-list extended INTERNET-IN
remark Block DHCP from the internet
deny udp any any eq 67
permit ip any any
!
interface GigabitEthernet0/0
ip access-group INTERNET-IN inIn a real network the final line would be your normal inbound policy, not "permit ip any any". Build and check rules with the ACL builder.
Related ports
Frequently asked questions
What is port 67-68 used for?
Port 67-68 (UDP) is used by Dynamic Host Configuration Protocol (DHCP). DHCP hands out IP addresses, the default gateway and DNS servers automatically.
Is it safe to open port 67-68?
Only if the service needs to be reached and is configured securely. Enable DHCP snooping on switches and trust only the uplink to the real server.
How do I check if port 67-68 is open?
From another computer, run nmap -p 67 followed by the host address with -sU for UDP. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 67.
Learn more: TCP, UDP and ports explained and firewall basics.