From mboxrd@z Thu Jan 1 00:00:00 1970 From: "M. Ahmad Ijaz" Subject: newbie question Date: Thu, 8 Apr 2004 16:57:03 +0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <004601c41d60$9bf1af70$aa47aacb@hacker> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0043_01C41D8A.8487A130" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0043_01C41D8A.8487A130 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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_0043_01C41D8A.8487A130 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
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 have=20 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 = ip_nat_ftp

iptables=20 -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD=20 DROP
iptables -A INPUT -p icmp --icmp-type 8 -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 = --to-ports=20 8080 where xxx is any IP and yyy is the subnet mask, it returns me the = same=20 message i.e.
iptables: No chain/target/match by that name

So = it also=20 give the same message with POSTROUTING.


also i dont wana load = the=20 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=20 where i can store the command and execute when system=20 startsup
------=_NextPart_000_0043_01C41D8A.8487A130--