conntrack ctexpire not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Everyone,

I am facing problem with ctexpire.

I want to do timeout for a particular TCP session.
Eg:-
I am forwarding packets from 192.168.1.2 to internet through my routing device.
I need to set timeout for the TCP session from 192.168.1.2->ANY.

So I added the iptables rule like this on my routing device
  iptables -A FORWARD -s 192.168.1.0/24  -i eth1   -p tcp -m conntrack
--ctstate ESTABLISHED --ctexpire 10   -j REJECT   --reject-with
tcp-reset

But this rule is not working.

Can anybody suggest solution for this?

Aswathi
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux