Skip to content

Proxy Configuration#

These settings are required in environments where the scanner server (the server on which the scanner is installed) accesses the internet through a proxy server. If your environment does not use a proxy, you do not need the settings on this page.

For the destinations to allow through the proxy, see "Service Connectivity Requirements". For the steps to check connectivity after configuration, see "Scanner Installation Requirements > Checking Connectivity".

The scanner accesses the internet at the following two points. Proxy settings are required for both.

Timing Communication Where to configure on Linux Where to configure on Windows
During scanner installation Downloading the installer and the scanner binary Environment variables http_proxy and https_proxy OS proxy settings
During scan execution Uploading scan results, automatic updates of the scanner binary PROXY in /opt/vuls-saas/vuls-saas.sh Proxy in C:\Program Files\vuls-saas\batch_config.toml

This table shows the settings for the Linux scanner and the Windows scanner. For the Trivy scanner, see "For Trivy".

If you specify a proxy server on the screen that displays the installation command (Group Settings → Scanner), the installation command shown includes that value. This command includes the proxy setting used for communication during installation. During installation, the same value is also written to the settings used when scans run (the second row of the table above).

Therefore, you need the procedures on this page in the following cases.

Situation Required work
You specified a proxy server on the screen and displayed the installation command No work on this page is required (except when Windows Update goes through a proxy)
You use an installation command that was displayed without specifying a proxy server Both the "During Installation" and "After Installation" work
You change the proxy server address or credentials after installation The "After Installation" work
On Windows, communication with Windows Update goes through a proxy The "2. Configure netsh" work

The format of the proxy server differs depending on where you specify it.

Where to specify Format Example
VULS_PROXY on the screen that displays the installation command Start with http:// http://proxy.example.com:8080
Linux environment variables http_proxy and https_proxy Start with http:// http://proxy.example.com:8080
PROXY in /opt/vuls-saas/vuls-saas.sh on Linux Start with http:// http://proxy.example.com:8080
Proxy in batch_config.toml on Windows You can omit http:// (if omitted, the value is treated as http://). Do not enclose the value in quotation marks proxy.example.com:8080
netsh winhttp set proxy on Windows Specify the address and port number proxy.example.com:8080

For Linux#

During Installation#

Set the proxy in the environment variables before installation.

export http_proxy='http://<proxy server address or hostname>:<port number>'
export https_proxy='http://<proxy server address or hostname>:<port number>'

For a proxy with authentication, set the variables in the following format.

export http_proxy='http://<proxy user>:<proxy password>@<proxy server address or hostname>:<port number>'
export https_proxy='http://<proxy user>:<proxy password>@<proxy server address or hostname>:<port number>'

The installer execution method is the same as the standard procedure. After the installation is complete, see the "After Installation" section below and configure the settings.

After Installation#

To upload scan results via a proxy, uncomment the following part of the scan script /opt/vuls-saas/vuls-saas.sh, set the proxy server according to your environment, and save the file.

Before change:

#!/bin/bash

## If you use a proxy, uncomment the next line ##
# PROXY='http://<modify>:<port>'

~~~ Omitted below ~~~

After change:

#!/bin/bash

## If you use a proxy, uncomment the next line ##
PROXY='http://<proxy server address or hostname>:<port number>'

~~~ Omitted below ~~~

For a proxy with authentication, set the value in the form PROXY='http://<proxy user>:<proxy password>@<proxy server address or hostname>:<port number>'.

For Windows#

During Installation#

Set the Windows OS proxy before installation.

  1. Search for and launch "Internet Options" from the search box.
  2. Select the "Connections" tab.
  3. Click "LAN settings" and enter the proxy server settings.
  4. Click the "OK" button.

The installer execution method is the same as the standard procedure. After the installation is complete, see the "After Installation" section below and configure the settings.

Only if an error occurs while downloading the installer with the above procedure, follow the bitsadmin steps below to install.

Open Command Prompt with administrator privileges and perform the following three steps in order. Replace the parts in { } to match your environment.

  1. Start getting the installer.

    bitsadmin /create get-vuls-installer
    bitsadmin /addfile get-vuls-installer https://installer.vuls.biz/vuls-installer-v2.bat "%cd%\vuls-installer.bat"
    bitsadmin /setproxysettings get-vuls-installer override {proxy server address:port number} NULL
    

    Only for a proxy with authentication, then run the following command.

    bitsadmin /setcredentials get-vuls-installer PROXY BASIC {username} {password}
    

    Finally, start the download.

    bitsadmin /resume get-vuls-installer
    
  2. After approximately 1 minute, complete the download with the following command, and verify that vuls-installer.bat has been downloaded to the current directory.

    bitsadmin /complete get-vuls-installer
    dir vuls-installer.bat
    
  3. Set the environment variables and run the installer.

    set VULS_SAAS_GROUPID={ID of the destination group}
    set VULS_SAAS_TOKEN={token with scan permissions}
    set VULS_PROXY={proxy server address:port number}
    

    Only for a proxy with authentication, also run the following commands.

    set PROXY_USERNAME={username}
    set PROXY_PASSWORD={password}
    

    Only when referring to WSUS, also run the following command.

    set VULS_WIN_UPDATE_SRC=1
    

    You can check the group ID in the URL when you open Group Settings (https://console.vuls.biz/org/xxx/group/[group ID]/setting/profile), and the token in Group Settings → Token. VULS_WIN_UPDATE_SRC=1 is the same specification as selecting LOCAL (refer to WSUS) on the screen that displays the installation command.

    Finally, run the installer.

    vuls-installer.bat inst
    

If you installed with VULS_PROXY set (when you specified a proxy server on the screen and displayed the installation command, or when you ran set VULS_PROXY in step 3 above), the same value is also written to batch_config.toml, so the following "1. Configure batch_config.toml" is not required.

After Installation#

If you configured a proxy for a scanner installed before October 14, 2026, and automatic updates of the scanner binary (AutoRefreshBinary in batch_config.toml) are enabled, you need to update the scan script. The old script does not use the proxy when checking the latest version, causing the scanner to be downloaded again on every scan. If automatic updates are disabled (false), no download is performed during scans.

1. Configure batch_config.toml#

To upload scan results via a proxy, add the proxy settings to the configuration file C:\Program Files\vuls-saas\batch_config.toml and save the file. In the following example, the first two lines (AutoRefreshBinary and TimeoutRefreshBinary) are created during installation, and the lines from Proxy onward are the ones you add. Specify the proxy server address or hostname and the port number according to your environment. Do not enclose the value in quotation marks.

  AutoRefreshBinary = true
  TimeoutRefreshBinary = 60
  Proxy = proxy.contoso.com:8080
  Username = xxxxx
  Password = xxxxx

Add Username and Password only for a proxy with password authentication.

2. Configure netsh#

Set the WinHTTP proxy used by Windows Update.

The scan target Windows server is what queries Windows Update. Configure netsh on the scan target Windows server. In a local scan, this is the same server as the scanner server.

Whether configuration with the netsh command is required depends on the communication route to Windows Update. The proxy server specified in the installation command is not used for queries to Windows Update.

Route to Windows Update and the netsh setting

Communication route to Windows Update netsh configuration
The scan target Windows server communicates with Windows Update on the internet via a proxy Required
The scan target Windows server communicates directly with Windows Update on the internet without going through a proxy Not required
The scanner refers to a WSUS server located inside the proxy Not required

Even if a query to Windows Update fails, the scan as a whole may still succeed. In addition, the scanner also obtains information on updates (KBs) by other means, so updates being displayed in the Advisory List does not necessarily mean that the query succeeded. Note that a missing setting is easy to overlook.

To find out whether the query succeeded, temporarily add -debug to scan in the scan script on the scanner server, run a scan, and check exitstatus, stderr, and err in the results of running $UpdateSearcher.search(...) recorded in scan.log on the scanner server. After the investigation, remove the option you added. Where you work depends on the OS of the scanner server.

Scanner server Where to add -debug How to run the scan
Windows (Local Scan, or Remote Scan from the Windows scanner) vuls.exe scan in vuls-saas.bat Scheduled runs operate under the SYSTEM account, so run it from the vuls-saas-scan task in Task Scheduler to check under the same conditions
Linux (Remote Scan from the Linux scanner) ./vuls scan in /opt/vuls-saas/vuls-saas.sh Run vuls-saas.sh as the vuls-saas user (see "Scanner Execution and Scheduling")

You can check the currently configured WinHTTP proxy with the command below.

netsh winhttp show proxy

Here is an example command to set the WinHTTP proxy with the following information. The second argument is the list of destinations to connect to without going through the proxy.

  • Proxy server address: proxy.contoso.com:8080
  • Destinations that do not go through the proxy: localhost and *.contoso.com
netsh winhttp set proxy proxy.contoso.com:8080 "localhost;*.contoso.com"

The WinHTTP setting with netsh is an OS-wide setting and may affect the communication of other applications.

Test thoroughly in a staging environment or similar before applying the changes to the production environment. Reference: How the Windows Update client determines which proxy server to use to connect to the Windows Update website

For Trivy#

For the Trivy scanner, you enter the proxy server in the dialog that displays the installation command. The value you enter is included in the installation command, so you do not need to configure anything separately before installation.

In the standard version (the method that registers a scheduled run; see "Installation > Installing the Trivy Scanner"), the proxy server you entered is written to Proxy under [saas] in the configuration file /opt/vuls-trivy-saas/config.toml and is also used when scans run. To change the proxy server after installation, edit this value. For an example, see "Scanner Settings > Example of config.toml".

If an Error Occurs#

If you encounter an error like the one below in a proxy environment, check whether the value of the HTTPS_PROXY / https_proxy environment variable starts with https://. If it does, change it to http:// and try again. Because the uppercase HTTPS_PROXY takes precedence over the lowercase https_proxy, you can also resolve the error by removing the uppercase HTTPS_PROXY if the lowercase https_proxy is set to a value that starts with http://.

"Failed to report. err: Post https://auth.vuls.biz/one-time-auth: proxyconnect tcp: tls: first record does not look like a TLS handshake"

Troubleshooting#

For common causes and solutions, refer to the following pages.