Find the answer to your Linux question:
Results 1 to 4 of 4
Is it possible to only view certain chains and more specifically certain chain policies with options when doing: iptables -L I would like for example view FORWARD ACCEPT rules instead ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    22

    Cool Filtering chain and policy for iptables -L


    Is it possible to only view certain chains and more specifically certain chain policies with options when doing:

    iptables -L

    I would like for example view FORWARD ACCEPT rules instead of waiting for all of the drop rules to load when viewing a firewalled iptables.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Man iptables is your friend

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    So - depending on what you want to see, you can specify by the table you want.

    iptables -t nat -L

    will show you prerouting postrouting and something else,

    iptables -t filter -L will show you those under the filter tables

    I am a newbie but I think this might answer your question. I learned these from my friend the man page

  4. #4
    Just Joined!
    Join Date
    Aug 2009
    Posts
    8

    Wink hope u get what u want

    type command like : iptables -t TABLE-NAME -L CHAIN-NAME

    In this TABLE-NAME = nat, filter etc....
    CHAIN-NAME = name of the chain for that particular TABLE-NAME.

    example: iptables -t nat -L OUTPUT

    which only show the output chain for the nat table.

    enjoy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •