themighty1 / lpfw

Linux Personal Firewall
113 stars 22 forks source link

lpfw repeatable segmentation fault after short time #1

Closed arlsr closed 9 years ago

arlsr commented 9 years ago

After successfully running lpfw for a short time, it terminates. The last messages in the console are:

nfq_handle - raddr: 123.123.123.123 laddr:10.123.123.123
socket not found in cache

Strace:

socket not found in cache 
 <unfinished ...>
+++ killed by SIGSEGV +++
themighty1 commented 9 years ago

Thanks for reporting. Sorry it didnt work out for you. lpfw must produce a core dump. If there is no "core" file, I'm afraid it will be impossible for me to debug, because on my system it doesnt crash like that.

themighty1 commented 9 years ago

Also, as a reminder. If lpfw crashes, your internet connection will remain blocked. To unblock, run sudo iptables -F

arlsr commented 9 years ago

I'm trying to work out why it's not producing a core dump.

arlsr commented 9 years ago

Oh it's due to IPv6 being disabled and lpfw tries TCP6 if the socket isn't found. My mistake, sorry. I think the real issue is why it's not finding the socket.

themighty1 commented 9 years ago

@arlsr You have an interesting use case. How exactly did you disable IPv6? Maybe I should put in my code some detection for cases like yours.