-1

I have installed CSF firewall in CentOS 6 64-bit on Directadmin

dhclient appears to be running which suggests that the server is obtaining an IP address via DHCP. This can pose a security risk. You should configure static IP addresses for all ethernet controllers

how to fix this?

Abhijeet Kasurde
  • 983
  • 9
  • 20

1 Answers1

1

If your main ethernet board is eth0 You should check the file /etc/sysconfig/network-scripts/ifcfg-eth0. This will tell you if your system is using a fixed ip address or a DHCP derived ethernert address e.g. for a fixed IP address you'll have something like

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=10.0.1.27
...

and for DHCP it will be something like

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

There is more information on the network configuration files here.

user9517
  • 115,471
  • 20
  • 215
  • 297