ifconfig and network starting
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
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 192.168.254.3 broadcast 192.168.254.255 netmask
>ifconfig eth2 up 10.0.0.1 broadcast 10.0.0.255 netmask 255.255.255.0
>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.
>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