Questions
Hi,
I am a new guy to linux and netfilter/proc.
I am working on a program right now, its main purpose is develope a module to peek every outgoing packet to log the timestamp information. I hook this module at the netfilter's POST_ROUTING hook.
Questions:
When my module is hooked and begin to run, I can not use netscape, ssh, .etc anymore. The typical result is: I type: ssh <hostname> -l username, the machine seems to stop, no any response except I stop my module. It seems every IP packet were stop by somebody. In my module, I don't drop any packet, for every packet I get, I just record the timestamp and return NF_ACCEPT. Thanks
ping
Signature · 6 lines
__________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup Search Smarter - get the new eXact Search Bar for free! http://www.exactsearchbar.com/
Quoted 6 lines · Xiaonan Lu
When my module is hooked and begin to run, I can not use netscape, ssh, .etc anymore. The typical result is: I type: ssh <hostname> -l username, the machine seems to stop, no any response except I stop my module. It seems every IP packet were stop by somebody. In my module, I don't drop any packet, for every packet I get, I just record the timestamp and return
NF_ACCEPT.
Verify your module. The problem is most likely to be found there.
Hint: Debugging kernel modules is very easily done using user-mode-linux <urlhttp://user-mode-linux.sourceforge.net/>. This allows you to run and debug the kernel as if it was no more than a plain application.
Regards
Henrik