3.4 Firewall settings for SonarQube
Last updated
Was this helpful?
Last updated
Was this helpful?
If you have changed the default URL of SonarQube in sonar.properties under configuration folder(conf)of sonarQube installation then comment the sonar.web host line if you want the server to visible inside the network.
Open up "Windows Firewall with Advanced Security" as an administrator and navigate to the inbound rules and right click to create a new rule.
The Windows firewall offers four types of rules:
Program– Block or allow a program.
Port– Block or a allow a port, port range, or protocol.(select this)
Predefined– Use a predefined firewall rule included with Windows.
Custom– Specify a combination of program, port, and IP address to block or allow.
On the Protocol and Ports pane, select a protocol type and specify ports. For example,specify the local port where the sonarqube is installed (in this example i am taking the port number as 9263)
In the Action pane, Select the “Allow the connection” option to allow the connection from the IP address and ports you specified. Be sure to check that no other firewall rules apply to the program – for example, if you have a firewall rule that allows all inbound traffic to the server application, this rule won’t do anything.
The rule takes effect after you click Finish and Restart the SonarQube server for safer side.
On the Profile screen, you can apply the rule to a specific profile – for example, if you only want a program blocked when you’re connected to public Wi-Fi and other insecure networks, leave the “Public” box checked. By default, Windows applies the rule to all profiles.
In Name section provide a name to the profile, in this example it is SonarQube.