How do I configure the browser to use a proxy when needed by the target site using the Synthetic Private Agent?
This is not possible for hosted agents.
For private agents
Using Chrome or IE10/11:
- Stop the agent. Log out.
- Log in as agent_user (password: Appdynamics123).
- Note you can't do this over RDP; you need local access to the machine.
- Navigate to Control Panel > Network and Internet > Internet Options > Connections > LAN Settings.
- Enable "Use a proxy server for your LAN" and fill in the proxy server info.
- Enable "Bypass proxy server for local addresses"
- Click "Advanced". Under "Exceptions", add
localhost;127.0.0.1
- Log out. Log back in as Administrator and restart the agent.
Using Firefox:
-
Add the following to
C:\appdynamics\browsers\firefox\<>\mozilla.cfg
-
Customize the following proxy settings and add to
C:\appdynamics\browsers\firefox\<<VERSION>>\mozilla.cfg
pref(
"network.proxy.type"
,
1
);
// this setting may be there already; if so, replace it
pref(
"network.proxy.http"
,
"<PROXY ADDRESS>"
);
pref(
"network.proxy.http_port"
, <PROXY PORT>);
pref(
"network.proxy.no_proxies_on"
,
"localhost, 127.0.0.1, *.server.local"
);
pref(
"network.proxy.share_proxy_settings"
,
true
);
Note: Test the proxy settings by creating a synthetic job for http://www.whatismyproxy.com
and checking the results.
- Here is an example of what the config could look like customized for a specific client. For information on the possible values and the effects of the Network Proxy Type, click here.
// EXAMPLE pref("network.proxy.type", 5)
// A 5 WAS NEEDED INSTEAD OF A 1 WITHOUT QUOTES pref("network.proxy.type", 5);
// EXAMPLE pref("network.proxy.http", "proxy.domain.com");
// ENTER URL OF PROXY ENCLOSED IN QUOTES
pref("network.proxy.http", "PROXY_URL_HERE");
// EXAMPLE pref("network.proxy.http_port", 8080);
// ENTER PORT NUMBER NO QUOTES
pref("network.proxy.http_port", PROXY_PORT_HERE);
// EXAMPLE REMOVED ",*.server.local" FROM PREF pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
//UNCHANGED pref("network.proxy.share_proxy_settings", true);
Comments
04-01-2019
01:15 PM
- Mark as Read
- Mark as New
- Bookmark Message
- Permalink
- Report Inappropriate Content
04-01-2019
01:15 PM
In this comment:
// EXAMPLE pref("network.proxy.type", 5)
// A 5 WAS NEEDED INSTEAD OF A 1 WITHOUT QUOTES pref("network.proxy.type", 5);
// EXAMPLE pref("network.proxy.http", "proxy.domain.com");
// ENTER URL OF PROXY ENCLOSED IN QUOTES
pref("network.proxy.http", "PROXY_URL_HERE");
// EXAMPLE pref("network.proxy.http_port", 8080);
// ENTER PORT NUMBER NO QUOTES
pref("network.proxy.http_port", PROXY_PORT_HERE);
// EXAMPLE REMOVED ",*.server.local" FROM PREF pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
//UNCHANGED pref("network.proxy.share_proxy_settings", true);
We do not need:
// EXAMPLE pref("network.proxy.http", "proxy.domain.com"); // ENTER URL OF PROXY ENCLOSED IN QUOTES pref("network.proxy.http", "PROXY_URL_HERE"); // EXAMPLE pref("network.proxy.http_port", 8080); // ENTER PORT NUMBER NO QUOTES pref("network.proxy.http_port", PROXY_PORT_HERE); // EXAMPLE REMOVED ",*.server.local" FROM PREF pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1"); //UNCHANGED pref("network.proxy.share_proxy_settings", true);
If type is set to 5:
pref("network.proxy.type", 5);
As 5 means - use system proxy settings.