Prohibit specifying IP connection to SQL Server

Source: Internet
Author: User

Purpose : Disable a database on one or some IP-connected servers

Method :

    1. 1. enable the IPSec Policy Agent service on the server, set to "Auto" start, such as:

650) this.width=650; "border=" 0 "width=" 627 "height=" 382 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>


    1. 2. Open "IP Security policy, on local computer." such as:

Run-gpedit.msc-Computer Configuration-windows Settings-security settings

-IP security Policy, on the local computer

650) this.width=650; "border=" 0 "width=" 438 "height=" 509 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

3.1 To Create an IP Security policy:

Right click on the right side of the space, in the Pop-up dialog box, select "Create IP Security Policy", steps such as:

650) this.width=650; "border=" 0 "width=" 417 "height=" 271 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 553 "height=" 420 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 550 "height=" 485 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 401 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 490 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 417 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 475 "height=" 462 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

3.2 To Create the Manage IP filter list

1 Right-click in the empty space and select "Manage IP filter lists and filter actions" in the pop-up options

650) this.width=650; "border=" 0 "width=" 293 "height=" 224 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

2 in the popup dialog box, select "Add" as

650) this.width=650; "border=" 0 "width=" 481 "height=" 499 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

3 create an Allow or block list in the IP filter list that jumps out, such as:

650) this.width=650; "border=" 0 "width=" 554 "height=" 411 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

4 Click "Add" to eject "Welcome to IP Filter Wizard", click Next 650) this.width=650; "border=" 0 "width=" 554 "height=" 329 "src="/e/u261/themes/ Default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat Center; border:1px solid #ddd; "alt=" Spacer.gif "/>

5. in the Description dialog box, you can describe the IP that you want to block for easy differentiation and memory, such as:

650) this.width=650; "border=" 0 "width=" 554 "height=" 362 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

6 ) The IP traffic source is a native IP, select my IP address, and then select Next, such as:

650) this.width=650; "border=" 0 "width=" 554 "height=" 381 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

7 I am to prohibit a single IP, so select "a specific IP address or subnet", people according to their own needs to choose.

650) this.width=650; "border=" 0 "width=" 554 "height=" 366 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

8 the protocol can be selected as needed because we want to prohibit the user from connecting to the SQL service, so we want to disable port 1433. First select "Any" and then click Next, such as:

650) this.width=650; "border=" 0 "width=" 554 "height=" 329 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

9 tick on "Edit Properties" and click Done, such as:

650) this.width=650; "border=" 0 "width=" 554 "height=" 327 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

Ten Click "Done" after the popup dialog box, select "Protocol", according to the known SQL Port is 1433 TCP protocol, these can be Baidu to. If you fill in:

650) this.width=650; "border=" 0 "width=" 480 "height=" 414 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

A Click "OK" to return to the "IP address filter List" and a column just added in the IP filter below, such as:

650) this.width=650; "border=" 0 "width=" 554 "height=" 371 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

) continue to click "OK" to return to "Manage IP filter lists and filter actions" as:

650) this.width=650; "border=" 0 "width=" 478 "height=" 372 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

3.3 filter Actions

650) this.width=650; "border=" 0 "width=" 476 "height=" 469 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 387 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 418 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 427 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 417 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 475 "height=" 472 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 269 "height=" 389 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>650" this.width=650; "border=" 0 "width=" 280 "height=" 390 "src="/e/u261/themes/default/images/spacer.gif "style = "Background:url ("/e/u261/lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= " Spacer.gif "/>

Click "Apply", then "close" to "OK", then tap "OK".

4. Enabling rules

1 Right-click on the created rule and select "Properties". Appear as:

650) this.width=650; "border=" 0 "width=" 463 "height=" 356 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

2 Click "Add" to add the rule as follows:

650) this.width=650; "border=" 0 "width=" 507 "height=" 380 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 479 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" to "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 553 "height=" to "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 477 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 554 "height=" 430 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

650) this.width=650; "border=" 0 "width=" 470 "height=" 579 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

Click "Apply" and then click "OK".

5. allocation Policy : This means that the service is turned on and the service will not take effect until it is opened. such as:

650) this.width=650; "border=" 0 "width=" 258 "height=" 183 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>650" this.width=650 "border=" 0 "width=" "height=" "src="/e/u261/themes/default/images/spacer.gif "Background:url ("/e/u261/lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= " Spacer.gif "/>

At this point: the banned IP client SQL cannot connect to the server.


Prohibit specifying IP connection to SQL Server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.