#!/bin/bash
apt-get update
apt-get install squid3 -y
apt-get install squid -y
apt-get install figlet -y

clear

figlet disorder
sleep 3s

echo "Qual o ip do vps ?"
read ip

hostname=$(hostname)

cd /etc/squid*

echo "http_port 80"  > squid.conf
echo "http_port 8080" >> squid.conf
echo "visible_hostname $hostname" >> squid.conf
echo "acl block url_regex -i zxc.pm" >> squid.conf
echo "acl block url_regex -i zxc.rm" >> squid.conf
echo "acl block url_regex -i vba.nz" >> squid.conf
echo "acl block url_regex -i vba.pw" >> squid.conf
echo "acl block url_regex -i .xyz" >> squid.conf
echo "acl block url_regex -i ddns.net" >> squid.conf
echo "acl ip url_regex  $ip" >> squid.conf
echo "acl accept url_regex -i .com.br" >> squid.conf
echo "acl accept url_regex -i .com.sv" >> squid.conf
echo "acl all src 0.0.0.0/0" >> squid.conf
echo "http_access deny block" >> squid.conf
echo "http_access allow ip" >> squid.conf
echo "http_access allow accept" >> squid.conf
echo "http_access deny all" >> squid.conf

echo "Port 443" >> /etc/ssh/sshd_config

service ssh restart 

service squid restart 1> /dev/null 2>/dev/null

service squid3 restart 1> /dev/null 2>/dev/null

echo "Configurações terminadas crie um usuário e teste !"#!/bin/bash
apt-get update
apt-get install squid3 -y
apt-get install squid -y
apt-get install figlet -y

clear

figlet disorder
sleep 3s

echo "Qual o ip do vps ?"
read ip

hostname=$(hostname)

cd /etc/squid*

echo "http_port 80"  > squid.conf
echo "http_port 8080" >> squid.conf
echo "visible_hostname $hostname" >> squid.conf
echo "acl block url_regex -i zxc.pm" >> squid.conf
echo "acl block url_regex -i zxc.rm" >> squid.conf
echo "acl block url_regex -i vba.nz" >> squid.conf
echo "acl block url_regex -i vba.pw" >> squid.conf
echo "acl block url_regex -i .xyz" >> squid.conf
echo "acl block url_regex -i ddns.net" >> squid.conf
echo "acl ip url_regex  $ip" >> squid.conf
echo "acl accept url_regex -i .com.br" >> squid.conf
echo "acl accept url_regex -i .com.sv" >> squid.conf
echo "acl all src 0.0.0.0/0" >> squid.conf
echo "http_access deny block" >> squid.conf
echo "http_access allow ip" >> squid.conf
echo "http_access allow accept" >> squid.conf
echo "http_access deny all" >> squid.conf

echo "Port 443" >> /etc/ssh/sshd_config

service ssh restart 

service squid restart 1> /dev/null 2>/dev/null

service squid3 restart 1> /dev/null 2>/dev/null

echo "Configurações terminadas crie um usuário e teste !"#!/bin/bash
apt-get update
apt-get install squid3 -y
apt-get install squid -y
apt-get install figlet -y

clear

figlet disorder
sleep 3s

echo "Qual o ip do vps ?"
read ip

hostname=$(hostname)

cd /etc/squid*

echo "http_port 80"  > squid.conf
echo "http_port 8080" >> squid.conf
echo "visible_hostname $hostname" >> squid.conf
echo "acl block url_regex -i zxc.pm" >> squid.conf
echo "acl block url_regex -i zxc.rm" >> squid.conf
echo "acl block url_regex -i vba.nz" >> squid.conf
echo "acl block url_regex -i vba.pw" >> squid.conf
echo "acl block url_regex -i .xyz" >> squid.conf
echo "acl block url_regex -i ddns.net" >> squid.conf
echo "acl ip url_regex  $ip" >> squid.conf
echo "acl accept url_regex -i .com.br" >> squid.conf
echo "acl accept url_regex -i .com.sv" >> squid.conf
echo "acl all src 0.0.0.0/0" >> squid.conf
echo "http_access deny block" >> squid.conf
echo "http_access allow ip" >> squid.conf
echo "http_access allow accept" >> squid.conf
echo "http_access deny all" >> squid.conf

echo "Port 443" >> /etc/ssh/sshd_config

service ssh restart 

service squid restart 1> /dev/null 2>/dev/null

service squid3 restart 1> /dev/null 2>/dev/null

echo "Configurações terminadas crie um usuário e teste !"