Last updated: 2026-11-29
Purpose
This article explains how to set up RC-Scanner when its connections to Outscan or to an On-Premise Scanning (OPS) appliance must go through a web proxy.
Introduction
RC-Scanner opens outbound connections to Outscan or the OPS appliance to register, receive scan jobs, download rules and container images, and upload scan results. With a proxy configured, all of these connections go through the proxy. Scan traffic from the scanner to the scan targets does not use the proxy: it goes directly to the targets.
Requirements
Before you start, make sure you have:
-
Access to the Portal on Outscan or OPS, with permission to manage RC scanners.
-
Shell access to the scanner as the
rcscanneruser, for example through SSH. -
RC-Scanner bootstrap 1.20261124.7 or later. To check, run
rc-scanner-bootstrap --version. -
The address and port of the proxy.
-
A proxy that allows the destinations RC-Scanner needs.
-
Direct network access from the scanner to the scan targets.
For the destinations RC-Scanner needs, see Firewall Rules RC-Scanners. For the installation itself, see Install RC-Scanner Appliance.
Summary
|
Setup |
Support |
|---|---|
|
Web proxy to Outscan |
Supported. |
|
Web proxy to an OPS appliance |
Supported. |
|
TLS-inspecting proxy, to Outscan or to an OPS appliance |
Supported. The scanner must trust the proxy's certificate authority. See TLS-Inspecting Proxy. |
|
Proxy that requires a username and password |
Supported with Basic authentication. See Proxy Authentication. |
|
Scan traffic through the proxy |
Not supported. Scan traffic goes directly to the targets. |
Proxy Configuration
To install RC-Scanner behind a proxy, perform these steps:
-
Log in to the scanner and create the file
~/proxy.yamlwith the address of your proxy:YAMLproxy: https: "http://192.0.2.10:3128"Replace
192.0.2.10:3128with the address and port of your proxy. Thehttp://prefix describes only the connection from the scanner to the proxy: the scanner's traffic to Outscan or the OPS appliance stays encrypted end to end through the proxy. Usehttps://only if the proxy itself accepts TLS connections; if its certificate is signed by a private certificate authority, add that certificate as in step 2. -
Only for a TLS-inspecting proxy: copy the proxy's CA certificate in PEM format to the scanner, for example to
/home/rcscanner/proxy-ca.pem, and add it to~/proxy.yaml:YAMLproxy: https: "http://192.0.2.10:3128" tls: caCerts: - /home/rcscanner/proxy-ca.pemFor details, see TLS-Inspecting Proxy.
-
Run the bootstrap with the file and the token generated for the scanner in the Portal:
Bashrc-scanner-bootstrap --config ~/proxy.yaml --token <token>If the scanner can reach only the OPS appliance and not the internet, add
--airgap. -
In the wizard, check that HTTPS proxy shows your proxy address, then complete the wizard.
-
Verify the scanner as described in Verification.
Proxy Authentication
If the proxy requires a username and password, add them to the proxy address:
proxy:
https: "http://username:password@192.0.2.10:3128"
Percent-encode special characters in the username and password, for example @ as %40 and ' as %27. Only Basic authentication is supported. The username and password are stored in plain text on the scanner.
Hosts That Bypass the Proxy
To reach some hosts directly instead of through the proxy, list them under noProxy, separated by commas:
proxy:
https: "http://192.0.2.10:3128"
noProxy: "ops.example.com,198.51.100.20"
Localhost, the scanner's own IP address and its internal networks bypass the proxy automatically. If the scanner can reach its OPS appliance without the proxy, add the OPS appliance's host name or IP address here.
Change Proxy Settings after Installation
Caution: A wrong proxy setting disconnects the scanner from Outscan or the OPS appliance until you correct it. Scans cannot run during that time.
To change the proxy, add a proxy to an installed scanner, or stop using a proxy, perform these steps:
-
Edit
~/proxy.yaml: change the proxy address, add thetlssection for a TLS-inspecting proxy, or delete theproxysection to stop using a proxy. If the file does not exist, create it as described in Proxy Configuration. -
Run the same command as during the installation, including
--airgapif you used it:Bashrc-scanner-bootstrap --config ~/proxy.yaml --token <token> -
Check the values in the wizard and complete it.
-
Verify the scanner as described in Verification.
The scanner applies the new settings without a reboot.
Edit only ~/proxy.yaml. The bootstrap manages ~/.config/rc-scanner-bootstrap/config.yaml itself and does not accept it as --config.
TLS-Inspecting Proxy
A proxy that performs Transport Layer Security (TLS) inspection decrypts the scanner's connections and presents its own certificate, signed by the proxy's internal certificate authority (CA). The scanner rejects these connections unless it trusts that CA. This applies to Outscan and OPS alike.
Choose one of these options:
-
Exclude the scanner's destinations (see Firewall Rules RC-Scanners) from TLS inspection in the proxy. The scanner then needs no extra CA.
-
Add the proxy's CA certificate to
~/proxy.yamlundertls.caCerts, as in step 2 of Proxy Configuration. The scanner then trusts the CA for all of its connections.
The proxy must also allow WebSocket connections: the scanner keeps a WebSocket connection open to Outscan or the OPS appliance.
Verification
To verify the scanner, perform these steps:
-
In the Portal, go to Configuration > RC scanners and refresh the view.
-
Confirm that the scanner shows Connected.
-
In the proxy's access log, confirm connections from the scanner's IP address.
-
Run a scan against a test target, and confirm that it finishes and its results appear in the Portal.
Connected alone does not show that rule downloads and result uploads work through the proxy. The test scan does.
Troubleshooting
|
Problem |
What to do |
|---|---|
|
The bootstrap stops with |
The proxy inspects TLS and the scanner does not trust its CA. Add the CA as described in TLS-Inspecting Proxy and run the bootstrap again. |
|
The bootstrap cannot connect to Outscan or the OPS appliance. |
Check the proxy address and port in |
|
The proxy answers |
Check the username and password in the proxy address, and their percent-encoding. The proxy must accept Basic authentication. |
|
The installation completes, but the scanner does not show Connected. |
Check the proxy access log for denied requests from the scanner. A TLS-inspecting proxy must allow WebSocket connections. |
Related Article
- Firewall Rules RC-Scanners
- Install RC-Scanner Appliance
- Deploy RC-Scanner in Hyper-V
- Deploy RC-Scanner on AWS
- Deploy RC-Scanner with KVM/QEMU
- Install RC-Scanner on Hardware
- Deploy/Install RC-Scanner Appliance
- Update RC-Scanner Bootstrap
- RC-Scanner Behind a Web Proxy
- Maintain and Update RC-Scanner Appliance
- RC-Scanner Dimensioning Guide
- RC-Scanner FAQ
- Deploy RC-Scanner on Microsoft Azure
- Supported Deployment Platforms for RC-Scanners