Configure a proxy server
Objective
You can configure a proxy server to limit outbound access from EPM agents to the EPM service only. You can also use any other proxy server that follows the communication methods described below.
The following example shows how a Squid proxy server is used to allow EPM agents installed on an isolated network to communicate with the EPM service.
Environment
EPM Linux Agent;Windows Agent
Procedure
Configure a Squid proxy server
This section describes how to configure the Squid proxy server and allow it access to the EPM server only.
Step 1: Check requirements
As an example, the Squid proxy server could have the following minimum requirements:
|
Item |
Requirement |
|---|---|
|
Hardware or VM |
1 CPU core 1G RAM 10G disk |
|
Operating system |
RHEL 7 or higher |
|
Port |
TCP port 3128 open for LAN connections from EPM agents |
|
Internet |
Outbound internet on port 443 |
Step 2: Install Squid
-
Install Squid by running the following commands.
On yum-based Linux (RHEL/Centos/Fedora):
sudo yum install -y squidOn apt-based Linux (Ubuntu/Debian):
sudo apt-get update
sudo apt-get install -y squid -
Enable, start, and check the status of Squid.
sudo systemctl enable squid
sudo systemctl start squid
sudo systemctl status squid
Step 3: Allow Squid to access the EPM service
Configure Squid to allow access to the EPM service only.
-
Enable the host server and the dispatcher domains, and disable all other domains.
For the host server, specify the domain prefix for your region and the three numbers from the EPM console URL after login. For example, na123.epm.cyberark.com or jp123.epm.cyberark.com.
For the dispatcher domain, specify the domain prefix for your region. For example, login.epm.cyberark.com or jp.epm.cyberark.com.
-
Open the Squid configuration file using squid acl.
-
On a fresh Squid installation, add the following four lines to the top of /etc/squid/squid.conf. Make sure you include the
http_access deny allcommand.# change na110.epm.cyberark.com to the address of your EPM Manager
acl allowed_domain_epm_cyberark dstdomain na110.epm.cyberark.com
acl allowed_domain_epm_cyberark_login dstdomain login.epm.cyberark.com
http_access allow allowed_domain_epm_cyberark
http_access allow allowed_domain_epm_cyberark_login
# denies all others, this is by default
http_access deny all -
After you have updated squid.conf, reload the Squid service.
systemctl reload squid
Test configuration
-
Open the Squid access log.
tail -f /var/log/squid/access.log -
View the requests that were issued.
1600975689.552 119942 10.0.1.4 TCP_TUNNEL/200 4495 CONNECT login.epm.cyberark.com:443 - HIER_DIRECT/104.17.195.105 -
1600975799.556 192753 10.0.1.4 TCP_TUNNEL/200 278838 CONNECT na110.epm.cyberark.com:443 - HIER_DIRECT/104.17.194.105 -
1600976019.567 217535 10.0.1.4 TCP_TUNNEL/200 21746 CONNECT na110.epm.cyberark.com:443 - HIER_DIRECT/104.17.194.105 -
1600983924.018 8354226 10.0.1.4 TCP_TUNNEL/200 194881 CONNECT na110.epm.cyberark.com:443 - HIER_DIRECT/104.17.194.105 -
1600985039.945 61232 10.0.1.4 TCP_TUNNEL/200 5609 CONNECT na110.epm.cyberark.com:443 - HIER_DIRECT/104.17.194.105 -
1600985233.763 169371 10.0.1.4 TCP_TUNNEL/200 157880 CONNECT na110.epm.cyberark.com:443 - HIER_DIRECT/104.17.194.105 -
1600985369.959 136195 10.0.1.4 TCP_TUNNEL/200 18797 CONNECT na110.epm.cyberark.com:443 - HIER_DIRECT/104.17.194.105 - -
In squid.conf, disable or change epm_cyberark acls, and check that requests are blocked. The following steps lead you through an example check.
-
Change
allowed_domain_epm_cyberark 123.epm.mycompany.comto456.epm.mycompany.com. -
Reload Squid.
systemctl reload squid -
Open /var/log/squid/access.log and check that a tcp_denied string was issued.
1600988752.530 0 10.0.1.4 TCP_DENIED/403 3816 CONNECT 123.epm.mycompany.com:443 - HIER_NONE/- text/html
-
In the EPM Management console > My Computers, your computer now appears as 'disconnected'.

-
Change
allowed_domain_epm_cyberark 456.epm.mycompany.comback to123.epm.mycompany.com. -
Reload Squid again.
systemctl reload squid
-
-
Test with shell to check that Google is blocked, but the EPM agent is not.
-
Try to access Google.
export HTTP_PROXY=10.0.1.5:3128
export HTTPS_PROXY=10.0.1.5:3128
curl http://google.com
The following response should be returned.
HTTP/1.1 403 Forbidden
Server: squid/3.5.27
-
Try to access the EPM agent.
curl -I https://123.epm.mycompany.com
The following response should be returned.
HTTP/1.1 200 Connection established
-
This KB article is provided for educational purposes only and is not actively maintained. As product features may evolve over time, configuring a Squid server should always be done using the official product documentation. For support, please consult the Squid community or your specific software vendor.