Hacking Linux Exposed

About
Authors
Contents
Reviews
Foreword
Purchase

Articles
Books
Sourcecode
Tools
Errata

Home

 


(view this code in a separate window)

#!/bin/sh
for interface in /proc/sys/net/ipv4/conf/*
do

	echo 0 > $interface/accept_source_route

	# Alternatively, you could stick
	# appropriate entries in /etc/sysctl.conf
done