https://www.metahackers.pro/spoof-http-header-using-squid-proxy/
ssh <user>@<IP_server>
ssh pi@192.168.12.35
apt-get install squid
mkdir /var/www/html/squid
touch /var/www/html/squid/logs/access.log
touch /var/www/html/squid/logs/cache.log
touch /var/www/html/squid/logs/store.log
chmod 777 /var/www/html/squid/*
chmod 777 /var/www/html/squid/*/*
chmod 777 /var/www/html/squid/*/*/*
chmod 777 /var/www/html/squid/*/*/*/*
chmod 777 /var/www/html/squid/*/*/*/*/*
chown proxy:proxy /var/www/html/squid/*
chown proxy:proxy /var/www/html/squid/*/*
chown proxy:proxy /var/www/html/squid/*/*/*
chown proxy:proxy /var/www/html/squid/*/*/*/*
chown proxy:proxy /var/www/html/squid/*/*/*
/*/*
squid -k check
touch /etc/squid/squid_passwd
htpasswd /etc/squid/squid_passwd proxy
apt-get install apache2-utils
service squid start
=======================================
apt-get clean
apt-get update
apt-get upgrade
0000000000000 CLEAN 00000000000000
apt-get purge nama_aplikasi
apt-get autoremove
apt-get dist-upgrade
apt-get autoremove
apt-get imstall =f
apt-get autoremove
============ REPO ===============
sudo nano /etc/apt/sources.list
deb http://kartolo.sby.datautama.net.id/raspbian/raspbian stretch main contrib non-free rpi
#deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
sudo apt update
sudo apt upgrade -y
sudo apt update && upgrade
--------------- SQUID -----------------------
-A PREROUTING –s 192.168.12.0/24 –p tcp –dport 80 –j REDIRECT –to-port 2020
sudo systemctl status squid
sudo systemctl start squid
sudo systemctl enable squid
--------------------------------------
sudo apt -y install squid
sudo systemctl start squid
sudo systemctl enable squid
sudo systemctl status squid.service
============ REBUILD SQRID =================
https://www.howtoforge.com/how-to-rebuild-the-squid-2.6-debian-package-with-support-for-x-forwarded-for-headers
apt-get install devscripts build-essential fakeroot
apt-get install build-essential fakeroot devscripts gawk gcc-multilib dpatch
cd /usr/src
apt-get source squid
apt-get build-dep squid
apt-get build-dep ssl
apt-get build-dep openssl
apt-get build-dep wccp
apt-get build-dep wccpv2
apt-get source squid
apt-get install libssl-dev
find -iname "rules"
======================= APHACE2 =========================
# /etc/init.d/apache2 restart
$ sudo /etc/init.d/apache2 restart
$ sudo service apache2 restart-------------------
-----------------------------------------------------------------------------
cat /var/www/html/squid/logs/access.log | ./squidmon.py
cat /var/log/squid/access.log | python squidmon.py
tail -f /var/www/html/squid/logs/access.log
========================================================================
sudo apt-get install apache2-utils
Create a passwd file, and change the ownership to the Squid user proxy:
sudo touch /etc/squid/passwd
sudo chown proxy: etc/squid/passwd
sudo htpasswd /etc/squid/passwd newuser
auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Squid Basic Authentication
auth_param basic credentialsttl 2 hours
acl auth_users proxy_auth REQUIRED
http_access allow auth_users
8888888888888888888888888888888888888
https://phoenixnap.com/kb/setup-install-squid-proxy-server-ubuntu
88888888888888888888888 SSL 8888888888888888888888
https://elatov.github.io/2019/01/using-squid-to-proxy-ssl-sites/
sudo /usr/lib/squid/ssl_crtd -c -s /var/lib/ssl_db
chown proxy:proxy -R /var/lib/ssl_db
88888888888888888
No comments:
Post a Comment