Hi
I just finished to install isc dhcpd on a centos 7 server
I configured the dhcpd.conf with a basic subnet, the service start and works normally.
But when i checked the ports with netstat I noticed that dhcpd is listening not only on port 67 but also in a second random port
Every time that I restart the service this port changes
Code:
# dhcpd --version
isc-dhcpd-4.2.5
Code:
[root@server0 ~]# netstat -naup
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 192.168.0.1:53 0.0.0.0:* 1595/named
udp 0 0 0.0.0.0:67 0.0.0.0:* 24562/dhcpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 990/chronyd
udp 0 0 127.0.0.1:323 0.0.0.0:* 990/chronyd
udp 0 0 0.0.0.0:43898 0.0.0.0:* 24562/dhcpd
udp6 0 0 :::38946 :::* 24562/dhcpd
udp6 0 0 :::123 :::* 990/chronyd
[root@server0 ~]#
[root@server0 ~]# systemctl restart dhcpd
[root@server0 ~]#
[root@server0 ~]# netstat -naup
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 192.168.0.1:53 0.0.0.0:* 1595/named
udp 0 0 0.0.0.0:67 0.0.0.0:* 27814/dhcpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 990/chronyd
udp 0 0 0.0.0.0:2872 0.0.0.0:* 27814/dhcpd
udp 0 0 127.0.0.1:323 0.0.0.0:* 990/chronyd
udp6 0 0 :::123 :::* 990/chronyd
udp6 0 0 :::37537 :::* 27814/dhcpd
Is this normal ? How can I disable this random port ?