Install package squid sudo apt install squid -y
Edit /etc/squid/squid.conf Update
http_access deny all
To
http_access allow all
http_port your-custom-port
Create file at /usr/lib/systemd/system
[Unit]
Description=Service to trigger Squid restart timer
[Service]
Type=oneshot
ExecStart=/bin/systemctl restart squid.service[Unit]
Description=Timer to restart Squid every 30 minutes
[Timer]
OnCalendar=*:0/30
Persistent=true
[Install]
WantedBy=timers.target