1. Should be logged in as root or run this command in your console:
2. Update and upgrade the VPS, run this command in your console:
3. Install Squid Proxy, run this command in your console:
4. Replace
* Make sure you allow listening port on your firewall
6. FINALLY, reboot your VPS, run this command in your console:
Want to check your proxy?
Go here: You do not have permission to view the full content of this post. Log in or register now.
Code:
sudo su
2. Update and upgrade the VPS, run this command in your console:
Code:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get full-upgrade -y && apt-get --fix-missing install -y && apt-get autoremove -y && reboot
3. Install Squid Proxy, run this command in your console:
Code:
apt install squid -y
4. Replace
/etc/squid/squid.conf, with this:
Code:
acl localnet src 0.0.0.1-0.255.255.255 # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8 # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10 # RFC 6598 shared address space (CGN)
acl localnet src 169.254.0.0/16 # RFC 3927 link-local (directly plugged) machines
acl localnet src 172.16.0.0/12 # RFC 1918 local private network (LAN)
acl localnet src 192.168.0.0/16 # RFC 1918 local private network (LAN)
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl Safe_ports port 110
http_access deny !safe_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
acl my_ipv4 dst x.x.x.x/24 # Replace x.x.x.x with your VPS IPv4 address
http_access allow my_ipv4
http_access deny all
http_port 8000
coredump_dir /var/spool/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
* Make sure you allow listening port on your firewall
6. FINALLY, reboot your VPS, run this command in your console:
Code:
reboot
Want to check your proxy?
Go here: You do not have permission to view the full content of this post. Log in or register now.