Tagged: netfilterqueue
- This topic has 3 replies, 2 voices, and was last updated 4 years, 3 months ago by Diego Pérez.
- AuthorPosts
- July 28, 2020 at 1:52 am #43167Mbg891Participant
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!
July 28, 2020 at 4:25 am #43185Diego PérezModeratorHi!
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!
DiegoJuly 28, 2020 at 9:39 pm #43224Mbg891ParticipantDiego,
That fixed my problem! 🙂
Thank you very much, you are helpful as always.
July 29, 2020 at 3:49 am #43233Diego PérezModeratorYou’re welcome!
Greetings!
Diego - AuthorPosts
- You must be logged in to reply to this topic.