通过使用本网站, 您同意 隐私政策.
接受
进入IT进入IT进入IT
  • 家
  • 信息技术专家
  • 技术
  • 微软
    • 天蓝色
    • 配置管理器/SCCM
    • 数字PM
    • 协调者
    • Hyper-V
    • 微软 Edge 预览体验
    • 微星指数
    • 办公室 365
    • 办公室内幕
    • 电力商业智能
    • Skype
    • SQL服务器
    • 团队
  • 视窗
    • Windows 管理中心
    • Windows客户端
    • Windows服务器
  • SCCM查询集合列表
阅读: How to Create SQL Server 2016 Firewall Rules using GUI and PowerShell
字体调整器氨基酸
进入IT进入IT
字体调整器氨基酸
  • 家
  • 信息技术专家
  • 技术
  • 微软
  • 视窗
  • SCCM查询集合列表
搜索
  • 家
  • 信息技术专家
  • 技术
  • 微软
    • 天蓝色
    • 配置管理器/SCCM
    • 数字PM
    • 协调者
    • Hyper-V
    • 微软 Edge 预览体验
    • 微星指数
    • 办公室 365
    • 办公室内幕
    • 电力商业智能
    • Skype
    • SQL服务器
    • 团队
  • 视窗
    • Windows 管理中心
    • Windows客户端
    • Windows服务器
  • SCCM查询集合列表
SQL服务器

How to Create SQL Server 2016 Firewall Rules using GUI and PowerShell

出版: 二月 11, 2024
2 最小阅读量
分享

How to Create SQL Server 2016 Firewall Rules using GUI and PowerShell.

内容
带图形用户界面:使用 PowerShell:

带图形用户界面:

  1. Start the system and log in (with admin rights user);

2. Open 控制面板. Click on Windows 防火墙;

3. After that click on Advanced Settings;

4. Windows 防火墙 console open. If you click on 特性 (right side) – you can disable firewalls for all networks. We going to Inbound Rules (left side) for our rule creation;

5. Click on New Rule;

6. Rule creation process begins. 就我而言, I create a rule for Inbound TCP ports. For Rule Type select option Port 然后单击 下一个;

7. For Protocol and Ports select option TCP 和 Special Local Ports. 我用 2 ports for SCCM deployment (8080, 14331) and also added standard SQL TCP ports (1433,1434,4022). After entering ports click 下一个;

8. For Action (in this case leave by default Allow the connection). 点击 下一个;

9. For Profile, leave by default, 点击 下一个;

10. Enter a name for your rule (for example SQL TCP Ports), so you can easily find it in the future. 点击 结束;

11. In the last screenshot, you see two rules, which I created for SQL Server. One for TCP ports and one for UPD port (1434).

使用 PowerShell:

  1. Run PowerShell as Administrator;

2. Enter text and press 进入:

New-NetFirewallRule -DisplayName "SQL TCP Ports" -Direction Inbound –Protocol TCP –LocalPort 8080, 1433, 1434, 4022, 14331 -Action allow

Some explanations:

-DisplayName “SQL TCP Ports” – Rule Name;

-Direction Inbound – Rule direction;

–Protocol TCP – Protocol (TCP or UDP);

–LocalPort – Your ports;

-Action allow – Allow or Disallow.

标记:微软SQL服务器微软视窗服务器Powershell系统中心系统中心配置管理器技术预览
上一篇 Improve Configuration Manager Performance: Rebuild Indexes and SQL Memory and Database Limits
下一篇 Guide to Install SQL Server 2012 for SCCM 2012 R2 | Step-by-Step Tutorial
发表评论 发表评论

发表回复 取消回复

您的电子邮件地址不会被公开. 必填字段已标记 *

该网站使用 Akismet 来减少垃圾邮件. 了解您的评论数据的处理方式.

翻译

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
经过 Transposh - translation plugin for wordpress

热门帖子

Windows Server 的系统要求 2016
Windows服务器
配置管理器查询集合列表
配置管理器查询集合列表
configmgr
在经典团队网站的新式页面上启用结构化/托管导航
技术
SCCM 无法从 MP 获取预期版本的 DP 位置
configmgr

最近的帖子

在 Ubuntu 上安装和配置 Fail2ban 以实现 SSH 保护 24.04
Linux
在AlmaLinux上启用和配置FirewallD
Linux
AlmaLinux中的用户创建和SSH密钥设置
Linux
如何在AlmaLinux上重置密码
Linux

© 2023 进入IT

转到移动版本
欢迎回来!

登录您的帐户

用户名或电子邮件地址
密码

丢失密码?