Experience Center
Using Fiddler with Zscaler Client Connector
To use the Telerik Fiddler application with Zscaler Client Connector, you must configure Zscaler Client Connector to use a PAC file to point to a specific port. Then, you must ensure that Fiddler is listening to that port.
At a high level, the flow of traffic should be: Browser > Fiddler > Zscaler Client Connector > Destination Page.
To learn more, see Best Practices for Using PAC Files with Zscaler Client Connector.
Configuring Zscaler Client Connector and Fiddler
For more information on Fiddler, refer to the Telerik documentation. The version used for the following steps is Fiddler 5.0.20182.28034.
To use Fiddler with Zscaler Client Connector:
- 1. Create a custom PAC file.
To learn more about creating a custom PAC file, see Writing a PAC File.
Create a custom PAC file with the following return statement:
return "PROXY 127.0.0.1:<Port for Fiddler>; PROXY ${ZAPP_LOCAL_PROXY};";
You must add the port to the return statement. For example, if you choose port 8888, then the return statement is as follows:
return "PROXY 127.0.0.1:8888; PROXY ${ZAPP_LOCAL_PROXY};";
You can host the PAC file in the Admin Portal. To learn more, see Using Custom PAC Files to Forward Traffic to Internet & SaaS.
If you want to debug on a local web server, the browser’s PAC file may ignore the request for 127.0.0.1. As a workaround, create a host file entry pointing to 127.0.0.1(e.g., 127.0.0.1 server.local).
Close - 2. Add the PAC file to a forwarding profile.
This step is not required if you are using Fiddler to automatically configure the system proxy, as Fiddler manages the system proxy settings.
Create a new forwarding profile or update an existing one, and then add the custom PAC file.
You must configure the forwarding profile with the following settings:
- Select Tunnel with Local Proxy or Tunnel mode for any application network (i.e., On Trusted Network, VPN Trusted Network, Off Trusted Network).
If you have configured Fiddler to automatically populate system proxy settings, you must use Tunnel mode and not Tunnel With Local Proxy mode. This is because Zscaler Client Connector enforces its own system proxy in Tunnel With Local Proxy mode.
- For the Use Automatic Configuration Script field, click the checkbox and enter the custom PAC URL.
The PAC URL in this example is http://pac.zscaler.net/safemarch.net/fiddler.
Close - 3. Add the forwarding profile to an app profile.
Create a Zscaler Client Connector profile or update an existing one, and then add the configured forwarding profile.
The forwarding profile in this example is Fiddler.You must configure the app profile with the following settings:
- The Rule Order must be 1.
- The app profile must be enabled.
- The Disabled Loopback Restriction switch must be enabled.
Close - 4. Configure the proxy and port for Fiddler.
- Open the Fiddler application.
- Go to Tools > Options…
- In the Options window, click the Connections tab and do the following:
- Fiddler listens on port: Enter the port that you configured in the forwarding profile PAC file.
The port in this example is 8888.
- Fiddler listens on port: Enter the port that you configured in the forwarding profile PAC file.
- Click the Gateway tab and do the following:
- Manual Proxy Configuration: Select this option. In the first field, enter the following proxy string.
http=127.0.0.1:<Zscaler Client Connector Port>;https=127.0.0.1:<Zscaler Client Connector Port>;ftp=127.0.0.1:<Zscaler Client Connector Port>;
You must add the port that Zscaler Client Connector listens on to the proxy string. For example, if Zscaler Client Connector listens on port 9000, then the proxy string is the following:
http=127.0.0.1:9000;https=127.0.0.1:9000;ftp=127.0.0.1:9000;
Optionally, to debug on a local web server, enter Bypass list: <local>; in the second Manual Proxy Configuration field.
If you are using the Fiddler AutoResponder feature, the Accept all CONNECTs option must be disabled.
- Click OK.
After you finish the configuration for both Zscaler Client Connector and Fiddler:
- Enroll in Zscaler Client Connector if you have not already.
- When Internet Security for Zscaler Client Connector is ON, you can open and use Fiddler.
Ignore any errors that Fiddler displays during startup.