ifconfig and network starting

Warren Raquel warquel at hotmail.com
Fri Nov 2 21:46:27 PST 2001

Add all that to a file called rc.firewall and put it into the /etc/rc.d 
directory. At the end of rc.local add this:

if [ -f /etc/rc.d/rc.firewall ]; then
. /etc/rc.d/rc.firewall

That will load the firewall if it exists. Have fun.

Warren Raquel MCP CCNA

- Just another geek.

>From: "Jake" <Jake at callatg.com>
>Reply-To: <talk at nblug.org>
>To: "00 nblugTalk" <talk at nblug.org>
>Subject: ifconfig and network starting
>Date: Fri, 2 Nov 2001 20:22:33 -0800
>So I have my box with NAT bridging my 802.11 network to my switched lan.
>Totaly insecure, all packets can be sniffed (I couldn't care less at the
>However I was trying to think of the best way to get these lines to be
>passed to the shell:
>ifconfig eth1 up broadcast netmask
>ifconfig eth2 up broadcast netmask
>iptables -t nat -P POSTROUTING DROP
>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>Then when that is done I can use it as my NAT box and it should work for my
>802.11 network and my other interface.
>But I dont know the best place to put this on my redhat 7.2 box.
>Any ideas?
>I was thinking that it would be best to add it to the network script in
>/etc/init.d/network but where in the script?
>Currently my box hasnt gone down, so I havent needed to pass these options
>to the kernel  again :)

Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

More information about the talk mailing list