Stefan Srdic (linuxbox@telusplanet.net) wrote:
> Hi,
> Currently I'm using the networking rc script to run my IPTables script.
>
> I would like to know if there would be a way (by editing the networking rc
> file) to clear all chains and then remove all iptables modules once
> networking has been halted by issuing /etc/init.d/networking stop?
>
> Also, this is how I run my IPtables script:
>
> ip_tables () {
> if [ -e /sbin/iptables ] ; then
> echo -n "Initiating IPtables: "
> sh /etc/network/ip_tables
> echo "done."
> fi
> }
>
> Would there be a way where I can verify if both the iptables executable and
> script are both existent, and if not, have the rc script print to the
> terminal something like:
>
> "failed."
> "IPTables was not loaded properly"
>
> Please forgive my poor knowledge of bash scripting. I have never taken any
> technical trainning. My only resource for Debian and bash scripting are these
> lists and the scripts on my hard drive :D
>
> Thanks,
>
> Stef
>
>
> --
> To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
I would recommend the package ipmasq. It take's care of the firewalling
scripts.
/Erik Rigtorp
--
main(){int i,a,e[10]={255,137,129,129,0,255,25,41,70,128},s[16]={3,4,5,6,
6,6,5,4,3,2,1,0,0,0,1,2},n=0;while(1){puts("\e[2J\e[1;1H");for(i=0;i!=10;
i++){for(a=s[(i+n)&0xF]+4;a!=0;a--)printf(" ");for(a=7;a>=0;a--){if(((e[i]
>>a)&1)==1){printf("#");}else{printf(" ");}}puts();}n++;usleep(40000);}}
Attachment:
pgplfJRk_doek.pgp
Description: PGP signature