[CLUE-Tech] turning off routing on a dual homed box

Jim Ockers ockers at ockers.net
Wed Jan 14 19:43:29 MST 2004


Sterling, Willard wrote:
> 
> How do I make sure a dual homed Red Hat 7.2 box will not route between
> interfaces?  In Solaris I can touch /etc/norouter but there doesn't seem to
> be anything like that in RH 7.2

echo 0 > /proc/sys/net/ipv4/ip_forward
iptables -t filter -I FORWARD -j REJECT

You could also edit /etc/sysctl.conf and set the ip forwarding to 0 if
it's not already set.

Hope this helps,
Jim

-- 
Jim Ockers, P.Eng. (ockers at ockers.net)
Contact info: please see http://www.ockers.net/



More information about the clue-tech mailing list