controls::sql server is configured to use non standard ports
Overview
If installed, a default SQL Server instance will be assigned a default port of TCP:1433 for TCP/IP communication. Administrators can also manually configure named instances to use TCP:1433 for communication. TCP:1433 is a widely known SQL Server port and this port assignment should be changed. In a multi-instance scenario, each instance must be assigned its own dedicated TCP/IP port.
Using a non-default port helps protect the database from attacks directed to the default port.
Excelent Compliance Solution.
Puppet is an excellent solution to ensure your databases are CIS or STIG compliant. Now you’re looking at information about only one compliance control, but managing total compliance isn’t hard either!
If you you like he prospect of easy way into continuous compliancy with minimal fuss and bother, we suggest taking a look at our solution as your go-to option. Plus, our team can help you get up and running so that you can focus on other areas of your business. What are you waiting for? Get started today!
Benchmarks
This control is used in the following benchmarks:
- Microsoft SQL Server Database 2014 CIS V1.5.0 - paragraph 2.11
- Microsoft SQL Server Database 2016 CIS V1.3.0 - paragraph 2.11
- Microsoft SQL Server Database 2017 CIS V1.2.0 - paragraph 2.11
- Microsoft SQL Server Database 2019 CIS V1.2.0 - paragraph 2.11
Skipping
To deliberately skip this control (e.g. meaning don’t use Puppet to enforce this setting), we provide you with three ways:
1) Add mssql_secured::controls::sql_server_is_configured_to_use_non_standard_ports: skip
to your hiera data. This will skip this control for ALL databases.
2) Add mssql_secured::controls::sql_server_is_configured_to_use_non_standard_ports::dbname: skip
to your hiera data. This will skip this control for specified database only.
3) Add an entry with the content sql_server_is_configured_to_use_non_standard_ports
to the array value mssql_secured::skip_list
in your hiera data.
Attributes
Attribute Name | Short Description |
---|---|
port | This is the Integer containing Tcp port used by SQL Server. |
title | The database to apply the control to. |
title
The database to apply the control to.
All controls need an database to apply the control to. Here is a simple example:
mssql_secured::controls::control_name {'MSSQLSERVER':}
In this example, the string DB is the database to apply the control to.
Back to overview of controls::sql_server_is_configured_to_use_non_standard_ports
port
This is the Integer containing Tcp port used by SQL Server. If Undef value is passed, TcpDynamicPort setting is set to true. Type: Optional[Integer]
Default:mssql_secured::lookup_setting('port', undef)
Back to overview of controls::sql_server_is_configured_to_use_non_standard_ports