From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexis" Subject: Re: newbie question Date: Thu, 8 Apr 2004 13:26:54 -0300 Sender: netfilter-admin@lists.netfilter.org Message-ID: <003501c41d86$4efcf3c0$51a2fea9@heretic> References: <004601c41d60$9bf1af70$aa47aacb@hacker> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0032_01C41D6D.28EA9700" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter , "M. Ahmad Ijaz" This is a multi-part message in MIME format. ------=_NextPart_000_0032_01C41D6D.28EA9700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable you must specify the table. with -t modif ----- Original Message -----=20 From: M. Ahmad Ijaz=20 To: netfilter@lists.netfilter.org=20 Sent: Thursday, April 08, 2004 8:57 AM Subject: newbie question hi, I just wanna know few things , i have installed red hat 9, iptable is = installed. Now the thing is, i didnt know at first that i have to load the = modules, i was getting the message iptables: No chain/target/match by that name so after couple of searches i did find some help and i manage to apply = few commands i.e. 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=20 all the above commands are accepted at command prompt, but when i try = to use this command 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.=20 iptables: No chain/target/match by that name So it also give the same message with POSTROUTING. 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 ------=_NextPart_000_0032_01C41D6D.28EA9700 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
you must specify the = table.
 
with -t modif
----- Original Message -----
From:=20 M. Ahmad Ijaz
To: netfilter@lists.netfilter.o= rg=20
Sent: Thursday, April 08, 2004 = 8:57=20 AM
Subject: newbie question

hi,
 
I just wanna know few things , i have installed red hat 9, = iptable is=20 installed.
 
Now the thing is, i didnt know at = first that i=20 have to load the modules, i was getting the message
 
iptables: No chain/target/match by that = name
 
so after couple of searches i did = find some help=20 and i manage to apply few commands i.e.
 
modprobe ip_tables
modprobe ip_conntrack
modprobe=20 iptable_nat
modprobe ip_conntrack_ftp
modprobe=20 ip_nat_ftp

iptables -P INPUT ACCEPT
iptables -P OUTPUT=20 ACCEPT
iptables -P FORWARD DROP
iptables -A INPUT -p icmp = --icmp-type 8=20 -j DROP
 
all the above commands are accepted at command prompt, but when i = try to=20 use this command

iptables -A PREROUTING -s=20 xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy -p tcp -m tcp --dport 80 -j REDIRECT=20 --to-ports 8080 where xxx is any IP and yyy is the subnet mask, it = returns me=20 the same message i.e.
iptables: No chain/target/match by that=20 name

So it also give the same message with = POSTROUTING.


also=20 i dont wana load the modules and the commands each time the system = starts, so=20 when i type the commands i used iptables-save command to save tat, = also is=20 there ne possibility where i can store the command and execute when = system=20 startsup
------=_NextPart_000_0032_01C41D6D.28EA9700--