IPTABLES: list all chain names

Discussion in 'Linux Networking' started by Thomas Scheffler, Nov 12, 2004.

  1. Hi,

    I need to get a list of all (user-defined) chains in the table "filter".
    Till now I was doing this:

    iptables -L -n|grep references|cut -d" " -f2

    This is far to slow on big configurations. To get to the 2nd segment of
    the pipe expression all rules have to given out before. Is there an
    easier way to get on the names of all user defined chains?

    Thanks in advanced

    Thomas
     
    Thomas Scheffler, Nov 12, 2004
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.