1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
Cheng-Lung Sung
17054745bf - Update to 0.6
PR:		ports/104770
Submitted by:	Joe Horn <joehorn_AT_leobbs dot net>
Approved by:	maintainer (Jui-Nan Lin)
2006-11-03 16:01:32 +00:00
Rong-En Fan
0db78c0234 (c) Rong-En Fan's, http://rafan.infor.org/patch/sshit.diff
In the code, the author uses two level hash, and IPC::Shareable
will create a share memory for those anonymouse object (the second
level hash). Those share memory will not be removed when sshit exists
or when the rule is removed. Running sshit for a period of time,
the number of share memory and semaphore will reach the limit for
one process, then sshit.pl can not get more share memory, thus it
quits. The only solution is to manually remove all share memory and
semaphore.

This is somehow the limitation of using IPC::Shareable. To workaround
this problem. The patch will removes associated firewall rules when
syslogd closes the fd [1], and use IPC::Shareable->clean_up
to remove all shm/sem created by this process. I also set 'destroy'
to 1 so the shm tied to %list can be removed.

The second hunk is to fix a typo for ipfw2. Due to this typo,
ip in ipfw2's table cat not be removed. That means once blocked,
the client is blocked until reboot or admin cleanup the table.

[1] if any log files are rotated, newsyslog sends a HUP to syslogd,
    syslogd will close *all* current open fd and reopen them. At
    that time, the sshit.pl's stdin will be closed, thus the main
    program will exit.

PR:		ports/100726
Submitted by:	Alex Samorukov <samm at os2.kiev.ua>
Approved by:	Jui-Nan Eric Lin <jnlin at csie.NCTU.edu.tw> (maintainer)
Obtained from:	rafan
2006-07-27 10:32:56 +00:00
Vanilla I. Shu
0a3fde80af Add sshit 0.5, checks for SSH/FTP bruteforce and blocks given IPs.
PR:		ports/90603
Submitted by:	Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
2005-12-18 16:03:28 +00:00