As a security best practice, verify that your VMware virtual appliance host machines deny IPv4 ICMP redirect messages.
About this task
Routers use ICMP redirect messages to tell hosts that a more direct route exists for a destination. A malicious ICMP redirect message can facilitate a man-in-the-middle attack. These messages modify the host's route table and are unauthenticated. Ensure that your system is configured to ignore them if they are not otherwise needed.
- Run the
# grep  /proc/sys/net/ipv4/conf/*/accept_redirects|egrep "default|all"command on the VMware appliance host machines to confirm that they deny IPv4 redirect messages.
If the host machines are configured to deny IPv4 redirects, this command returns the following:
- If you need to configure a virtual appliance host machine to deny IPv4 redirect messages, open the /etc/sysctl.conf file in a text editor.
- Check the values of the lines that begin with
If the values for the following entries are not set to zero or if the entries do not exist, add them to the file or update the existing entries accordingly.
- Save the changes you made and close the file.