22.12.2012 Views

Front cover - IBM Redbooks

Front cover - IBM Redbooks

Front cover - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Traceroute is the most common command that uses source-routed traffic. This<br />

permits the diagnosis of trouble spots in the network by specifying the route to<br />

take.<br />

Unfortunately, would-be attackers can use source-routed traffic to try and bypass<br />

firewall rules and TCP/IP filters. Dropping source-routed traffic should be done<br />

on the edge routers, and any capable security gateways:<br />

► With Solaris, use the following command:<br />

ndd -set /dev/ip ip_forward_src_routed 0<br />

► For GNU/Linux 2.4.x, use this command:<br />

echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route<br />

Dropping directed broadcast traffic<br />

The Smurf Denial of Service attack and others like it can be defeated by<br />

disabling directed broadcasts on the edge routers and servers exposed to the<br />

Internet:<br />

► For Solaris, use the following command:<br />

ndd -set /dev/ip ip_forward_directed_broadcasts 0<br />

Ignoring ICMP echo request broadcasts<br />

There is a draft RFC named draft-vshah-ddos-smurf-00, which can be found at<br />

the following URL:<br />

http://www.ietf.org/internet-drafts/draft-vshah-ddos-smurf-00.txt<br />

It states that if the network node is set to reply to an IP ICMP echo reply on a<br />

broadcast or multicast address, the node must check to make sure that the<br />

source address is on a local network of the network node. If the source address<br />

is not local, the reply must be discarded. Changing the behavior to not respond to<br />

ICMP broadcasts ensures that those replies are always discarded:<br />

► With Solaris, use the following command:<br />

ndd -set /dev/ip ip_respond_to_echo_broadcast 0<br />

► With GNU/Linux 2.4.x, use the following command:<br />

echo 1 > /proc/sys/net/ipv4/icmp_echo_ ignore_broadcasts<br />

GNU/Linux has an additional control to disable all ICMP Echo Reply requests.<br />

Issuing the following command will make the Linux kernel ignore all ICMP Echo<br />

Requests:<br />

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all<br />

Chapter 9. Server hardening 397

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!