Re: Force close on unattended SSH/SFTP connections

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



Hi,

On Thu, Nov 20, 2008 at 19:14, Yanagisawa, Koji <yanagik317@xxxxxxxxxxxx> wrote:
> I need unattended OpenSSH and its SFTP connections to be closed after a
> while (say, in 10 minutes).

I believe you can do that with iptables, using the ipt_recent module.
I did not test it or did it before, but looking at the man page it
looks like a tool that could be used to implement just that.

See "man iptables" and look for "recent". The examples usually do the
opposite (block someone for a certain amount of time), but you should
be able to come up with the rules to do what you want on your own.

See also http://snowman.net/projects/ipt_recent/

HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux