Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server application that does not remove idle connections (resulting from for example client or communication failures). Is it possible to configure iptables to monitor activity on sockets and close connections haven't had any activity for a specified amount of time?

share|improve this question

migrated from Mar 9 '10 at 4:47

This question came from our site for professional and enthusiast programmers.

I don't believe there is anything iptables can do about this. Iptables generally just operates on packets being pass through the kernel.

share|improve this answer

I think you can use tcpkill to kill connections. On debian you can find it on the dsniff package.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.