Configuring HTTP proxy server settings using the CLI

Prev Next

Use the commands in this section to configure and enable an HTTP proxy server on an appliance.

To configure and enable an HTTP proxy server:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Configure the proxy server hostname or IP address, and the port (if you do not want to use the default, port 8080):

    hostname (config) # fenet proxy host <hostname or IP address>[:<port>]
  3. Optional: Specify the credentials for basic authentication:

    • Specify the user:

      hostname (config) # fenet proxy auth basic user <username>
    • Specify the password:

      hostname (config) # fenet proxy auth basic password <password>
  4. Optional: Specify a user-agent string:

    hostname (config) # fenet proxy user-agent <string>
  5. Enable the proxy server:

    hostname (config) # fenet proxy enable
  6. Verify your changes:

    hostname (config) # show fenet
  7. Save your changes:

    hostname (config) # write memory

Note

The show fenet status command also displays HTTP proxy settings, but does not show whether the proxy server is enabled or disabled. The show fenet command output includes or excludes "disabled" to indicate the status.

Example

The following example configures an HTTP proxy server with basic authentication credentials.

hostname (config) # fenet proxy host 192.168.2.3 
hostname (config) # fenet proxy auth basic user bsmith
hostname (config) # fenet proxy auth basic password abcd6789
hostname (config) # fenet proxy enable
hostname (config) # show fenet 

DTI CLIENT CONFIGURATION:
  ...
  Http proxy       : bsmith@192.168.2.3:8080 (user agent:)
  ...
hostname (config) # show fenet status
...
HTTP Proxy:

    Address       : 192.168.2.3:8080
    Username      : bsmith
    User-agent    :
    ...