Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    The Keystone State
    Man iptables is your friend


    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    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. $spacer_open
  5. #4

    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.


Posting Permissions

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