Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43167
    Mbg891
    Participant

    Good day,

    I am on the code_injector tutorial, and after accidentally messing around with the pip package I think I busted my netfilterqueue.

    I’m running the iptables (iptables -I INPUT -j NFQUEUE –queue-num 0 and iptables -I OUTPUT -j NFQUEUE –queue-num 0), that part is fine… but when I go to run my code I am getting:

    Traceback (most recent call last):
    File “code_injector.py”, line 42, in <module>
    queue.bind(0, process_packet)
    File “netfilterqueue.pyx”, line 182, in netfilterqueue.NetfilterQueue.bind (netfilterqueue.c:4388)
    OSError: Failed to create queue 0.

    Any idea why this OS Error is popping up? I do want to think it has something to do with the netfilterqueue.pyx file, which I cannot locate for the life of me to view line 182 and try to dig further… as much as I love this puzzle of figuring things out, I’ve exhausted my attempts.

    Thanks!

    #43185
    Diego PérezDiego Pérez
    Moderator

    Hi!
    That happened because once you have run the code it might crashed and queue 0 is unavailable, the solution is to reboot your machine and it will be abalable again.

    Hope it helps!
    Diego

    #43224
    Mbg891
    Participant

    Diego,

    That fixed my problem! 🙂

    Thank you very much, you are helpful as always.

    #43233
    Diego PérezDiego Pérez
    Moderator

    You’re welcome!

    Greetings!
    Diego

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.