Skip to content

Instantly share code, notes, and snippets.

@aliminati
Created September 20, 2012 01:47
Show Gist options
  • Save aliminati/3753513 to your computer and use it in GitHub Desktop.
Save aliminati/3753513 to your computer and use it in GitHub Desktop.
Install squid
#!/bin/bash
# install squid
apt-get install squid3
# Backup settingan default
mv /etc/squid3/squid.conf /etc/squid3/squid.conf.bak
# Tulis config baru
cat > /etc/squid3/squid.conf <<END
#cache website yang diakes
cache allow all
#bolehkan koneksi dari mana saja
http_access allow all
#buka port 8080
http_port 8080 transparent
#buka port 3128
http_port 3128 transparent
#jadikan proxy super anonimity :D
forwarded_for off
#nama reverse query
visible_hostname koreng.tk
END
# Restart squid
service squid3 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment