diff --git a/osfooler_ng/osfooler_ng.py b/osfooler_ng/osfooler_ng.py
index a244221..230a799 100644
--- a/osfooler_ng/osfooler_ng.py
+++ b/osfooler_ng/osfooler_ng.py
@@ -774,15 +774,15 @@ def cb_nmap(i, payload):
         payload.set_verdict(nfqueue.NF_ACCEPT)
     return 0
 
-def init(queue):
+def init(mode, nfq_num):
   q = nfqueue.queue()
-  if (queue == 0):
+  if (mode == 0):
     q.set_callback(cb_nmap)
     print "      [->] %s: nmap packet processor" % multiprocessing.current_process().name
-  if (queue == 1 and (opts.osgenre or (opts.details_p0f and opts.osgenre))):
+  if (mode == 1):
     q.set_callback(cb_p0f)
     print "      [->] %s: p0f packet processor" % multiprocessing.current_process().name
-  q.fast_open(queue, AF_INET)
+  q.fast_open(nfq_num, AF_INET)
   try:
     q.try_run()
   except KeyboardInterrupt,err:
@@ -836,6 +836,10 @@ def main():
                     action='store', dest='details_p0f', help="choose p0f v2 Details")
   parser.add_option('-i', '--interface', action='store',
                     dest='interface', help="choose network interface (eth0)")
+  parser.add_option('-q', '--nfq_num', action='store',
+                    dest='nfq_num', default=0, help="nfqueue number")
+  parser.add_option('-x', '--skip-iptables', action='store_true',
+                    dest='skip_iptables_conf', default=False, help="don't touch iptables rules")
   parser.add_option('-s', '--search', action='store',
                     dest='search', help="search OS in nmap/p0f v2 db")
   parser.add_option('-u', '--updatedb', action='store_true',
@@ -928,23 +932,25 @@ def main():
       sys.exit(' [+] Aborting...')
 
   if (not opts.details_p0f and opts.osgenre):
-      print " [i] You've only selected p0f OS genre. Details will be chosen randomly every packet from the list bellow"
-  
+    print " [i] You've only selected p0f OS genre. Details will be chosen randomly every packet from the list bellow"
+
   # Start activity
   print " [+] Activating queues"
   procs = []
   # nmap mode
   if opts.os:
-    os.system("iptables -A INPUT -j NFQUEUE --queue-num 0")
-    proc = Process(target=init,args=(0,))
+    if not opts.skip_iptables_conf:
+      os.system("iptables -I INPUT -i {interface} -j NFQUEUE --queue-num {nfq_num}".format(interface=interface, nfq_num=opts.nfq_num))
+    proc = Process(target=init,args=(0, opts.nfq_num))
     procs.append(proc)
     proc.start()
   # p0f mode
   if (opts.osgenre):
     global home_ip
     home_ip = get_ip_address(interface)
-    os.system("iptables -A OUTPUT -p TCP --syn -j NFQUEUE --queue-num 1")
-    proc = Process(target=init,args=(1,))
+    if not opts.skip_iptables_conf:
+      os.system("iptables -I OUTPUT -p TCP --syn -j NFQUEUE --queue-num {nfq_num}".format(nfq_num=opts.nfq_num))
+    proc = Process(target=init,args=(1, opts.nfq_num))
     procs.append(proc)
     proc.start()
   # Detect mode
@@ -955,11 +961,15 @@ def main():
   except KeyboardInterrupt:
       print
       # Flush all iptabels rules
-      os.system("iptables -F")
+      # os.system("iptables -F")
+      if opts.os and not opts.skip_iptables_conf:
+        os.system("iptables -D INPUT -i {interface} -j NFQUEUE --queue-num {nfq_num}".format(interface=interface, nfq_num=opts.nfq_num))
+      if opts.osgenre and not opts.skip_iptables_conf:
+        os.system("iptables -D OUTPUT -p TCP --syn -j NFQUEUE --queue-num {nfq_num}".format(nfq_num=opts.nfq_num))
       print " [+] Active queues removed"
       print " [+] Exiting OSfooler..."
       #for p in multiprocessing.active_children():
       #  p.terminate()
 
 if __name__ == "__main__":
-  main()
\ No newline at end of file
+  main()
