A proxy server is a computer on your LAN that allows you to connect to external servers without compromising the security of your internal network. If you are consuming FME Server services and your organization uses a proxy server on your network, you can configure FME Server to connect through the proxy.
1. Set Up the Proxy Server Connection
To connect FME Server to a proxy server, follow the appropriate set of instructions, depending on the Windows account that is running the FME Server system services:
Note: To determine the account that is running the FME Server system services, run
services.msc. In the Services dialog, the account that is running any of the FME Server-related services is listed under Log On As.
- On all machines hosting FME Engines, log on to Windows using an administrator account.
- Run the Windows Command Prompt as administrator, and execute the following commands:
set proxy <ProxyServerName>:<Port_No>
Where <ProxyServerName> is the proxy server name, and <Port_No> is the port through which communication with the proxy server takes place.
set proxy myproxy:80
Note: For more information about the
set proxy syntax, see https://technet.microsoft.com/en-us/library/cc731131.aspx#BKMK_5
- On all machines running FME Engines, log on to Windows using the account that runs the FME Engines.
- From the Start menu, choose Control Panel > Internet Options > Connections > LAN settings.
- Check the box beside Use a proxy server for your LAN.
- Enter the address and port number for your proxy server. Click OK.
- Test the connection to your proxy server. Open a browser and navigate to a web site. If the connection is set up properly, you are prompted to provide proxy server credentials before the web site opens.
2. Make the FME Engines Aware of the Proxy Server
- Run the Windows Command Prompt as administrator, and navigate to:
- Run the following commands:
fme.exe APPLY_SETTINGS SYSTEM "Proxy/Proxy Setting" "Use System Proxy"
fme.exe APPLY_SETTINGS SYSTEM "Proxy/Proxy Authentication Method" "<Basic|Digest|NTLM>"
fme.exe APPLY_SETTINGS SYSTEM "Proxy/Proxy Server Require Authentication" "true"
fme.exe APPLY_SETTINGS SYSTEM "Proxy/Proxy Username" "<UserName>"
fme.exe APPLY_SETTINGS SYSTEM "Proxy/Proxy Password" "fme_encrypt(<password>)"
- <Basic|Digest|NTLM> is Basic, Digest, or NTLM, depending on the authentication method used by the proxy server. If not specified,
- <UserName> is the user name for running the proxy server.
- <password> is the password for the proxy server account.
Specifying Custom Proxy Maps
You can specify custom proxy maps in addition to, or instead of, using the system proxy. A custom proxy map allows you to map access to specific URLs through an alternative proxy on your system. Use a custom proxy map if you need to bypass your network's default rules or system proxy settings in order to access these URLs.
To map access to a URL through a custom proxy, run this command for each URL:
fme.exe APPLY_SETTINGS SYSTEM "Proxy/Custom Proxy Map" "<Source_URL>,<Proxy_URL>,<Proxy_Port>,<Requires_Authentication>,<UserName>,<Password>,<Authentication_Method>"
- <Source_URL> is the URL you want to access. The URL must be an exact match with the URL in the request; for example, http://www.lib.uwaterloo.ca/locations/umd/digitization_project/Roads_NTDB.zip.
- <Proxy_URL> is the URL of the proxy server on your system that will handle requests to the <Source_URL>.
- <Proxy_Port> is the port number on the proxy server through which requests are handled.
- <Requires_Authentication> is true or false, depending on whether the proxy server requires authentication to access. If true, provide <UserName>, <Password>, and <Authentication_Method> (Basic, Digest, or NTLM).
To use a proxy server without authentication, instead specify:
fme.exe APPLY_SETTINGS SYSTEM "Proxy/Proxy Server Require Authentication" "false"
To stop using the proxy server, run:
fme.exe APPLY_SETTINGS SYSTEM "Proxy/Proxy Setting" "No Proxy"