----- Original Message -----
From: "Andy Farkas" <[EMAIL PROTECTED]>
To: "Mark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 1:01 PM
Subject: Re: Restricting ICMP
> Mark wrote:
>
> > I am just not very fond of the idea of local users starting ICMP wars
over
> > the net, using my server :) I have already had an instance where a
web-user
> > did an excessive ping attack on one of his buddies. And, naturally, I
want
> > to prevent that. The chmod u-s idea mentioned here, was a good idea.
Except
> > that, prefereably, I'd like all of wheel to have access, and the rest
not.
> > And that may be harder to implement.
>
> If your users play up, put your BOFH hat on and lart them.
>
> chmod'ing /sbin/ping is useless - users can compile their own version of
> ping.
Is it? I thought it was setuid root for a reason :o)
[EMAIL PROTECTED]:/home/mrboo$ ls -l /sbin/ping
-r-sr-xr-x 1 toor wheel 469492 Aug 11 14:57 /sbin/ping
No but really, copy ping to your user home, as a user, from
/usr/src/sbin/ping and compile it yourself...
[EMAIL PROTECTED]:/home/mrboo/ping$ make
Warning: Object directory not changed from original /usr/home/mrboo/ping
cc -O -pipe -march=pentium2 -DIPSEC -Wsystem-headers -Werror -Wall -Wno-f
ormat-y2k -Wno-uninitialized -c ping.c
./ping
cc -O -pipe -march=pentium2 -DIPSEC -Wsystem-headers -Werror -Wall -Wno-f
ormat-y2k -Wno-uninitialized -o ping ping.o -lm -lipsec
bonegzip -cn ping.8 > ping.8.gz
[EMAIL PROTECTED]:/home/mrboo/ping$ ./ping bone
ping: socket: Operation not permitted
[EMAIL PROTECTED]:/home/mrboo/ping$
I just woke up, so it may well be I am just being stupid :o)
> Make your users aware that abusing ping (and other net resources) will get
> them kicked and banned from your system.
>
> --
>
> :{ [EMAIL PROTECTED]
>
> Andy Farkas
> System Administrator
> Speednet Communications
> http://www.speednet.com.au/
>
>
>
> _______________________________________________
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"