-
Notifications
You must be signed in to change notification settings - Fork 99
Crash in iptables OUTPUT chain #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I ran into a similar issue with version 0.8 and 0.6 on Ubuntu 14.04; PREROUTE works fine, POSTROUTE crashes. Seems ok so far on 0.7 |
Problem is at line 65 of netfilterqueue.pyx: self.hw_addr = self._hw.hw_addr When sending packets, __pyx_t_2 = __pyx_v_self->_hw->hw_addr;
memcpy(&(__pyx_v_self->hw_addr[0]), __pyx_t_2, sizeof(__pyx_v_self->hw_addr[0]) * (8 - 0)); |
I ran into the same issue using OUTPUT. Thanks for the workaround. |
Thanks for the details. I'll see if I can duplicate and fix within a few days. |
The fix leaves calling and parsing of nfq_get_packet_hw data until the I've uploaded 0.8.1 to Pypi but reviews and improvements are welcome. Thanks for reporting this, all. |
Thanks @mattfox I experience no more crash with 0.8.1. |
Hi,
I'm writing a simple code to capture the packet, and print the packet, just as the example code which you give to us. It works fine as the INPUT chain of iptables, but when I change to capture the output packet with OUTPUT chain of iptables, it crash and show the 'segmentation fault'.
I'm working on Ubuntu 16.04
The text was updated successfully, but these errors were encountered: