Locate the SonarQube sonar.properties file.
Edit the sonar.properties file.
Locate the proxy configuration entries for HTTP and HTTPS.
Perform the required proxy configuration to enable the Sonarqube server to access the Internet.
In our example, we are using the proxy server 192.168.0.20 on TCP port 3128.
In our example, we are using the proxy username proxyuser and the proxy password proxypass.
Keep in mind that you need to change the IP, username and password to reflect your network environment.
Locate the sonar.sh startup script and restart the Sonarqube service.
The Sonarqube installation was successfully configured to use a proxy for HTTP and HTTPS access