Connection failure to websites

Connection failure to websites

Issues

When I access website, it is displaying connection fail error “Connection to 192.168.27.30:80 failed
When I access https://abc.safesquid.com/ via proxy and login using my corporate email ID, it is displaying connection fail error “Connection to abc.safesquid.com:443 failed

Root Causes

If the website which you are trying to reach is not up
If you unable to reach to the particular website because of internet slowness issue.
Troubleshooting
Case1:
Check whether the website is opening without proxy configuration inside browser (No proxy in the middle).
If the website is not opening without proxy, then it is not the problem with SafeSquid.
If it is opening without proxy, then run below command to verify whether the website is resolving or not.
  1. Command:  nslookup 192.168.27.30
To check SafeSquid server is connecting to 192.168.27.30 on port 80
  1. Command: telnet <WEBSITE> <PORT_TO_CONNECTON> 
you will get this output if the website is not able to connect
  1. telnet 192.168.27.30 80
  2. Trying 192.168.27.30...
  3. telnet: Unable to connect to remote host: No route to host
If the website is able to connect you will get below output
  1. telnet <WEBSITE> <PORT_TO_CONNECTON>
you will get this output if the website is not able to connect:
  1. Command:telnet 192.168.27.30 80
you will get this output if the website is able to connect
  1. root@dev:~# telnet 192.168.27.30 80
  2. Trying 192.168.27.30...
  3. Connected to 192.168.27.30.
  4. Escape character is '^]'.
Case 2: If you have server with on-premises environment integrated with directory services. DNS resolution is done by directory DNS server.
To check configuration on local internal network and its address record pointed on active directory (AD) or local DNS server
Run below commands on command prompt for abc.safesquid.com
  1. Command:  nslookup abc.safesquid.com
If the website is resolving to the local internal network e.g. (10.10.11.78,10.10.128.106)
You have to do the conditional forwarding to safesquid local caching DNS server
Go to the path: /etc/bind/
and create a file
  1. Command: vim named.conf
  2. root@swg:/etc/bind# vim named.conf
  3. // This is the primary configuration file for the BIND DNS server named.

  4. //

  5. // Please read /usr/share/doc/bind9/README.Debian.gz for information on the

  6. // structure of BIND configuration files in Debian, *BEFORE* you customize

  7. // this configuration file.

  8. //

  9. // If you are just adding zones, please do that in /etc/bind/named.conf.local

  10.  

  11. include "/etc/bind/named.conf.options";

  12. include "/etc/bind/named.conf.local";

  13. include "/etc/bind/named.conf.default-zones";

  14. include "/etc/bind/safesquid.dns.conf";

  15. include "/etc/bind/abc.safesquid.com";

  16. Go to the path
  17. Command: cd /etc/bind/
  18.  And create a file
  19. Command: vim abc.safesquid.co
  20. Add below lines
  21. zone "abc.safesquid.com" {

  22.   type forward;

  23.   forwarders {10.10.124.101;};

  24. };
Command to restart bind9 service:
  1. Command:/etc/init.d/bind9 restart
verify whether the website is resolving to the local IP successfully or not.

    • Related Articles

    • DNS failure

      Issue: Via proxy sometimes occur an error "DNS Lookup for safesqddns.com failed". Root Causes If the FQDN of the website is incorrect. Local DNS server service is not running. If forwarder DNS server not able to resolve the query. If network service ...
    • Product Activation Failure

      Issues I uploaded my activation key, still SafeSquid UI is showing Failed to set Subscription details After uploading the activation key, I am getting the template on browser proxy server refusing connections Unable to see subscription details on ...
    • ISO installation Failure

      Issues When you misconfigured any of your DNS IP, Gateway or the NIC card, you will face issue as "Failed to retrieve the pre-configuration file". IP address which you assigned for SafeSquid proxy if blocked because of firewall, you will face issue ...
    • Standard Operating Procedure (SOP) for Troubleshooting Issues in your SafeSquid proxy server

      Purpose: To provide a consistent and effective approach to troubleshooting network connectivity and web server issues using key commands. Scope: This SOP applies to troubleshooting sessions involving DNS resolution, port connectivity, web server ...
    • Category update is not working

      Issues I am trying to add new websites to whitelist or black list category, but it is not updating Uploaded a new file with some websites and added to specific category, but i did not find that websites in the respective category SafeSquid interface ...