Follow

How to Test the Silverline Proxy Using 'hosts' File on Windows PC

Proxy / App Configuration Steps

  1. Configure Proxies / Apps in Portal
  2. Test & Verify Proxies
    • How To Test The Silverline Proxy Using 'Hosts' File On Windows PC
  3. Configure On-Premises Set-up

------------------------------------------------------------------------------------------

 

Description

Before you switch over your public DNS to reflect the Silverline Front End IP address which represents your site, you can mimic the behavior using a Windows PC (or any other client) with a modified Hosts file.

 

Environment

  • Windows 7 PC.
  • Location of ‘hosts’ differs between Windows versions.

Note on Linux and Macs

  • Similar process for Linux and Mac OSX machines, however the format of the Hosts file differs.
  • Path of ‘hosts’ in Linux/Mac OSX is usually [/etc/hosts].

 

Steps for Testing your Site using a Windows PC

Once your proxy is provisioned and deployed, obtain the Silverline Virtual-IP from Portal (also known as the Front-End) using the following steps:

1. Navigate to Config > Proxy Configuration > Proxy Management

Portal_Nav_-Proxy_Management.png

2. Locate the Front End IPs for your proxies under the Network column, shown inside the red box below:

Proxy_Front_End_IP_Addresses.png

 

3. Next, press the Windows key (or go to Start on the Desktop), and type “Notepad.exe” into the Search Field.

Right-Click on the Notepad application and choose to “Run As Administrator”. This possibly requires you to approve the action through UAC, so click “Yes” when prompted. 

windows.png

windows2.png

4. Once in Notepad (as Admin):

  • Go to File > Open
  • Navigate to C:/Windows/System32/drivers/etc/.
  • Be sure to use the drop-down provided to view “All Files (*.*)” instead of only “Text Files (*.txt)”, because the Hosts file doesn’t have a .txt extension:

windows3.png 

5. This is what your Hosts file will likely contain:windows4.png

 

6. Now, add the Silverline proxy Front End IP in the left-hand column

- Press [TAB] twice and add the host-name URL (such as company.com) for the site in question in the right-hand column, as below. 

- Once the entry has been made, click File > Save.

windows5.png

 

7. Test the Hosts file entry by opening a CMD prompt in Windows, and pinging the URL you entered into the Hosts file: windows6.png

You can now navigate to company.com (or www.company.com or any other subdomain) and your PC will browse to the Silverline-protected site, while any other clients on the Internet will still be navigating to the site without Silverline in-line.

Once you are satisfied that your site and proxy are configured correctly, you may update your DNS settings and revert your PC's host file by removing the Silverline entry.

 

Application proxy

In this case you will see Assigned DNS Name : <proxyid>.<custid>.gslb.f5silverline.com on proxy tab.

To aquire assigned IP you have to perform DNS query with dig or nslookup command.

Bear in mind that IP may change and this is temporary solution.

 

Return to: Test & Verify Proxies 

Related:

Q&A: What Data Does Silverline Need for WAF Proxy Troubleshooting?

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request