Press "Enter" to skip to content

Setup Helix Proxy (p4p) on Ubuntu 18.04

1. Download the p4p binary from https://www.perforce.com/downloads/helix-proxy-server-p4p with the usual linux options:

2. Do the same for the helix command line client (p4) which we’ll need to trust the cert from the server we’re connecting to. https://www.perforce.com/downloads/helix-command-line-client-p4.

3. From the folder you downloaded perforce to, mv the files to /bin and make them executable.

chmod +x p4{p,}
sudo mv p4{p,} /bin/

4. Trust the certificate for the server you’re connecting to.

p4 -p ssl:10.50.4.100:1668 trust -y

5. Write a systemd service file to run the proxy.

#/etc/systemd/system/p4p.service
[Unit]
Description=Start p4p proxy
After=network.target

[Service]
Environment=P4TRUST=/root/.p4trust
#the verboseness of the log file set by -v goes up to 3
#tcp64:[::]:1668 just means port 1668 on the local host - and is fine for ipv4 and ipv6 here.  -r is the location to store cached files
ExecStart=/bin/p4p -p tcp64:[::]:1668 -t ssl:10.50.4.100:1668 -r /var/proxy -L /var/log/p4p.log -v 1

[Install]
WantedBy=default.target

6. Ensure the correct permissions on the service file and enable the service

chmod 644 /etc/systemd/system/p4p.service
systemctl daemon-reload 
systemctl enable p4p.service --now

7. Clients should now be able to connect to the remote server via the perforce proxy.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *