* nat table not working with 'iptables -L nat'
@ 2003-04-22 23:01 Stuart Clark
2003-04-25 9:25 ` Michael J. Tubby B.Sc. (Hons) G8TIC
2003-04-25 13:21 ` Eric Poulin
0 siblings, 2 replies; 3+ messages in thread
From: Stuart Clark @ 2003-04-22 23:01 UTC (permalink / raw)
To: netfilter
Hi
When I try and add a rule to the nat table it seems to work but when I
do 'iptables -L nat' I get the error
'iptables: Table does not exist (do you need to insmod?)'
All the other tables are there when I do 'iptables -L' but no nat table.
How can I get this working?
I don't want to recompile the kernel
Machine Specifications
Pentium2, 266Mhz
64meg Ram
Redhat 7.3
iptables-1.2.5-3.rpm
Here is my module config
#
# 2.1 Required modules
#
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe iptable_filter
/sbin/modprobe iptable_mangle
/sbin/modprobe iptable_nat
/sbin/modprobe ipt_LOG
/sbin/modprobe ipt_limit
/sbin/modprobe ipt_state
/sbin/modprobe ip_nat_ftp
#
# 2.2 Non-Required modules
#
#/sbin/modprobe ipt_owner
#/sbin/modprobe ipt_REJECT
/sbin/modprobe ipt_MASQUERADE
/sbin/modprobe ip_conntrack_ftp
#/sbin/modprobe ip_conntrack_irc
#/sbin/modprobe ip_nat_irc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nat table not working with 'iptables -L nat'
2003-04-22 23:01 nat table not working with 'iptables -L nat' Stuart Clark
@ 2003-04-25 9:25 ` Michael J. Tubby B.Sc. (Hons) G8TIC
2003-04-25 13:21 ` Eric Poulin
1 sibling, 0 replies; 3+ messages in thread
From: Michael J. Tubby B.Sc. (Hons) G8TIC @ 2003-04-25 9:25 UTC (permalink / raw)
To: Stuart Clark, netfilter
> Hi
>
> When I try and add a rule to the nat table it seems to work but when I
> do 'iptables -L nat' I get the error
>
> 'iptables: Table does not exist (do you need to insmod?)'
>
> All the other tables are there when I do 'iptables -L' but no nat table.
>
> How can I get this working?
>
try:
iptables -t nat -L
to specify that you want to list the NAT table.
Mike
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nat table not working with 'iptables -L nat'
2003-04-22 23:01 nat table not working with 'iptables -L nat' Stuart Clark
2003-04-25 9:25 ` Michael J. Tubby B.Sc. (Hons) G8TIC
@ 2003-04-25 13:21 ` Eric Poulin
1 sibling, 0 replies; 3+ messages in thread
From: Eric Poulin @ 2003-04-25 13:21 UTC (permalink / raw)
To: Stuart Clark; +Cc: netfilter
Try "iptables -t nat -L" or "iptables -t nat -nvL"
The default table is Filter, so when you do iptables -L, in reality, iptables
execute "iptables -t filter -L . The Prerouting/Postrouting rules of the nat
table must be accessed using iptables -t nat...
Eric
----- Original Message -----
From: "Stuart Clark" <elmhurst@spacelink.com.au>
To: <netfilter@lists.netfilter.org>
Sent: Tuesday, April 22, 2003 7:01 PM
Subject: nat table not working with 'iptables -L nat'
> Hi
>
> When I try and add a rule to the nat table it seems to work but when I
> do 'iptables -L nat' I get the error
>
> 'iptables: Table does not exist (do you need to insmod?)'
>
> All the other tables are there when I do 'iptables -L' but no nat table.
>
> How can I get this working?
>
> I don't want to recompile the kernel
>
> Machine Specifications
>
> Pentium2, 266Mhz
> 64meg Ram
> Redhat 7.3
> iptables-1.2.5-3.rpm
>
>
> Here is my module config
>
> #
> # 2.1 Required modules
> #
>
> /sbin/modprobe ip_tables
> /sbin/modprobe ip_conntrack
> /sbin/modprobe iptable_filter
> /sbin/modprobe iptable_mangle
> /sbin/modprobe iptable_nat
> /sbin/modprobe ipt_LOG
> /sbin/modprobe ipt_limit
> /sbin/modprobe ipt_state
> /sbin/modprobe ip_nat_ftp
>
> #
> # 2.2 Non-Required modules
> #
>
> #/sbin/modprobe ipt_owner
> #/sbin/modprobe ipt_REJECT
> /sbin/modprobe ipt_MASQUERADE
> /sbin/modprobe ip_conntrack_ftp
> #/sbin/modprobe ip_conntrack_irc
> #/sbin/modprobe ip_nat_irc
>
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-25 13:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-22 23:01 nat table not working with 'iptables -L nat' Stuart Clark
2003-04-25 9:25 ` Michael J. Tubby B.Sc. (Hons) G8TIC
2003-04-25 13:21 ` Eric Poulin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox