Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables: how to list tables?

Reply
Thread Tools Display Modes

iptables: how to list tables?

 
 
timeOday
Guest
Posts: n/a

 
      10-01-2003, 05:45 AM

-L only lists the chains in a given table. Others besides filter, nat and
mangle can be loaded from modules or, I suppose, compiled in. So how do I
list all the currently loaded/compiled in tables?

(IMHO it's odd that -L doesn't list all the chains on all the tables by
default, or at least provide an option to do so. Or maybe I'm just missing
it?)

 
Reply With Quote
 
 
 
 
Juha Laiho
Guest
Posts: n/a

 
      10-01-2003, 05:12 PM
timeOday <timeOdayUN-(E-Mail Removed)> said:
>-L only lists the chains in a given table. Others besides filter, nat and
>mangle can be loaded from modules or, I suppose, compiled in. So how do I
>list all the currently loaded/compiled in tables?


Hmm.. I find this curious; I've never seen a reference to another table
than one of these three. Do you have an example?

>(IMHO it's odd that -L doesn't list all the chains on all the tables by
>default, or at least provide an option to do so. Or maybe I'm just missing
>it?)


At least to me the functionality of the three tables are different enough
that I don't see a need to see them in a single listing. And if I need
that, I can always do "iptables-save" and look at the save file.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
timeOday
Guest
Posts: n/a

 
      10-01-2003, 06:00 PM
Juha Laiho wrote:

> timeOday <timeOdayUN-(E-Mail Removed)> said:
>>-L only lists the chains in a given table. Others besides filter, nat and
>>mangle can be loaded from modules or, I suppose, compiled in. So how do I
>>list all the currently loaded/compiled in tables?

>
> Hmm.. I find this curious; I've never seen a reference to another table
> than one of these three. Do you have an example?
>
>>(IMHO it's odd that -L doesn't list all the chains on all the tables by
>>default, or at least provide an option to do so. Or maybe I'm just
>>missing it?)

>
> At least to me the functionality of the three tables are different enough
> that I don't see a need to see them in a single listing. And if I need
> that, I can always do "iptables-save" and look at the save file.


iptables-save is great idea.

From reading the documentation I had the idea that tables could be created
willy-nilly by loading modules.. I assmed (incorrectly) that there were a
bunch of different table modules available.

I am really liking iptables over ipchains and ipmasqadm so far! Obviously
I'm behind the curve but I tend to leave this sort of thing alone so long
as it's working.

 
Reply With Quote
 
Kenneth Porter
Guest
Posts: n/a

 
      10-01-2003, 10:53 PM
timeOday <timeOdayUN-(E-Mail Removed)> wrote in
news:q9SdncGgwYy89-eiU-(E-Mail Removed):

> -L only lists the chains in a given table. Others besides filter, nat
> and mangle can be loaded from modules or, I suppose, compiled in. So
> how do I list all the currently loaded/compiled in tables?


cat /proc/net/ip_table_names

--
Kenneth Porter
http://www.sewingwitch.com/ken/
 
Reply With Quote
 
timeOday
Guest
Posts: n/a

 
      10-02-2003, 12:55 PM
Kenneth Porter wrote:

> timeOday <timeOdayUN-(E-Mail Removed)> wrote in
> news:q9SdncGgwYy89-eiU-(E-Mail Removed):
>
>> -L only lists the chains in a given table. Others besides filter, nat
>> and mangle can be loaded from modules or, I suppose, compiled in. So
>> how do I list all the currently loaded/compiled in tables?

>
> cat /proc/net/ip_table_names
>


Excellent, thanks!

 
Reply With Quote
 
Tim Smith
Guest
Posts: n/a

 
      10-03-2003, 10:15 AM
In article <q9SdncGgwYy89-eiU-(E-Mail Removed)>, timeOday wrote:
> -L only lists the chains in a given table. Others besides filter, nat and
> mangle can be loaded from modules or, I suppose, compiled in. So how do I
> list all the currently loaded/compiled in tables?


Well, for modules, how about "lsmod | grep iptables"?

--
Evidence Eliminator is worthless. See evidence-eliminator-sucks.com
--Tim Smith
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP tables help CCW Linux Networking 0 05-17-2008 11:59 AM
Routing Tables Alex Pearce Windows Networking 1 11-22-2005 01:27 PM
IPTABLES: list all chain names Thomas Scheffler Linux Networking 0 11-12-2004 08:50 AM
Route tables Scott Dortch Linux Networking 5 02-05-2004 12:28 AM
Blocking long list of IPs in iptables? Jem Berkes Linux Networking 10 10-10-2003 07:22 PM



1 2 3 4 5 6 7 8 9 10 11