thanks for ur reply n the 1st portion is solved, its now working I typed all the commands on root and afterwards used iptables-save command to commit, but when i restarted the system and used this command iptables -L it shows no rules. So how to accomplish this. Also quite frankly i didnt get it > As a script somewhere in /etc/init.d/ and a symlink in > /etc/rc.$defaultrunlevel/. can you please tell me how to do it , as i m new to it. Regards. Aejaz ----- Original Message ----- From: "Frank Gruellich" <frank@xxxxxxxxxxxxxxxx> To: <netfilter@xxxxxxxxxxxxxxxxxxx> Sent: Thursday, April 08, 2004 5:09 PM Subject: Re: newbie question > * M. Ahmad Ijaz <ahmad@xxxxxxxxxxxxxxxxxxxxx> 8. Apr 04: > > hi, > > Hello, > > > modprobe ip_tables > > modprobe ip_conntrack > > modprobe iptable_nat > > modprobe ip_conntrack_ftp > > modprobe ip_nat_ftp > > > > iptables -P INPUT ACCEPT > > iptables -P OUTPUT ACCEPT > > iptables -P FORWARD DROP > > iptables -A INPUT -p icmp --icmp-type 8 -j DROP > > > > iptables -A PREROUTING -s xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 > > > > where xxx is any IP and yyy is the subnet mask, it returns me the same > > message i.e. iptables: No chain/target/match by that name > > Try > > # iptables -t nat -A PREROUTING ... > > Rules go into the filter table by default, if not specified otherwise, > but filter has not {PRE,POST}ROUTING. > > > also i dont wana load the modules and the commands each time the > > system starts, so when i type the commands i used iptables-save > > command to save tat, also is there ne possibility where i can store > > the command and execute when system startsup > > As a script somewhere in /etc/init.d/ and a symlink in > /etc/rc.$defaultrunlevel/. > > HTH, > regards, Frank. > -- > Sigmentation fault >