Create or edit proxy auto-configuration (PAC) files
search cancel

Create or edit proxy auto-configuration (PAC) files

book

Article ID: 166366

calendar_today

Updated On:

Products

Advanced Secure Gateway Software - ASG ProxySG Software - SGOS

Issue/Introduction

You need to create or edit a proxy auto-configuration (PAC) file for use with Symantec Edge SWG (ProxySG) or Advanced Secure Gateway (ASG).

Resolution

You can use the basic proxy auto-configuration (PAC) file that ships with the Symantec Edge SWG (ProxySG) or Advanced Secure Gateway (ASG) appliance. However, if you want to create custom PAC settings for your deployment, you can edit the accelerated PAC file.

The default PAC and accelerated PAC files are located here:

  • Default PAC file: http://x.x.x.x:8080/proxy_pac_file
  • Accelerated PAC file: http://x.x.x.x:8080/accelerated_pac_base.pac

To modify one of these files, open the file in a text editor such as Notepad, and make your modifications.

Install the PAC file

  1. Log into the Edge SWG (ProxySG) command line interface (CLI).
  2. Enter enable mode.
  3. In enable mode, enter:

    #inline accelerated-pac EOF
    <paste PAC file contents here>
    EOF


    Where:
    <paste PAC file contents here> is the PAC file contents you copied in step 2; paste the contents here.
    EOF is an end-of-file marker; choose one that does not match any string in the PAC file itself.
     
  4. Press Enter after the end-of-file marker, the CLI responds ok.

Additional information

While the configuration and writing of PAC file script is outside the scope of the Symantec Support team, here are some resources that can assist you in writing a PAC file:

pacparser can check the correct syntax of your PAC file. You can also use it to see which proxy will be used when accessing a test URL.

See Loading an accelerated OAC on Edge (ProxySG) for more information on installing a PAC file through the command line interface (CLI).