Skip to Content
Deployment OptionsBehind a Corporate Proxy

Behind a Corporate Proxy

Many factory and enterprise networks only reach the internet through a corporate HTTP proxy (for example a Squid proxy on port 3128). The IronFlock Appliance installs and runs cleanly in this setup — you provide your proxy on the install command, and ironflock appliance install configures everything else for you.

This page assumes the appliance host has no proxy environment variables set — you supply the proxy explicitly. It explains what the install handles automatically and the one extra step needed for proxies that intercept TLS.

This is the proxy companion to the Firewall Configuration section of the Appliance guide. The same IronFlock endpoints must be reachable — the difference is that here they are reached through your proxy.

Why a Proxy Needs Attention

The IronFlock platform images are pulled by the Docker daemon — a background service with its own network configuration, separate from your shell. Even on a host that can otherwise reach the internet through the proxy, the daemon doesn’t know about it unless it is told explicitly. Left unconfigured, it tries to connect directly, the network blocks it, and the install stops at the login step with a timeout:

Error response from daemon: Get "https://instance-registry.ironflock.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded)

What the Install Handles for You

When you provide a proxy on the install command, ironflock appliance install configures the Docker daemon and the host’s device agent for you — it keeps the proxy settings in /etc/ironflock/proxy.env, which only root can read, points Docker and the agent at that file, and restarts Docker so it can reach the IronFlock registry. This step is:

  • Hands-off — you supply the proxy once (see below); the install writes the config and restarts Docker for you, no manual daemon setup.
  • Skipped entirely when no proxy is given — direct-internet installs are unaffected.

The install also routes the appliance’s own connection to the cloud through the proxy — license validation and the remote-management uplink that lets you reach your instance from ironflock.com. It records your proxy in the appliance’s central configuration file, /opt/ironflock/.env, and the platform uses it automatically. Every later update keeps it (see Changing or Removing the Proxy Later). No separate setup is needed for the appliance to come online.

Running the Install Behind a Proxy

The proxy is needed in two places: the install script needs it to download ironflock, and ironflock appliance install needs it to configure Docker. Set the proxy URL once, pass it to curl with --proxy and to the install script as environment variables, then to ironflock appliance install with --http-proxy / --https-proxy:

# Your corporate proxy — edit this line PROXY="http://proxy.your-company.com:3128" curl -fsSL --proxy "$PROXY" https://instance-registry.ironflock.com/dl/cli/install.sh \ | sudo env HTTP_PROXY="$PROXY" HTTPS_PROXY="$PROXY" bash sudo ironflock appliance install --license-file license.txt \ --http-proxy "$PROXY" --https-proxy "$PROXY"

Replace the proxy URL with your own, and license.txt with the file that holds your instance key (see Installation). If your proxy requires a login, see Proxy Authentication: the password does not go into the URL.

The proxy flags of ironflock appliance install:

FlagPurpose
--http-proxy <url>Proxy for plain HTTP traffic of Docker, the agent and the appliance. "" removes it.
--https-proxy <url>Proxy for HTTPS traffic (the one that matters for image pulls). "" removes it.
--no-proxy <list>Extra comma-separated hosts that should bypass the proxy.
--proxy-password-file <file>A file or a pipe (/dev/stdin) whose one line is the password of the user in the proxy URLs.

sudo does not pass your shell’s proxy variables on to ironflock, so give the proxy with the flags. The other flags of the command are described in ironflock appliance install.

Local traffic always bypasses the proxy

You don’t need to manage NO_PROXY by hand. The install always keeps localhost, 127.0.0.1, and the appliance’s own host address off the proxy (anything you pass with --no-proxy is kept and merged). This ensures the appliance’s local app store and registry are reached directly, never routed out through the corporate proxy.

Proxy Authentication

If your proxy requires a login, give the appliance its own service account rather than a person’s account. Its traffic then appears in your proxy logs under a name your network team controls: they can limit what it may reach, and disable or rotate it without touching anyone’s personal login. This is the proxy side of Network Identity for IronFlock Hosts.

  • Supported: Basic authentication. Name the user in the proxy URL and give the password with --proxy-password-file, a file that holds it on one line (or /dev/stdin). ironflock refuses a proxy URL that contains a password, because every user of the host can read command lines. The appliance keeps the password in files only root can read, so you can delete the file afterwards:

    sudo ironflock appliance install --license-file license.txt \ --https-proxy "http://[email protected]:3128" \ --proxy-password-file proxy-password.txt

    A login with an empty password is given as http://svc-ironflock:@proxy.your-company.com:3128, the user and a colon with nothing after it, and needs no --proxy-password-file.

  • Not supported yet: Windows-integrated authentication (Kerberos, NTLM). If your proxy accepts nothing else, ask your network team to allow the service account with Basic authentication, or to admit the appliance’s address without authentication as a named host.

What to tell your network team about the traffic:

  • It goes only to the endpoints in the Firewall Configuration list, over HTTPS on port 443. The email relay on port 2525 never uses the proxy.
  • The remote-management connection to cbw.ironflock.com is a long-lived WebSocket with keep-alive traffic every few seconds. If the proxy cuts long-lived connections after a fixed time, the appliance reconnects on its own within seconds, but remote users may notice a short interruption each time — exempt this connection from connection-lifetime limits where you can.

Changing or Removing the Proxy Later

The proxy is recorded in the appliance’s central configuration file, /opt/ironflock/.env, and every update keeps it. To change it on an installed appliance, use ironflock appliance configure. It applies the settings to the Docker daemon, the platform services and the device agent, and restarts the appliance only when something changed:

# Switch to another proxy sudo ironflock appliance configure --https-proxy "http://proxy2.your-company.com:3128" # Change the hosts that bypass the proxy sudo ironflock appliance configure --no-proxy "buildserver.corp.example.com"

Each setting is independent: a setting you do not give keeps what the appliance has, so passing only --https-proxy keeps your existing NO_PROXY list untouched.

To remove the proxy — for example after moving the appliance to a network with direct internet access — pass an empty proxy:

sudo ironflock appliance configure --http-proxy "" --https-proxy ""

The proxy configuration is removed from the Docker daemon and the device agent again, and the appliance returns to direct connections. Your NO_PROXY list is kept for a later re-enable.

A proxy that needs a login is set the same way: name the user in the proxy URL and give the password with --proxy-password-file, as for the install (Proxy Authentication):

sudo ironflock appliance configure \ --https-proxy "http://[email protected]:3128" \ --proxy-password-file proxy-password.txt

To change only the password, for example when your network team rotates it, give the password file alone. It puts the new password into the proxy URLs of the appliance that name a user, and keeps everything else:

sudo ironflock appliance configure --proxy-password-file proxy-password.txt

If no proxy URL of the appliance names a user, the command fails and changes nothing.

Edge Devices

Everything above applies equally to edge devices connected with ironflock agent install. It takes the same proxy flags — pass the proxy when you run it, and it routes its downloads (package manager, Docker installation, agent download), the Docker daemon and the device agent through the proxy for you:

sudo ironflock agent install -c mydevice.flock \ --http-proxy "$PROXY" --https-proxy "$PROXY"

The install script that downloads ironflock runs before it, so give that step the proxy too. sudo does not pass your shell’s proxy variables on by default, so hand them over explicitly, and pass the proxy flags on to ironflock agent install:

curl -fsSL --proxy "$PROXY" https://instance-registry.ironflock.com/dl/cli/install.sh \ | sudo env HTTP_PROXY="$PROXY" HTTPS_PROXY="$PROXY" bash -s -- agent install -c mydevice.flock \ --http-proxy "$PROXY" --https-proxy "$PROXY"

If the device pulls app images from a local appliance app store rather than the cloud, add that registry’s host with --no-proxy so those pulls stay on the local network.

If the proxy requires a login, the password does not go into the proxy URL on a device. ironflock refuses a proxy flag whose URL contains a password, because every user of the device can read command lines. Name the user in the URL and put the password into a file that holds it on one line:

sudo ironflock agent install -c mydevice.flock \ --https-proxy "http://[email protected]:3128" \ --proxy-password-file proxy-password.txt

The device keeps the password in /etc/ironflock/proxy.env, which only root can read, so you can delete the file afterwards. A login with an empty password is given as http://device17:@proxy.your-company.com:3128 and needs no password file.

On Windows devices the agent runs as a Windows service. Pass the proxy to the service installer — it covers the platform connection and the agent’s self-updates:

.\device-agent.exe service install -config .\myaccount_myproject_mydevice.flock -proxy "http://proxy.example.com:3128"

Which hosts bypass the proxy

NO_PROXY matches on the host name a client dials, never on the address that name resolves to. An appliance the device reaches by name — any appliance in domain mode, see App UIs & HTTPS — must therefore be named explicitly, or the agent sends its connection to the local appliance out through the corporate proxy. Most proxies refuse to route back into the internal network, so the device never comes online.

The installer works this out from the device’s own .flock. Alongside localhost and 127.0.0.1 it adds the appliance domain — in both the bare and the leading-dot spelling — and any plain-HTTP registry host the device is configured for. Cloud devices get nothing beyond the two loopback entries, because their endpoints are public and do need the proxy.

Anything else your site needs goes in -no-proxy, the counterpart to the --no-proxy flag of ironflock agent install:

.\device-agent.exe service install -config .\myaccount_myproject_mydevice.flock ` -proxy "http://proxy.example.com:3128" ` -no-proxy "buildserver.corp.example,10.0.0.0/8"

Changing the settings later

The result is written to %ProgramData%\IronFlock\DeviceAgent\proxy.env, and that file is authoritative from then on:

HTTP_PROXY=http://proxy.example.com:3128 HTTPS_PROXY=http://proxy.example.com:3128 NO_PROXY=localhost,127.0.0.1,appliance.corp.example,.appliance.corp.example

Edit it and re-run .\device-agent.exe service install to apply the change. A later install never overwrites the file, and service uninstall keeps the agent directory — so your settings survive the uninstall/install cycle that reinstalling the service requires. Pass -force-proxy to deliberately replace the file from the flags instead.

On Windows devices installed before agent 1.4.0 the folder is still %ProgramData%\IronFlock\Reagent until the agent has moved the device to the new layout.

Delete an entry if this site reaches the appliance through the proxy. Both deployments are real: an appliance on the same plant LAN is reached directly, while a centrally hosted one may only be reachable via the corporate proxy. The installer cannot tell them apart, so it writes the hosts out literally — remove the ones that do not apply to your network.

Docker is configured separately

Docker Desktop reads neither proxy.env nor the service environment. Image pulls are made by the Docker daemon, which has its own settings under Settings → Resources → Proxies, including its own bypass list — and that list needs the appliance host as well. A proxy corrected on the agent side does not fix docker pull.

Linux devices

ironflock agent install takes --no-proxy directly, so the appliance can be named at setup time:

sudo ironflock agent install -c mydevice.flock \ --http-proxy "$PROXY" --https-proxy "$PROXY" \ --no-proxy "appliance.corp.example.com"

localhost, 127.0.0.1 and ::1 always bypass the proxy. So does the update server named in the device’s .flock file when it is not a host of the IronFlock cloud, which is the case for the devices of an appliance.

The settings are kept in /etc/ironflock/proxy.env, which only root can read. Docker and the device agent both take them from there. To adjust them afterwards, use ironflock agent configure. Each flag you give replaces its setting, and the others stay:

# Change the hosts that bypass the proxy sudo ironflock agent configure --no-proxy "appliance.corp.example.com,buildserver.corp.example" # Switch to another proxy sudo ironflock agent configure --https-proxy "http://proxy2.your-company.com:3128" # Take the device off the proxy sudo ironflock agent configure --remove-proxy

The command shows the settings before and after the change. Docker has to restart for them, which stops the apps on the device for a moment, so the command asks first. A proxy variable in a systemd drop-in of your own (systemctl edit) no longer takes effect once the settings file sets the same variable; the command warns you about such a drop-in. See ironflock agent configure for the details.

Devices set up before ironflock keep their proxy in a systemd drop-in named http-proxy.conf, where every user of the device can read it, including a password. The first run of ironflock agent configure moves the settings into /etc/ironflock/proxy.env.

On devices installed before October 2026 the unit is still reagent.service — with the drop-in directory reagent.service.d — until the agent has moved the device to the new layout.

TLS-Intercepting Proxies (Corporate CA)

Many corporate proxies inspect HTTPS traffic by re-signing it with a company certificate authority (CA). For these, configuring the proxy is necessary but not sufficient — the appliance host must also trust that CA, or every cloud connection (image pulls, license validation, the management uplink) is rejected.

This is about the appliance trusting your CA — not about serving HTTPS to browsers. Here you make the appliance’s outbound connections to the cloud succeed through a TLS-intercepting proxy. Serving app web UIs to browsers on your network is the opposite direction — see App UIs & HTTPS.

Install the CA once, in the host’s system trust store. The appliance mounts that trust store into all of its containers, so Docker and every IronFlock service pick up the CA — there is nothing to configure per container or per service. Because the containers read it at startup, restart the stack after adding or changing the CA (step 3 below).

1. Obtain the corporate CA

Ask your network team for the proxy’s “SSL inspection” / “TLS interception” root CA — the same certificate already deployed to managed corporate machines — as a .crt file. That’s the cleanest source.

Install the issuing CA, not a single host’s certificate. The common mistake is to save the proxy’s re-signed certificate for one hostname (e.g. only instance-registry.ironflock.com). That makes only that host work and leaves every other cloud host failing. You need the CA that signs those certificates.

If you can’t get the file directly but the proxy presents its full chain, you can extract the CA from the wire — replace <PROXY_HOST>:<PROXY_PORT> with your proxy:

# Capture the chain, one PEM per cert. c1 is the per-host leaf (skip it); # c2..cN are the corporate CA chain to trust. echo quit | openssl s_client -connect instance-registry.ironflock.com:443 \ -proxy <PROXY_HOST>:<PROXY_PORT> -showcerts 2>/dev/null \ | awk '/BEGIN CERTIFICATE/{n++; c=1} c{print > ("/tmp/proxy-c" n ".pem")} /END CERTIFICATE/{c=0}' # Optional — inspect what came back: for f in /tmp/proxy-c*.pem; do echo "== $f =="; openssl x509 -in "$f" -noout -subject -issuer; done

2. Install it and rebuild the trust store

If your IT team gave you the .crt directly:

sudo cp corporate-root-ca.crt /usr/local/share/ca-certificates/corporate-proxy-ca.crt sudo update-ca-certificates

If you extracted it from the chain above, trust every cert except the leaf (c1):

i=0; for f in $(ls -v /tmp/proxy-c*.pem | tail -n +2); do i=$((i+1)); sudo cp "$f" "/usr/local/share/ca-certificates/corporate-proxy-ca-$i.crt" done sudo update-ca-certificates

3. Verify

Every IronFlock cloud host must now validate through the proxy — an HTTP status, not a TLS error:

for H in instance-registry.ironflock.com web.ironflock.com cbw.ironflock.com \ registry.ironflock.com regauth.ironflock.com; do curl -x http://<PROXY_HOST>:<PROXY_PORT> -sS -o /dev/null -w "$H -> %{http_code}\n" "https://$H/" done

A code like 200, 401 or 404 for all five means the CA is correct. Then restart the appliance so the services pick it up. If the install had stopped at the login step, run the same install command again instead: it continues from where it stopped.

sudo ironflock appliance restart

Remote Access to Device User Interfaces

IronFlock lets you open a user interface that runs on an edge device or machine — a machine HMI, a PLC page, an on-device configuration or dashboard screen — directly inside IronFlock, from anywhere. This is a key enabler for remote service and support: an engineer can reach a machine’s interface without being on-site or on the local network. Access is always mediated and guarded by the IronFlock privilege system, so only authorised users reach a given device.

This remote-access tunnel is built on frp (Fast Reverse Proxy), a mature, widely used open-source technology. IronFlock uses it solely to provide the device-interface access described above.

Why a corporate proxy can get in the way

frp has powerful network-traversal capabilities, and for that reason antivirus and proxy security products often flag it generically as riskware — even though, as an open-source component with a long track record, it is safe and is used here only for the sanctioned remote-access feature. When that happens, the proxy blocks the download of the IronFlock component that contains frp.

This does not break your appliance: the remote-access tunnel is an optional feature, so if that component is blocked the platform installs and runs normally and simply operates without device-interface access. In the dashboard, a device’s remote-access controls then indicate that remote access is not available on this appliance.

What corporate IT needs to allow

If your organisation wants to benefit from IronFlock’s remote-service features, the IronFlock component containing frp must be allowed to download through the corporate proxy. Ask your network/security team for two specific things:

  • A scanning exception for image downloads from instance-registry.ironflock.com, so the generic riskware verdict doesn’t block the tunnel component. This is narrower than excluding all IronFlock traffic from TLS inspection — the rest of the appliance’s traffic can stay inspected.
  • Recording the detection as a known false positive. frp is a widely used open-source reverse proxy; IronFlock uses it only for the access-controlled remote-access feature described above.

The same IronFlock endpoints already listed for the appliance apply — see Firewall Configuration; this is about not scanning/blocking that traffic, on top of merely routing it.

Once frp is allowed through, the next update tries the download again, and the feature turns on as soon as it succeeds, with no other change. To try at once, run the install again with the version the appliance runs (ironflock status shows it); it keeps the appliance’s secrets and settings:

sudo ironflock appliance install --version <version>

Running without remote access

If you don’t need device-interface access — or want a clean install while the proxy exception is arranged — you can disable the tunnel explicitly. Everything else installs as normal:

# at install time sudo ironflock appliance install --license-file license.txt --no-tunnel # or on an already-installed appliance sudo ironflock appliance configure --no-tunnel

The choice is remembered across updates. Re-enable it later (once frp is allowed) with --tunnel:

sudo ironflock appliance configure --tunnel

Troubleshooting

The install stops at the login to instance-registry.ironflock.com with a Client.Timeout error. The Docker daemon can’t reach the registry. Run ironflock appliance install again and pass your proxy with --http-proxy / --https-proxy, as shown above.

Login still fails after configuring the proxy. Your proxy most likely intercepts TLS. Install the corporate CA as described in TLS-Intercepting Proxies, then run the install command again.

Check that the Docker daemon sees the proxy:

sudo docker info | grep -i proxy sudo docker login instance-registry.ironflock.com

docker info shows the proxy Docker uses, with a password masked. If docker login succeeds on its own, the appliance install will get past the failing step.

A single component fails to download while everything else installs fine. This is usually the frp-based remote-access component being blocked by your proxy or antivirus as riskware. The install still completes — only device-interface access is unavailable. To enable it, have your proxy team allow that traffic as described in Remote Access to Device User Interfaces, then run sudo ironflock appliance install --version <version> with the version the appliance runs. To install deliberately without it, pass --no-tunnel.

Updates

Once an appliance is installed behind a proxy, its proxy settings are remembered in /opt/ironflock/.env and re-applied on every update. Updates from the appliance UI and with ironflock appliance update continue to work through the proxy with no extra action — see Maintenance in the Appliance guide. To point the appliance at a different proxy — or take it off the proxy entirely — see Changing or Removing the Proxy Later.

If remote access to device interfaces was blocked at install time, every update automatically retries it — so once your proxy allows frp, the next update turns the feature on with no extra steps.

Last updated on