title: NetfilterQueue Implementation
body: <p>I am trying to use NetfilterQueue for my project. As a beginning, I tried to run this code. You know the source.</p>
  
  <pre><code>from netfilterqueue import NetfilterQueue
  
  def print_and_accept(pkt):
  print pkt
  pkt.accept()
  
  nfqueue = NetfilterQueue()
  nfqueue.bind(1, print_and_accept)
  try:
  nfqueue.run()
  except KeyboardInterrupt:
  print        
  </code></pre>
  
  <p>I passed it the packets filtered by the following rule</p>
  
  <pre><code>sudo iptables -I INPUT -s iitp.ac.in -j NFQUEUE --queue-num 1
  </code></pre>
  
  <p>I got following error</p>
  
  <pre><code>Traceback (most recent call last):
    File "pkt_desc_1.py", line 8, in &lt;module&gt;
      if nfqueue.bind(0, print_and_accept) &lt; 0:
    File "netfilterqueue.pyx", line 144, in netfilterqueue.NetfilterQueue.bind (netfilterqueue.c:2665)
  OSError: Failed to create queue 1.
  </code></pre>
  
  <p>Can anybody help ?</p>
  
  <p>I am new to the topic. So, please don't mind.</p>