Search squid archive

Re: manual proxy configuration ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 As I expect and suspected my exposed box had been compromised. I used
a knoppix DVD they can't write to/effing alter  it for physical
reasons. Their efforts would be futile, senseless.

 If I get the time I will write up a nicer document, but since I do
believe in karma I want to help other people running into the same
problem

// __ download squid and check the md5 and sha1 hashsums

 http://www.squid-cache.org/Download/
 http://www.squid-cache.org/Versions/
 Stable Versions (right now):

 http://www.squid-cache.org/Versions/v4/
~
// __ untar and gunzip the sources

 ...
~
// __ compilation of sources based on

 https://wiki.squid-cache.org/SquidFaq/CompilingSquid

_PRFX="<wherever you want to install squid on a permanent drive>"

_VER="squid-4.15" # used as prefix for log files

cd "${_VER}"
pwd

_DT=$(date +%Y%m%d%H%M%S)
_LOG_FL="${_VER}_configure_${_DT}.log"
echo "// __ \$_LOG_FL: |${_LOG_FL}|"

time(
./configure --prefix="${_PRFX}" \
            --localstatedir="${_PRFX}/var" \
            --libexecdir="${prefix}/lib/squid3" \
            --datadir="${prefix}/share/squid3" \
            --sysconfdir="${_PRFX}/etc/squid3" \
            --with-default-user=proxy \
            --with-logdir="${_PRFX}/var/log/squid3" \
            --with-pidfile="${_PRFX}/var/run/squid3.pid" >>  "${_LOG_FL}" 2>&1
) 2>> "${_LOG_FL}"
echo "~" >> "${_LOG_FL}"


// __ running: make

_DT=$(date +%Y%m%d%H%M%S)
_LOG_FL="${_VER}_make_${_DT}.log"
echo "// __ \$_LOG_FL: |${_LOG_FL}|"

echo "// __ make -j1:" >> "${_LOG_FL}"
echo " " >> "${_LOG_FL}"
time(make -j1 >> "${_LOG_FL}" 2>&1) 2>> "${_LOG_FL}"
echo "~" >> "${_LOG_FL}"

tail -n 10 "${_LOG_FL}"

// __ running: sudo make install

_DT=$(date +%Y%m%d%H%M%S)
_LOG_FL="${_VER}_make_install_${_DT}.log"
echo "// __ \$_LOG_FL: |${_LOG_FL}|"

echo "// __ make install:" >> "${_LOG_FL}"
echo " " >> "${_LOG_FL}"
time(sudo make install >> "${_LOG_FL}" 2>&1) 2>> "${_LOG_FL}"
echo "~" >> "${_LOG_FL}"

tail -n 10 "${_LOG_FL}"
~
// __ reaching out to your install base

_SQUID3_HOME="/media/knoppix/squid3/4.15/"
PATH="${_SQUID3_HOME}/sbin:$PATH"

which squid

squid --version

$ which squid
/media/knoppix/squid3/4.15/sbin/squid

$ squid --version
Squid Cache: Version 4.15
Service Name: squid
configure options:  '--prefix=/media/knoppix/squid3/4.15'
'--localstatedir=/media/knoppix/squid3/4.15/var'
'--libexecdir=/lib/squid3' '--datadir=/share/squid3'
'--sysconfdir=/media/knoppix/squid3/4.15/etc/squid3'
'--with-default-user=proxy'
'--with-logdir=/media/knoppix/squid3/4.15/var/log/squid3'
'--with-pidfile=/media/knoppix/squid3/4.15/var/run/squid3.pid'

$ sudo squid

...
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux