ifconfig and network starting

Mark Street jet at sonic.net
Fri Nov 2 21:43:33 PST 2001

For your interfaces
/etc/sysconfig/network-scripts - remember ONBOOT

/etc/rc.d/rc.local or rc.firewall for the iptables code.
Set yourself a link from your rc dir's to start the packet filter after
the network comes up.  Remember the S99 in rc3.d?

On Fri, 2 Nov 2001, Jake wrote:

> 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
> moment.)
> 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 :)
> Thanks,
> Jake

More information about the talk mailing list