HTTP Restricted Access
Giannis Paterakis
jpat at egnatia.ee.auth.gr
Mon Nov 24 10:57:07 EET 1997
On Sun, 23 Nov 1997, Christos Ricudis wrote:
>
> 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.
> --
mia fora thelw na pei kati kapios re xrhsto kai na kaneis reply kai na
peis "SWSTOS!!!!!"
Gmorning:))
== Giannis Paterakis ==========================================================
Department of Mechanical Engineering
Aristotle University of Thessaloniki
Hellas
==================================================== jpat at egnatia.ee.auth.gr ==
PGP key: http://egnatia.ee.auth.gr/~jpat/pgp_public_key.asc
===============================================================================
--
====================================================================
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