Re: [LINUX:1531] Sansurlu IPler:)

Murat Arslan (arslanm@arslanm.linux-tr.EU.org)
Tue, 31 Mar 1998 11:58:31 +0300 (EEST)


On Tue, 31 Mar 1998, HorneT wrote:

> Merhabalar,
>
> Okuldaki network'te Linux'a sadece benim verdiGim IPlerden telnet ile
> baGlanIlabilmesini ve bunun dI$Indaki hostlarIn telnet ile girememesini
> istiyorum.Bunu nasIl yapabilirim?(/etc/hosts.*??)
> $imdiden te$ekkUrler...

man 5 hosts_access, man 5 hosts_options

orneGin soyle biSey yapabiLirsiniz.
/etc/hosts.deny:
in.telnetd: ALL: twist exec /usr/local/bin/tndeny
wu.ftpd: ALL: twist exec /usr/local/bin/ftpdeny

/etc/hosts.allow:
ALL: localhost, 127.0.0.

/usr/local/bin/tndeny:
#!/bin/sh
echo -e \aYou're not authorized!

/usr/local/bin/ftpdeny:
#!/bin/sh
echo 421 -e \aYou're not authorized!

vs vs..

> HorneT
__
Murat Arslan
PGP KeyID : 2047/673351F1
For PGPkey: finger arslanm@gate.marketweb.net.tr
Key FPrint: F1C6 E3F2 91C2 CD98 440B 4073 DFBC 532F