Difference between revisions of "Validate IP addresses and the systems are reachable on the network"

From Secure Web Gateway
Share/Save/Bookmark
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 81: Line 81:
 
|-
 
|-
 
|  
 
|  
root@sabproxy:~# nslookup sabproxy.safesquid.test<br/> Server:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1<br/> Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1#53
+
root@sabproxy:~# <code>nslookup sabproxy.safesquid.test</code><br/> Server:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1<br/> Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1#53
  
 
Non-authoritative answer:<br/> Name:&nbsp;&nbsp; sabproxy.safesquid.test<br/> Address: 192.168.221.222
 
Non-authoritative answer:<br/> Name:&nbsp;&nbsp; sabproxy.safesquid.test<br/> Address: 192.168.221.222
  
root@sabproxy:~# nslookup ad.safesquid.test<br/> Server:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1<br/> Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1#53
+
root@sabproxy:~# <code>nslookup ad.safesquid.test</code><br/> Server:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1<br/> Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1#53
  
 
Non-authoritative answer:<br/> Name:&nbsp;&nbsp; ad.safesquid.test<br/> Address: 192.168.221.1
 
Non-authoritative answer:<br/> Name:&nbsp;&nbsp; ad.safesquid.test<br/> Address: 192.168.221.1
Line 96: Line 96:
 
|-
 
|-
 
|  
 
|  
root@sabproxy:~# nslookup ad.safesquid.test<br/> Server:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1<br/> Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1#53
+
root@sabproxy:~# <code>nslookup ad.safesquid.test</code><br/> Server:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1<br/> Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1#53
  
 
*
 
*
Line 119: Line 119:
 
<code>'''/etc/bind/'''</code>
 
<code>'''/etc/bind/'''</code>
  
'''(Note: Monit service must be up)'''
+
'''(Note: Monit service must be running)'''
  
 
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px"
 
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px"
 
|-
 
|-
 
|  
 
|  
root@sabproxy:/usr/local/safesquid/security/dns# cat safesquid.dns.conf
+
root@sabproxy:/usr/local/safesquid/security/dns# <code>cat safesquid.dns.conf</code>
  
 
zone safesquid.test {<br/> &nbsp;type stub;<br/> &nbsp;masters {192.168.221.1;};<br/> &nbsp;};
 
zone safesquid.test {<br/> &nbsp;type stub;<br/> &nbsp;masters {192.168.221.1;};<br/> &nbsp;};
  
root@sabproxy:/etc/bind# cat safesquid.dns.conf
+
root@sabproxy:/etc/bind# <code>cat safesquid.dns.conf</code>
  
 
zone safesquid.test {<br/> &nbsp;type stub;<br/> &nbsp;masters {192.168.221.1;};<br/> &nbsp;};
 
zone safesquid.test {<br/> &nbsp;type stub;<br/> &nbsp;masters {192.168.221.1;};<br/> &nbsp;};
Line 136: Line 136:
 
'''If''' '''safesquid.dns.conf&nbsp;is empty, configure LDAP&nbsp;for SSO authentication from SafeSquid Web GUI [https://docs.safesquid.com/wiki/Integrate_Active_Directory_For_SSO_Authentication#Go_to.C2.A0LDAP_servers LINK]&nbsp; properly and then do above steps again to verify.'''
 
'''If''' '''safesquid.dns.conf&nbsp;is empty, configure LDAP&nbsp;for SSO authentication from SafeSquid Web GUI [https://docs.safesquid.com/wiki/Integrate_Active_Directory_For_SSO_Authentication#Go_to.C2.A0LDAP_servers LINK]&nbsp; properly and then do above steps again to verify.'''
  
'''Note: Monit service should be UP.'''
+
'''Note: Monit service should be running.'''
  
 
= Validate each of the systems has same time and preferably timezone =
 
= Validate each of the systems has same time and preferably timezone =
Line 147: Line 147:
 
|-
 
|-
 
|  
 
|  
root@sabproxy:~# ntpdate sabproxy.safesquid.test<br/> 17 Apr 11:31:44 ntpdate[20275]: the NTP socket is in use, exiting
+
root@sabproxy:~# <code>ntpdate sabproxy.safesquid.test</code><br/> 17 Apr 11:31:44 ntpdate[20275]: the NTP socket is in use, exiting
  
root@sabproxy:~# ntpdate 192.168.221.222<br/> 17 Apr 11:32:20 ntpdate[20276]: the NTP socket is in use, exiting
+
root@sabproxy:~# <code>ntpdate 192.168.221.222</code><br/> 17 Apr 11:32:20 ntpdate[20276]: the NTP socket is in use, exiting
  
 
|}
 
|}

Latest revision as of 13:24, 2 December 2019

Getting Started - The Preparatory Steps

To keep the discussion easy to understand and replicate, we will use an example, and set out the process in ordered sequence of steps. We will also include steps for validating to ensure if any of the steps may not have been correctly taken.

In our example

We are using a Linux based host for deploying our Kerberos based SafeSquid

  1. FQDN of our Linux host: sabproxy.safesquid.test
  2. IP address of our Linux host: 192.168.221.222

We have a Microsoft Windows AD setup

  1. FQDN of Microsoft AD Domain: safesquid.test
  2. FQDN of Domain Controller: ad.safesquid.test
  3. IP address of our Domain Controller: 192.168.221.1

We will use additionally use a Windows Desktop, just for the purpose of validating our efforts.

  1. FQDN of our Windows Test Desktop: windows7.safesquid.test
  2. IP address of our Windows Test Desktop: 192.168.221.212
Linux machine sabproxy.safesquid.test 192.168.221.222
Windows Active Directory ad.safesquid.test 192.168.221.1
Windows Test machine windows7.safesquid.test  192.168.221.212

Network Connectivity

On EACH of the 3 above computers do the following

  1. ping the Linux host IP address
  2. ping the Domain Controller IP address
  3. ping the Windows Test Desktop IP address

Run below commands on linux console(putty)

ping 192.168.221.222
ping 192.168.221.1
ping 192.168.221.212

If any of the above seems to be unsatisfactory, fix the TCP/IP network configurations, before proceeding.

Validate that all our systems are using the same DNS provider

In a Microsoft AD based network, it is highly recommended to use the DNS provider that usually defaults to the Domain Controller itself.

On the Windows Systems these are specified in the TCP/IP configuration

On the Linux host view and confirem /etc/resolv.conf
Confirm that it reads as follows:

Run below command on linux console (putty)

vim  /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search safesquid.test

On EACH of 3 systems use nslookup as follows to confirm that DNS is effectively serving our requirements.

Run below commands on linux console

nslookup sabproxy.safesquid.test
nslookup ad.safesquid.test
nslookup windows7.safesquid.test 

root@sabproxy:~# nslookup sabproxy.safesquid.test
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   sabproxy.safesquid.test
Address: 192.168.221.222

root@sabproxy:~# nslookup ad.safesquid.test
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   ad.safesquid.test
Address: 192.168.221.1

If any of the above seems to be unsatisfactory, fix the DNS server configuration, by restarting the service or re-booting the Domain Controller host, before proceeding.

root@sabproxy:~# nslookup ad.safesquid.test
Server:         127.0.0.1
Address:        127.0.0.1#53

    • server can't find ad.safesquid.test: NXDOMAIN

If you face any issue as shown above, check monit service and verify

While doing configuration for SSO authentication if you give FQDN\IP in this format and select Bind method as "Negotiate" 

SafeSquid will create the stub zone for DNS resolution of your Active Directory server.

After completing the entire configuration when you save the entry, the file with stub zone will create with the name : safesquid.dns.conf (automatically)

An given path :(verify it)

/usr/local/safesquid/security/dns 

Also it will automatically copy at given path:(verify it)

/etc/bind/

(Note: Monit service must be running)

root@sabproxy:/usr/local/safesquid/security/dns# cat safesquid.dns.conf

zone safesquid.test {
 type stub;
 masters {192.168.221.1;};
 };

root@sabproxy:/etc/bind# cat safesquid.dns.conf

zone safesquid.test {
 type stub;
 masters {192.168.221.1;};
 };

If safesquid.dns.conf is empty, configure LDAP for SSO authentication from SafeSquid Web GUI LINK  properly and then do above steps again to verify.

Note: Monit service should be running.

Validate each of the systems has same time and preferably timezone

Ensure that the time synchronization remains same across all the 3 system.

Confirm time synchronization using below command (use the IP address or the FQDN )

root@sabproxy:~# ntpdate sabproxy.safesquid.test
17 Apr 11:31:44 ntpdate[20275]: the NTP socket is in use, exiting

root@sabproxy:~# ntpdate 192.168.221.222
17 Apr 11:32:20 ntpdate[20276]: the NTP socket is in use, exiting