HTTP Restricted Access
Christos Ricudis
Christos_Ricudis at p98.f11.n413.z2.fidonet.gr
Sun Nov 23 22:38:26 EET 1997
Hello Kostas!
In <LINUX-USERS.GR> Kostas Lialiambis wrote:
KL> #!/bin/sh
KL> /sbin/ipfwadm -I -f
KL> for i in $(netstat -t -n|grep :80|grep ESTABLISHED \
KL> |tr -s " "|cut -d " " -f 5|cut -d ":" -f 1)
KL> do /sbin/ipfwadm -I -i deny -S $i/32 -D 0.0.0.0/0 80 -P tcp -y
Akomh kalytera, kane ena wrapper.
8a kaleis to httpd soy apo to /etc/inetd.conf me th xrhsh enos wrapper se C o
opoios me th xrhsh ths getpeername(2) (poy 8a thn kaleseis dinontas san
parametro to file descriptor ths standard input) 8a briskei thn IP address toy
apenanti zwoy, kai analogws me ta energa connections (ta opoia eite 8a ta
briskeis on the fly diabazontas to /proc/net/tcp eite 8a ta krataei o idios o
wrapper me prwtoboulia toy) 8a kaleis ton httpd (an 8ewreis oti prepei na
epitrepseis thn klhsh) alliws 8a stelneis aplws sto standard output ena error
me ton idio tropo poy to kanei to httpd....
Christos Ricudis, ricudis at paiko.gr 2:413/11.0.
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list