Edge SWG (ProxySG) support for hosts file entries
search cancel

Edge SWG (ProxySG) support for hosts file entries

book

Article ID: 165697

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

Does the ProxySG support hosts file entries?
Can the proxy use a hosts file?
You want to know if hosts files are supported

Resolution

The ProxySG does not support the use of a hosts file. However the ProxySG does offer a way of simulating such behavior by defining a forwarding host.  This can be done via the CLI or the Management Console. To simulate the hosts file entry '10.10.10.10 www.example.com' you would need to do the following:

Create the host in the CLI using the following command:
 

ProxySG>enable
Enable Password:
ProxySG#config t
Enter configuration commands, one per line.  End with CTRL-Z.
ProxySG#(config)forwarding
ProxySG#(config forwarding)create example_server 10.10.10.10 http=80 server
  ok
ProxySG#(config forwarding)exit
ProxySG#(config)exit
ProxySG#


Create the policy rule to forward to that host:

This can be placed in the local policy file.  If you do not know how to place this into the local policy file, please see 000010101

<forward>
server_url.domain=www.example.com forward(example_server)