Network Access Protection – NAP DHCP

Bài lab cấu hình Network Access Protection (NAP) để đưa ra các điều kiện bảo mật trong hệ thống DHCP sau khi hoàn tất bài lab, hệ thống DHCP của bạn sẽ đáp ứng được các nhu cầu sau:

– Các máy client an toàn sẽ được DHCP Server cung cấp đầy đủ thông số TCP/IP
– Các máy client không an toàn sẽ không được DHCP Server cung cấp Default Gateway

I. Mô hình


II. Chuẩn bị

– Máy Server (BKNP-DC08-01): Windows Server 2008 đã nâng cấp Domain Controller
– Máy Client (BKNP-WRK-01): Windows 7 đã join vào domain


III. Hướng dẫn chi tiết


Bài lab bao gồm các bước:

  1. Cài đặt và cấu hình DHCP server
  2. Cài đặt Network Policy and Access Service
  3. Cấu hình NAP health policy server
  4. Cấu hình NAP enforcement trên DHCP Server
  5. Triển khai GPO để cấu hình NAP client
  6. Cấu hình máy Client nhận IP từ DHCP
  7. Cấu hình System Health validator
  8. Máy Client kiểm tra kết quả

Bắt đầu lab

1. Cài đặt và cấu hình DHCP server.
– Tại máy Server, log on Domain Administrator password 123456a@
– Mở Server Manager từ Administrative Tools, right click Roles, chọn Add Roles


– Trong cửa sổ Before You Begin, chọn Next


– Trong cửa sổ Select Server Roles, đánh dấu chọn vào ô DHCP Server, chọn Next


– Trong cửa sổ DHCP Server, chọn Next


– Trong cửa sổ Select Network Connection Bindings, kiểm tra có đánh dấu chọn vào địa chỉ IP hiện thời của máy Server, chọn Next

– Trong cửa sổ Specify IPv4 DNS Server Settings, để nguyên cấu hình mặc định, chọn Next

– Trong cửa sổ Specify IPv4 WINS Server Settings, chọn WINS is not required for applications on this network, chọn Next


– Trong cửa sổ Add or Edit DHCP Scopes, chọn Add


– Trong cửa sổ Add Scope, cấu hình thông số TCP/IP như trong hình, chọn OK


– Trong cửa sổ Add or Edit DHCP Scopes, chọn Next


– Trong cửa sổ Configure DHCPv6 Stateless Mode, chọn Disable DHCP stateless mode for this server, chọn Next


– Trong cửa sổ Authorize DHC Server, giữ cấu hình mặc định, chọn Next


– Trong cửa sổ Confirm Installation Selections, chọn Install


– Quá trình cài đặt diễn ra


– Trong cửa sổ Installation Results, chọn Close


– Mở DHCP từ Administrative Tools, kiểm tra đã cài đặt và cấu hình thành công DHCP Server

2. Cài đặt Network Policy and Access Service.
– Mở Server Manager từ Administrative Tools, right click Roles chọn Add Roles.


– Trong cửa sổ Before You Begin, chọn Next


– Trong cửa sổ Select Server Roles, đánh dấu chọn vào ô Network Policy and Access Services, chọn Next


– Trong cửa sổ Network Policy and Access Services, chọn Next


– Trong cửa sổ Select Role Services, đánh dấu chọn vào ô Network Policy Server, chọn Next


– Trong cửa sổ Confirm Installation Selections, chọn Install


– Trong cửa sổ Installation Results, chọn Close

3. Cấu hình NAP health policy server
– Trên máy Server, mở Network Policy Server từ Administrative Tools, bung Network Access Protection, chọn System Health Validators, Chọn Settings –right click Default Configuration chọn Properties


– Trong cửa sổ Windows Security Health Validators chọn Windows 7/Windows Vista
Trong cửa sổ Windows Security Health Validators, bỏ tất cả các ô chọn, trừ ô A firewall is enable for all network connections, chọn OK


– Trong cửa sổ Network Access Policy, bung Network Access Protection, right click Remediation Server Groups chọn New


– Trong cửa sổ New Remediation Server Group, nhập Rem1 vào ô Group Name, chọn Add


– Trong cửa sổ Add New Server, nhập IP của máy Server (192.168.1.2) vào ô IP address or DNS name, chọn Resolve, chọn OK

– Trong cửa sổ Network Policy Server, bung Policies, right click Health Policies chọn New


– Trong cửa sổ Create New Health Policy, nhập Compliant vào ô Policy name, trong ô Client SHV checks chọn Client passes all SHV checks, kiểm tra có đánh dấu chọn ô Windows Security Health Validator, chọn OK


– Trong cửa sổ Create New Health Policy, nhập Compliant vào ô Policy name, trong ô Client SHV checks chọn Client passes all SHV checks, kiểm tra có đánh dấu chọn ô Windows Security Health Validator, chọn OK’


– Kiểm tra đã tạo thành công 2 Health Policies: ComplientNonComplient

Trong cửa sổ Network Policy Server, bung Policies, vào Network Policies, lần lượt disable 2 policy đang có



– Right click Network Policies chọn New


– Trong cửa sổ Specify Network Policy Name and Connection Type, nhập Complian Full-Access vào ô Policy name, chọn Next


– Trong cửa sổ Specify Conditions, chọn Add


– Trong cửa sổ Select condition, chọn mục Health Policies, chọn Add


– Trong cửa sổ Health Policies, bung Health policies chọn Compliant, chọn OK


– Trong cửa sổ Specify Conditions, chọn Next


– Trong cửa sổ Specify Access Permission, chọn Access granted, chọn Next


– Trong cửa sổ Configure Authentication Methods, bỏ trắng các ô chọn, chỉ đánh dấu chọn vào ô Perform machine health check only, chọn Next


– Trong cửa sổ Configure Constraints, giữ cấu hình mặc định, chọn Next


– Trong cửa sổ Configure Settings, chọn mục NAP Enforcement, kiểm tra đảm bảo đang chọn Allow full network access, chọn Next


– Trong cửa sổ Completing New Network Policy, chọn Finish

– Right click Network Policies chọn New


– Trong cửa sổ Specify Network Policy Name and Connection Type, nhập NonCompliant Restricted vào ô Policy name, chọn Next


– Trong cửa sổ Specify Conditions, chọn Add


– Trong cửa sổ Select condition, chọn mục Health Policies, chọn Add


– Trong cửa sổ Health Policies, bung Health policies chọn NonCompliant, chọn OK


– Trong cửa sổ Specify Conditions, chọn Next


– Trong cửa sổ Specify Access Permission, chọn Access granted, chọn Next


– Trong cửa sổ Configure Authentication Methods, bỏ trắng các ô chọn, chỉ đánh dấu chọn vào ô Perform machine health check only, chọn Next


– Trong cửa sổ Configure Constraints, giữ cấu hình mặc định, chọn Next


– Trong cửa sổ Configure Settings, chọn mục NAP Enforcement, chọn Allow limited access, đánh dấu chọn ô Enable auto-remediation of client computers, chọn Next


– Trong cửa sổ Completing New Network Policy, chọn Finish


– Kiểm tra đã tạo thành công 2 Network Policies

4. Cấu hình NAP enforcement trên DHCP Server.
– Mở DHCP từ Administrative Tools, bung bknp-dc08-01.bachkhoa-npower.vn, bung IPv4, right click Scope [192.168.1.0] NAP Scope chọn Properties


– Trong cửa sổ NAP Scope Properties, vào tab Network Access Protection, chọn Enable for this scope, chọn Use default Network Access Protection profile, chọn OK


– Trong cửa sổ DHCP, bung
bknp-dc08-01.bachkhoa-npower.vn, bung IPv4, bung Scope [192.168.1.0] NAP Scope, right click Scope Options chọn Configure Option…


– Trong cửa sổ Scope Option, vào tab Advanced, trong ô Vendor Class chọn DHCP Standard Option, trong ô User Class chọn Default User Class, đánh dấu chọn 015 DNS Server Name, nhập bachkhoa-npower.vn vào ô String value, chọn OK


– Tương tự, right click Scope Option, chọn Configure Option
.


– Trong cửa sổ Scope Option, vào tab Advanced, trong ô Vendor Class chọn DHCP Standard Option, trong ô User Class chọn Default Network Access Protection Class, đánh dấu chọn 006 DNS Server, nhập 192.168.1.2 vào ô IP address, chọn Add


– Đánh dấu chọn 015 DNS Server Name, nhập restricted.bachkhoa-npower.vn vào ô String value, chọn OK


– Kiểm tra đã cấu hình thành công các DHCP Option

5. Triển khai GPO để cấu hình NAP client.
– Mở Active Directory Users and Computers từ Administrative Tools, right click bachkhoa-npower.vn chọn New, chọn Organizational Unit


– Trong cửa sổ New Object – Organizational Unit, đặt tên cho OU là NAP Clients, chọn OK


– Vào container Computer, move máy computer account của máy Client vào OU NAP Clients


– Kiểm tra computer account của máy Client đã được move vào OU NAP Client


– Mở Group Policy Management từ Administrative Tools, bung Forest:bachkhoa-npower.vn, bung Domains, bung bachkhoa-npower.vn, right click OU NAP Clients, chọn Create a GPO in this domain, and link it here…


– Trong cửa sổ New GPO, nhập NAP Policy vào ô Name, trong ô Source Starter GPO chọn (none), chọn OK


– Bung OU NAP Clients, right click NAP Policy chọn Edit


– Trong cửa sổ Group Policy Management Editor, vào đường dẫn Computer Configuration\Administrative Template\Windows Components\Security Center, right click Turn on Security Center (Domain PCs only), chọn Properties


– Trong cửa sổ Turn on Security Center (Domain PCs only) Properties, chọn Enable, chọn OK


– Trong cửa sổ Group Policy Management Editor, vào đường dẫn Computer Configuration\Windows Settings\Security Settings\Network Access Protection\NAP Client Configuration\Enforcement Clients, right click DHCP Quarantine Enforcement Client, chọn Enable


Trong cửa sổ Group Policy Management Editor, vào đường dẫn Computer Configuration\Windows Settings\Security Settings\System Services, right click Network Access Protection Agent, chọn Properties


– Trong cửa sổ Network Access Protection Agent Properties, đánh dấu chọn Define this policy setting, chọn Automatic, chọn OK


– Mở command line, gõ lệnh gpupdate /force

6. Cấu hình máy Client nhận IP từ DHCP
– Restart máy Client
– Log on BACHKHOA-NPOWER\administrator password 123456a@
– Trong Control Panel, mở Windows Firewall, kiểm tra máy Client có bật Windows Firewall
– Trong Control Panel, mở Network and Sharing Center


– Trong cửa sổ Network and Sharing Center, chọn Change adapter settings


– Trong cửa sổ Network Connections, right click Local Area Connection chọn
Properties


– Trong cửa sổ Local Area Connection Properties, bỏ dấu chọn Internet Protocol Vertion 6 (TCP/IPv6). Chọn Internet Protocol Vertion 4 (TCP/IPv4), chọn
Properties


– Trong cửa sổ Internet Protocol Vertion 4 (TCP/IPv4) Properties, chọn Obtain an IP address automatically, chọn Obtain DNS server address automatically, chọn OK


– Mở command line, gõ lệnh ipconfig /all, kiểm tra máy Client đã được DHCP server cung cấp đầy đủ thông số TCP/IP
– Kiểm tra Connection- specific DNS Suffixbachkhoa-npower.vn

– Kiểm tra Quarantine StateNot Restricted

Chú thích:
Máy client có bật Windows Firewall nên đủ điều kiện nhận được các thông số TCP/IP (kể cả Default Gateway) từ DHCP server cung cấp

7. Cấu hình System Health validator
– Tại máy Server, logon BACHKHOA-NPOWER\administrator password 123456a@
– Mở Network Policy Server từ Administrative Tools, bung Network Access Protection, chọn System Health Vatidators, right click Settings chọn Properties


– Trong cửa sổ Windows Security Health Validator Properties, đánh dấu chọn ô An antivirus application is on, chọn OK

8. Máy Client kiểm tra kết quả
– Mở máy Client, Log on BACHKHOA-NPOWER\administrator password 123456a@
– Mở Control Panel


– Trong Control Panel, mở Windows Firewall, chọn Windows Firewall on or off

– firewall bị tắt hết

Mở command line gõ lần lượt các lệnh:
ipconfig /release

ipconfig /renew

ipconfig /all

– Kiểm tra máy Client không đuợc cấp Default Gateway

– Kiểm tra Connection- specific DNS Suffixrestricted.nhatnghe.com

– Kiểm tra Quarantine State Restricted

Chú thích: Máy client không có cài chương trình Antivirus nên không được DHCP server cung cấp Default Gateway

Bình luận về bài viết này