Mensaje por sysop » Vie Ene 03, 2020 9:19 am
access pasword in squid is not confllictve with redireccion alway wants used a not same port. for before example i to use firewall to close access, good in this port we can use to access througt this example use plain text password
another method "crasheaban" squid.
compile
Code: Select all
./configure --x-includes=/usr/include --x-libraries=/usr/lib --with-default-user=proxy --with-logdir=/var/log/squid --with-pidfile=/var/run/squid.pid --enable-storeio=ufs,aufs,diskd --enable-linux-netfilter --enable-removal-policies=lru,heap --enable-gnuregex --enable-follow-x-forwarded-for --enable-x-accelerator-vary --enable-zph-qos --enable-delay-pools --enable-snmp --enable-underscores --with-openssl --enable-ssl-crtd --enable-http-violations --enable-async-io=24 --enable-storeid-rewrite-helpers --with-large-files --with-libcap --with-netfilter-conntrack --with-included-ltdl --with-maxfd=65536 --with-filedescriptors=65536 --with-pthreads --without-gnutls --without-mit-krb5 --without-heimdal-krb5 --without-gnugss --disable-icap-client --disable-wccp --disable-wccpv2 --disable-dependency-tracking --enable-auth --disable-epoll --disable-ident-lookups --disable-icmp
with only a change " enble-auth"
make all
make install
Code: Select all
auth_param basic program /usr/local/squid/auth/jeck
auth_param basic children 5 startup=5 idle=1
auth_param basic realm Proxy Authentication Required
auth_param basic credentialsttl 2 hours
acl auth_users proxy_auth
http_access allow auth_usersCode: Select all
#!/bin/bash
RUTA=/usr/local/squid/auth/conectados.log
read U P
if [ ! -z $U ]
then
echo -n "`date` $U " >> $RUTA
egrep "$U#:#$P" /usr/local/squid/auth/sqpasswd >> /dev/null && echo OK || echo ERR
SW=`grep -i -c -e"$U#:#$P" /usr/local/squid/auth/sqpasswd`
if [ $SW != "0" ]
then
echo " Access $U OK" >> $RUTA
else
echo " ACCESS ERROR $U" >> $RUTA
fi
file sqpasswd
Code: Select all
user#:#password
user2#:#passwordcreate conectados.log
touch conectados.log
perms for you
this is the unique that not crashes in my commpilation
you need the certificate too becouse is the same cauch that redirection
sysop