<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Настройка Windows event collector (WEC) on Alertix</title><link>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/</link><description>Recent content in Настройка Windows event collector (WEC) on Alertix</description><generator>Hugo</generator><language>ru-RU</language><atom:link href="https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/index.xml" rel="self" type="application/rss+xml"/><item><title>Создание сертификатов с помощью OpenSSL</title><link>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/openssl_certificate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/openssl_certificate/</guid><description>&lt;div class="olist arabic"&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Создание gencert.cnf:&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="listingblock"&gt;
&lt;div class="content"&gt;
&lt;pre&gt;####################################################################
{empty}[ ca ]
default_ca = CA_default # The default ca section
####################################################################
{empty}[ CA_default ]
x509_extensions = usr_cert # The extentions to add to the cert
default_days = 1 # how long to certify for
default_crl_days= 30 # how long before next CRL
default_md = default # which md to use.
preserve = no # keep passed DN ordering
####################################################################
{empty}[ req ]
default_bits = 2048
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca # The extentions to add to the self signed cert
string_mask = nombstr
req_extensions = v3_req # The extensions to add to a certificate request
{empty}[ req_distinguished_name ]
countryName = Country Name (2 letter code)
countryName_default = RU
countryName_min = 2
countryName_max = 2
stateOrProvinceName = State or Province Name (full name)
localityName = Locality Name (eg, city)
0.organizationName = Organization Name (eg, company)
organizationalUnitName = Organizational Unit Name (eg, section)
commonName = Common Name (eg, your name or your server&amp;#39;s hostname)
commonName_max = 64
emailAddress = Email Address
emailAddress_max = 40
{empty}[ req_attributes ]
challengePassword = A challenge password
challengePassword_min = 4
challengePassword_max = 20
unstructuredName = An optional company name
{empty}[ usr_cert ]
basicConstraints=CA:FALSE
nsCertType = client, server
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer:always
{empty}[ server_cert ]
basicConstraints=CA:FALSE
nsCertType = server
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer:always
keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth
#crlDistributionPoints=URI:http://127.0.0.1/crl.pem
{empty}[ client_cert ]
basicConstraints=CA:FALSE
nsCertType = client
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer:always
keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = clientAuth
{empty}[ v3_req ]
#Extensions to add to a certificate request
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
nsCertType = server, client
{empty}[ v3_ca ]
#Extensions for a typical CA
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer:always
basicConstraints = CA:true&lt;/pre&gt;
&lt;/div&gt;</description></item><item><title>Формирование URL подключения к WEC</title><link>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/create_url/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/create_url/</guid><description>&lt;div class="olist arabic"&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Получение thumbprint сертификата (отпечатка корневого сертификата):&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="listingblock"&gt;
&lt;div class="content"&gt;
&lt;pre&gt;openssl x509 -in ca-cert.pem -noout -sha1 -fingerprint |sed s/^SHA1\ Fingerprint=//|sed s/://g&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;Сохраните полученный &lt;strong&gt;thumbprint&lt;/strong&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="olist arabic"&gt;
&lt;ol class="arabic" start="2"&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Формирование ссылки для GPO:&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;SERVER - FQDN сервера, в нашем примере - &lt;strong&gt;alertix-server.company.local&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;SERVERPORT - порт сервера, в нашем примере – &lt;strong&gt;5555&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;THUMBPRINT - отпечаток корневого сертификата, в нашем примере - &lt;strong&gt;5B5DBD86007C9B55749AE282DB759A8144D93434&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="listingblock"&gt;
&lt;div class="content"&gt;
&lt;pre class="highlight"&gt;&lt;code class="language-text" data-lang="text"&gt;HTTPS://&amp;lt;SERVER&amp;gt;:&amp;lt;SERVERPORT&amp;gt;/wsman/,Refresh=14400,IssuerCA=&amp;lt;THUMBPRINT&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;Пример:&lt;/p&gt;
&lt;/div&gt;
&lt;div class="listingblock"&gt;
&lt;div class="content"&gt;
&lt;pre class="highlight"&gt;&lt;code class="language-text" data-lang="text"&gt;HTTPS://alertix-server.company.local:5555/wsman/,Refresh=14400,IssuerCA=5B5DBD86007C9B55749AE282DB759A8144D93434&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;Сохраните эту ссылку.&lt;/p&gt;
&lt;/div&gt;</description></item><item><title>Распространение конфигурации посредством GPO</title><link>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/gpo/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/gpo/</guid><description>&lt;div class="olist arabic"&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;
&lt;p&gt;Убедитесь, что у вас установлены и сконфигурированы AD DS и DNS.&lt;/p&gt;
&lt;div class="imageblock"&gt;
&lt;div class="content"&gt;
&lt;img src="https://help.ngrsoftlab.ru/alertix/images/sources_configuration_0013.png" alt="image" width="468"/&gt;
&lt;/div&gt;
&lt;div class="title"&gt;Рисунок 1. &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Откройте Group Policy Management &amp;gt; Tools &amp;gt; Group Policy Management &amp;gt; Forest &amp;gt; Domains &amp;gt; YourDomain. Правой кнопкой мыши по Group Policy Objects &amp;gt; New и введите имя &lt;em&gt;WEF&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Сразу сделайте ссылку GPO для вашего дерева. Перетащите WEF &amp;gt; нажмите “OK”.&lt;/p&gt;
&lt;div class="imageblock"&gt;
&lt;div class="content"&gt;
&lt;img src="https://help.ngrsoftlab.ru/alertix/images/sources_configuration_0014.png" alt="image" width="256"/&gt;
&lt;/div&gt;
&lt;div class="title"&gt;Рисунок 2. &lt;/div&gt;
&lt;/div&gt;
&lt;div class="imageblock"&gt;
&lt;div class="content"&gt;
&lt;img src="https://help.ngrsoftlab.ru/alertix/images/sources_configuration_0015.png" alt="image" width="432"/&gt;
&lt;/div&gt;
&lt;div class="title"&gt;Рисунок 3. &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Редактирование GPO WEF. Правой кнопкой мыши по GPO WEF &amp;gt; Edit… &amp;gt; Computer Configuration &amp;gt; Policies &amp;gt; Administrative Templates &amp;gt; Windows Components &amp;gt; Event Forwarding. В появившемся справа окне правой кнопкой по Configure target Subscription Manager &amp;gt; Edit.&lt;/p&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;Необходимо включить политику, для этого переключите ее в &lt;strong&gt;Enabled&lt;/strong&gt;.&lt;/p&gt;
&lt;/div&gt;</description></item><item><title>Настройка клиентской машины</title><link>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/client_setup/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://help.ngrsoftlab.ru/alertix/3.9.1/sources-configuration/microsoft/wec/client_setup/</guid><description>&lt;div class="paragraph"&gt;
&lt;p&gt;&lt;strong&gt;Ручная настройка:&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="olist arabic"&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;
&lt;p&gt;Выполните &lt;code&gt;winrm quickconfig&lt;/code&gt;, примите изменения &amp;#34;[y/n]?&amp;#34;, введите &amp;#34;y&amp;#34;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Выполните &lt;code&gt;winrm get winrm/config/Client/Auth&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;Результат выполнения:&lt;/p&gt;
&lt;/div&gt;
&lt;div class="listingblock"&gt;
&lt;div class="content"&gt;
&lt;pre class="highlight"&gt;&lt;code class="language-text" data-lang="text"&gt;Auth
Basic = false
Digest = true
Kerberos = true
Negotiate = true
Certificate = true
CredSSP = true [Source=&amp;#34;GPO&amp;#34;]&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;Если в Certificate установлено значение false, ее следует включить с помощью следующей команды:&lt;/p&gt;
&lt;/div&gt;
&lt;div class="listingblock"&gt;
&lt;div class="content"&gt;
&lt;pre class="highlight"&gt;&lt;code class="language-text" data-lang="text"&gt;winrm set winrm/config/client/auth @\{Certificate=&amp;#34;true&amp;#34;}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="paragraph"&gt;
&lt;p&gt;Windows Remoting не поддерживает пересылку событий через незащищенный транспорт (например, HTTP). Поэтому следует отключить обычную аутентификацию:&lt;/p&gt;
&lt;/div&gt;</description></item></channel></rss>