Ha re nahaneng ka ts'ebeliso ea ts'ebeliso ea Windows Active Directory + NPS (li-server tse 2 ho netefatsa mamello ea liphoso) + 802.1x standard bakeng sa taolo ea phihlello le netefatso ea basebelisi - likhomphutha tsa domain - lisebelisoa. U ka tloaelana le khopolo ho latela maemo a Wikipedia, sehokelong:
Kaha "laboratori" ea ka e lekanyelitsoe mehloling, mesebetsi ea NPS le domain controller e lumellana, empa ke khothaletsa hore u ntse u arola litšebeletso tse joalo tsa bohlokoa.
Ha ke tsebe mekhoa e tloaelehileng ea ho hokahanya litlhophiso tsa Windows NPS (maano), kahoo re tla sebelisa lingoloa tsa PowerShell tse hlahisitsoeng ke mohlophisi oa mesebetsi (mongoli ke mosebetsi-'moho le 'na oa pele). Bakeng sa netefatso ea likhomphutha tsa domain le lisebelisoa tse sa khoneng 802.1x (mehala, likhatiso, joalo-joalo), pholisi ea sehlopha e tla hlophisoa 'me lihlopha tsa ts'ireletso li tla etsoa.
Qetellong ea sehlooho sena, ke tla u bolella ka tse ling tsa mekhoa e rarahaneng ea ho sebetsa le 802.1x - kamoo u ka sebelisang li-switches tse sa laoloang, li-ACL tse matla, joalo-joalo. Ke tla arolelana tlhahisoleseding e mabapi le "glitches" e ileng ea tšoaroa. .
Ha re qaleng ka ho kenya le ho lokisa li-failover NPS ho Windows Server 2012R2 (ntho e 'ngoe le e' ngoe e tšoana ka 2016): ka Mookameli oa Seva -> Eketsa Roles le Features Wizard, khetha feela Network Policy Server.
kapa ho sebelisa PowerShell:
Install-WindowsFeature NPAS -IncludeManagementTools
Tlhaloso e nyane - ho tloha bakeng sa Protected EAP (PEAP) o tla hloka setifikeiti se netefatsang bonnete ba seva (e nang le litokelo tse nepahetseng tsa ho e sebelisa), e tla ts'eptjoa ho likhomphutha tsa bareki, joale o tla hloka ho kenya karolo eo. Setifikeiti sa Boikarabello. Empa re tla nahana joalo CA o se o e kentse...
A re etseng se tšoanang ho seva sa bobeli. Ha re theheng foldara bakeng sa mongolo oa C: Scripts ho li-server ka bobeli le foldara ea marang-rang ho seva sa bobeli SRV2NPS-config$
Ha re theheng mongolo oa PowerShell ho seva sa pele C:ScriptsExport-NPS-config.ps1 ka litaba tse latelang:
Export-NpsConfiguration -Path "SRV2NPS-config$NPS.xml"
Ka mor'a sena, a re lokiseng mosebetsi ho Task Sheduler: "Export-NpsConfiguration"
powershell -executionpolicy unrestricted -f "C:ScriptsExport-NPS-config.ps1"
Matha bakeng sa basebelisi bohle - Matha ka litokelo tse phahameng ka ho fetisisa
Letsatsi le letsatsi - Pheta mosebetsi metsotso e meng le e meng e 10. nakong ea lihora tse 8
Ho NPS ea bekapo, lokisa import of configuration (maano):
Ha re theheng mongolo oa PowerShell:
echo Import-NpsConfiguration -Path "c:NPS-configNPS.xml" >> C:ScriptsImport-NPS-config.ps1
le mosebetsi oa ho e phetha metsotso e meng le e meng e 10:
powershell -executionpolicy unrestricted -f "C:ScriptsImport-NPS-config.ps1"
Matha bakeng sa basebelisi bohle - Matha ka litokelo tse phahameng ka ho fetisisa
Letsatsi le letsatsi - Pheta mosebetsi metsotso e meng le e meng e 10. nakong ea lihora tse 8
Joale, ho sheba, a re kenyelleng ho NPS ho e 'ngoe ea li-server (!) li-switches tse' maloa ho bareki ba RADIUS (IP le Lekunutu le Abelanoeng), maano a mabeli a kopo ea khokahano: KHOPO-Khokahanyo (Maemo: "Mofuta oa boema-kepe oa NAS ke Ethernet") le WiFi-Khoebo (Maemo: "Mofuta oa boema-kepe ba NAS ke IEEE 802.11"), hammoho le leano la marang-rang Fumana lisebelisoa tsa Cisco Network (Batsamaisi ba Marang-rang):
Условия:
Группы Windows - domainsg-network-admins
Ограничения:
Методы проверки подлинности - Проверка открытым текстом (PAP, SPAP)
Параметры:
Атрибуты RADIUS: Стандарт - Service-Type - Login
Зависящие от поставщика - Cisco-AV-Pair - Cisco - shell:priv-lvl=15
Ka lehlakoreng la switch, li-setting tse latelang:
aaa new-model
aaa local authentication attempts max-fail 5
!
!
aaa group server radius NPS
server-private 192.168.38.151 auth-port 1812 acct-port 1813 key %shared_secret%
server-private 192.168.10.151 auth-port 1812 acct-port 1813 key %shared_secret%
!
aaa authentication login default group NPS local
aaa authentication dot1x default group NPS
aaa authorization console
aaa authorization exec default group NPS local if-authenticated
aaa authorization network default group NPS
!
aaa session-id common
!
identity profile default
!
dot1x system-auth-control
!
!
line vty 0 4
exec-timeout 5 0
transport input ssh
escape-character 99
line vty 5 15
exec-timeout 5 0
logging synchronous
transport input ssh
escape-character 99
Kamora tlhophiso, kamora metsotso e 10, li-clientspolicyparameters kaofela li lokela ho hlaha ho backup NPS mme re tla khona ho kena ho li-switches re sebelisa ak'haonte ea ActiveDirectory, setho sa sehlopha sa domainsg-network-admins (seo re se entseng esale pele).
Ha re tsoeleng pele ho theha Active Directory - theha maano a sehlopha le password, theha lihlopha tse hlokahalang.
Group Policy Lik'homphieutha-8021x-Settings:
Computer Configuration (Enabled)
Policies
Windows Settings
Security Settings
System Services
Wired AutoConfig (Startup Mode: Automatic)
Wired Network (802.3) Policies
NPS-802-1x
Name NPS-802-1x
Description 802.1x
Global Settings
SETTING VALUE
Use Windows wired LAN network services for clients Enabled
Shared user credentials for network authentication Enabled
Network Profile
Security Settings
Enable use of IEEE 802.1X authentication for network access Enabled
Enforce use of IEEE 802.1X authentication for network access Disabled
IEEE 802.1X Settings
Computer Authentication Computer only
Maximum Authentication Failures 10
Maximum EAPOL-Start Messages Sent
Held Period (seconds)
Start Period (seconds)
Authentication Period (seconds)
Network Authentication Method Properties
Authentication method Protected EAP (PEAP)
Validate server certificate Enabled
Connect to these servers
Do not prompt user to authorize new servers or trusted certification authorities Disabled
Enable fast reconnect Enabled
Disconnect if server does not present cryptobinding TLV Disabled
Enforce network access protection Disabled
Authentication Method Configuration
Authentication method Secured password (EAP-MSCHAP v2)
Automatically use my Windows logon name and password(and domain if any) Enabled
Ha re theheng sehlopha sa tshireletso sg-computers-8021x-vl100, moo re tla eketsa likhomphutha tseo re batlang ho li abela vlan 100 le ho lokisa sefa bakeng sa pholisi ea sehlopha e entsoeng pele bakeng sa sehlopha sena:
U ka netefatsa hore pholisi e sebelitse ka katleho ka ho bula "Setsi sa Marang-rang le Se arolelanoang (Litlhophiso tsa Marang-rang le Marang-rang) - Ho fetola litlhophiso tsa adaptara (Ho lokisa litlhophiso tsa adaptara) - Thepa ea Adapter", moo re ka bonang tab ea "Authentication":
Ha u kholisehile hore pholisi e sebelisoa ka katleho, u ka tsoela pele ho theha leano la marang-rang ho NPS le likoung tsa ho fihlella boemo ba ho fihlella.
Ha re theheng leano la marang-rang neag-computers-8021x-vl100:
Conditions:
Windows Groups - sg-computers-8021x-vl100
NAS Port Type - Ethernet
Constraints:
Authentication Methods - Microsoft: Protected EAP (PEAP) - Unencrypted authentication (PAP, SPAP)
NAS Port Type - Ethernet
Settings:
Standard:
Framed-MTU 1344
TunnelMediumType 802 (includes all 802 media plus Ethernet canonical format)
TunnelPrivateGroupId 100
TunnelType Virtual LANs (VLAN)
Litlhophiso tse tloaelehileng bakeng sa switch port (ka kopo hlokomela hore ho sebelisoa mofuta oa netefatso ea "multi-domain" - Data & Voice, hape ho na le monyetla oa ho netefatsoa ka aterese ea mac. Nakong ea "phetoho" hoa utloahala ho sebelisa ho liparamente:
authentication event fail action authorize vlan 100
authentication event no-response action authorize vlan 100
ID ea vlan ha se "quarantine", empa ke eona eo komporo ea mosebelisi e lokelang ho ea ho eona kamora ho kena ka katleho - ho fihlela re na le bonnete ba hore ntho e ngoe le e ngoe e sebetsa kamoo e lokelang. Mekhahlelo e tšoanang e ka sebelisoa maemong a mang, ka mohlala, ha sesebelisoa se sa laoleheng se kenngoa ka har'a koung ena 'me u batla hore lisebelisoa tsohle tse hokahaneng le eona tse sa kang tsa feta ho netefatsa hore li oele ho vlan e itseng ("quarantine").
fetola litlhophiso tsa boema-kepe ka mokhoa oa 802.1x oa moamoheli oa li-domain tse ngata
default int range Gi1/0/39-41
int range Gi1/0/39-41
shu
des PC-IPhone_802.1x
switchport mode access
switchport nonegotiate
switchport voice vlan 55
switchport port-security maximum 2
authentication event fail action authorize vlan 100
authentication event no-response action authorize vlan 100
authentication host-mode multi-domain
authentication port-control auto
authentication violation restrict
mab
dot1x pae authenticator
dot1x timeout quiet-period 15
dot1x timeout tx-period 3
storm-control broadcast level pps 100
storm-control multicast level pps 110
no vtp
lldp receive
lldp transmit
spanning-tree portfast
no shu
exit
U ka etsa bonnete ba hore komporo ea hau le mohala oa hau li fetisitse netefatso ka katleho ka taelo ena:
sh authentication sessions int Gi1/0/39 det
Joale ha re theheng sehlopha (mohlala, sg-fgpp-mab ) ho Active Directory bakeng sa lifono ebe u eketsa sesebelisoa se le seng ho eona bakeng sa tlhahlobo (tabeng ea ka ke Setšoantšo sa Grandstream GXP2160 e nang le aterese ea mas 000b.82ba.a7b1 le resp. akhaonte domain name 00b82baa7b1).
Bakeng sa sehlopha se entsoeng, re tla theola litlhoko tsa leano la password (re sebelisa
Kahoo, re tla lumella tšebeliso ea liaterese tsa mas sesebelisoa joalo ka li-password. Kamora sena re ka theha leano la marang-rang bakeng sa netefatso ea 802.1x mab, ha re e bitse neag-devices-8021x-voice. Li-parameter ke tse latelang:
- Mofuta oa Port ea NAS - Ethernet
- Lihlopha tsa Windows - sg-fgpp-mab
- Mefuta ea EAP: Netefatso e sa ngolisoang (PAP, SPAP)
- Litšobotsi tsa RADIUS - Tse ling tsa Morekisi: Cisco - Cisco-AV-Pair - Boleng ba boleng: sesebelisoa-traffic-class=voice
Kamora ho netefatsoa ka katleho (u se ke oa lebala ho hlophisa switch port), a re shebeng tlhahisoleseling e tsoang boema-kepeng:
sh netefatso se int Gi1/0/34
----------------------------------------
Interface: GigabitEthernet1/0/34
MAC Address: 000b.82ba.a7b1
IP Address: 172.29.31.89
User-Name: 000b82baa7b1
Status: Authz Success
Domain: VOICE
Oper host mode: multi-domain
Oper control dir: both
Authorized By: Authentication Server
Session timeout: N/A
Idle timeout: N/A
Common Session ID: 0000000000000EB2000B8C5E
Acct Session ID: 0x00000134
Handle: 0xCE000EB3
Runnable methods list:
Method State
dot1x Failed over
mab Authc Success
Joale, joalo ka ha ho tšepisitsoe, a re shebeng maemo a seng makae a sa totobalang ka ho felletseng. Mohlala, re hloka ho hokahanya likhomphutha tsa basebelisi le lisebelisoa ka sesebelisoa se sa laoloang (switch). Tabeng ena, litlhophiso tsa port bakeng sa eona li tla shebahala tjena:
fetola litlhophiso tsa boema-kepe ka mokhoa oa 802.1x oa moamoheli oa li-multi-auth
interface GigabitEthernet1/0/1
description *SW – 802.1x – 8 mac*
shu
switchport mode access
switchport nonegotiate
switchport voice vlan 55
switchport port-security maximum 8 ! увеличиваем кол-во допустимых мас-адресов
authentication event fail action authorize vlan 100
authentication event no-response action authorize vlan 100
authentication host-mode multi-auth ! – режим аутентификации
authentication port-control auto
authentication violation restrict
mab
dot1x pae authenticator
dot1x timeout quiet-period 15
dot1x timeout tx-period 3
storm-control broadcast level pps 100
storm-control multicast level pps 110
no vtp
spanning-tree portfast
no shu
PS re hlokometse glitch e makatsang haholo - haeba sesebelisoa se ne se hokahantsoe ka sesebelisoa se joalo, 'me se hoketsoe sesebelisoa se laoloang, se ke ke sa sebetsa ho fihlela re qala bocha(!) switch. Ha ke so fumane mekhoa e meng ho rarolla bothata bona hajoale.
Ntlha e 'ngoe e amanang le DHCP (haeba ho sebelisoa ip dhcp snooping) - ntle le likhetho tse joalo:
ip dhcp snooping vlan 1-100
no ip dhcp snooping information option
Ka lebaka le itseng ha ke khone ho fumana aterese ea IP ka nepo ... le hoja sena e ka 'na ea e-ba tšobotsi ea seva sa rona sa DHCP
'Me Mac OS & Linux (e nang le ts'ehetso ea 802.1x ea tlhaho) leka ho netefatsa mosebedisi, le haeba netefatso ea aterese ea Mac e lokiselitsoe.
Karolong e latelang ea sengoloa, re tla sheba ts'ebeliso ea 802.1x bakeng sa Wireless (ho ipapisitse le sehlopha seo ak'haonte ea mosebelisi e leng ho sona, re tla e "lahlela" ho netweke e tsamaellanang (vlan), leha ba tla hokela ho eona. SSID e tšoanang).
Source: www.habr.com