понедельник, 26 декабря 2016 г.

How-to install SQUID + SSL

faq squid ssl

# # # INSTALL SQUID + SSL


apt install libssl-dev libxml2-dev libgcrypt11-dev libssl-dev libxml2-dev \
libxslt1.1 git fakeroot build-essential devscripts libgnutls28-dev




wget http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.22.tar.gz

tar -xf squid-3.5.22.tar.gz

cd  squid-3.5.22/

sudo mkdir /opt/squid/openssl && sudo chmod 777 -R /opt/squid

sudo ./configure --prefix=/opt/squid --enable-ssl --enable-ssl-crtd \
 --with-openssl=/opt/squid/openssl

sudo make

sudo make install

sudo mkdir /opt/squid/var/lib

sudo /opt/squid/libexec/ssl_crtd -c -s /opt/squid/var/lib/ssl_db

sudo chown -R nobody /opt/squid/var/lib/ssl_db

cd /opt/squid/etc

sudo openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -keyout \ squidCA.pem  -out squidCA.pem

sudo openssl x509 -in squidCA.pem -outform DER -out squidCA.der

 # START SQUID:
sudo /opt/squid/sbin/squid

 # stop squid:
sudo killall squid

cd /var/spool/squid

sudo /opt/squid/sbin/squid -z

sudo /opt/squid/sbin/squid

cd $HOME

sudo netstat -ntplu | grep squid

squid.conf

privoxy


sudo nano /etc/privoxy/default.action
________________________________________
 /.*(count|track|compteur|(?удаляем "|track"
--------------------- -------------------- ---------------------
/.*(count|compteur|(?рестартуем privoxy 
systemctl status privoxy.service

Комментариев нет:

Отправить комментарий

h265.sh

#!/bin/bash file="../mp4" if [ -d $file ]; then         echo "  Директория существует :-) "         for i in *.mp4; do f...