Results 1 to 2 of 2

Thread: Creating Logging information of incoming packets

  1. #1
    Join Date
    Aug 2011
    Beans
    2

    Creating Logging information of incoming packets

    Hi all,

    how can i log the information about the incoming packets to the netfilter.

    i am using the mangle table like this

    sudo iptables –t mangle –A PREROUTING -p tcp -j NFQUEUE --queue-num 0

    and i wouldlike to know how can i look whether all the packets are entering to it or not...

    any ideas???

  2. #2
    Join Date
    Aug 2009
    Beans
    Hidden!

    Re: Creating Logging information of incoming packets

    Two ways. You don't need a rule for it if you just watch the chains packet counters: list rules with 'iptables -t raw -nvxL PREROUTING' then sort by packet count or packet number. If you want a rule then add a "-j LOG" one before the one you listed with the options you need (see 'iptables -j LOG --help' or'man iptables').

Bookmarks

Posting Permissions

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