0

Is there a way with iptables to drop specific established connections after X hours?

We have an application with limited connection support, and occasionally we see some tcp sessions that shouldn't be established for longer than a few seconds, usually hanging around indefinitely when it happens (perhaps some odd network issue). This causes the app to block future requests :(

Since the box is doing port forwarding to the remote application, I figured I could just get iptables to drop these bad sessions, but I can't seem to find a way of doing that for a specific host/port combo (rather than the global conntrack timeout which would affect other things).

AndyC
  • 233
  • 4
  • 14

0 Answers0