Here's a simple patch that will log when maxperip and
maxperc limits are reached.
In courier as is, when one of these limits is reached,
the connection is closed and nothing is logged.
diff -ur courier-0.43.1/tcpd/tcpd.c courier-0.43.1.arijort/tcpd/tcpd.c
--- courier-0.43.1/tcpd/tcpd.c Fri Jul 18 20:16:38 2003
+++ courier-0.43.1.arijort/tcpd/tcpd.c Wed Oct 22 21:37:35 2003
@@ -1605,10 +1605,12 @@
if (j >= sizeof(*addr) &&
++ipcnt >= maxperip)
+ fprintf(stderr, "Reached maxperip limit: %d\n", maxperip);
_exit(0); /* Too many from same IP address */
if ( j >= sizeof(*addr)-1 &&
++ccnt >= maxperc)
+ fprintf(stderr, "Reached maxperc limit: %d\n", maxperc);
_exit(0); /* Too many from same netblock */
}
Thanks,
ari
--
Ari Jort
[EMAIL PROTECTED]
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users