ifconfig and network starting

Jake Jake at callatg.com
Fri Nov 2 20:22:33 PST 2001

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 :)


More information about the talk mailing list