Unable to open safesquid.cfg

unable to open safesquid.cfg in firefox browser.



the problem with not opening safesquid.cfg is that,
first you need to switch to root user using
sudo -i command.
We need to start safesquid in putty using the above command
Command - /etc/init.d/safesquid start
for seeing this will be start or not use above command
command - netstat -nltop
Then open safesquid.cfg.

As per your Error Screenshot: The Proxy Server is Refusing Connection
This On One hand means that your Browser is able to reach out to the Proxy Server but cannot connect to the Port.
This Happens,

  1. Proxy Server Service is Not Running (In this case SafeSquid Service is Not Running or not Running on the Port that you specified in the Browser.)
  2. Firewall is Enabled is Blocking the Port.

Connection Refused
are well known Error messages which means
Service is Not Running (atleast on the port that you connected to)
OR
Firewall is disallowing you to connect to it.

Please Check Current Running Network Services
using command

  • ALL TCP Network Service
netstat -nltop

Sample Output:

root@swg-t-1:/# netstat -nltop
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name     Timer
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      2456/safesquid       off (0.00/0/0)
tcp        0      0 10.0.1.92:53            0.0.0.0:*               LISTEN      741/named            off (0.00/0/0)
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      741/named            off (0.00/0/0)
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      643/systemd-resolve  off (0.00/0/0)
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      775/sshd             off (0.00/0/0)
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      741/named            off (0.00/0/0)
tcp        0      0 127.0.0.1:2812          0.0.0.0:*               LISTEN      788/monit            off (0.00/0/0)
tcp6       0      0 :::8080                 :::*                    LISTEN      2456/safesquid       off (0.00/0/0)
tcp6       0      0 :::8080                 :::*                    LISTEN      2456/safesquid       off (0.00/0/0)
tcp6       0      0 :::22                   :::*                    LISTEN      775/sshd             off (0.00/0/0)
tcp6       0      0 ::1:2812                :::*                    LISTEN      788/monit            off (0.00/0/0)

  • ALL TCP & UDP Network Service
netstat -nltuop

Check if SafeSquid Service is Running or Not

If Not, Start SafeSquid Service

/etc/init.d/safesquid start

And Restart

/etc/init.d/safesquid restart