???? ?? ???? ????? ????? ??????? ??? ?????? ?? ?? ???? ?? Áú»¢¶Ä²© ????? ???????.
?????? ???????? ??? ???? ?????? ?????? ?? ??????. ?? ??????? ?????? ???? ???? ?? ??????.
?? ?????? ?????? ???????? ????? ??? ?? ???? Áú»¢¶Ä²©. ?????? ?? ???? ???????? ????? (????? Áú»¢¶Ä²©) ?? ?????? ?????? (???? ???/?????? ?? Áú»¢¶Ä²© ?? ?????) ?? ?? ?? ??????? ???? ??????? ?????? ????????? ????????. ?????? ?????, ????? ??????? ?????? ????? ??? ?? ?? ??? ????? ??????.
::: ???? ?? ???? ??? ?????? ?????? ?????? 'zabbix' ???? ????? ?? ???? ????? ????? ????? ?????? ??????? ???? ?? ?????? ?????? ?? ??????. :::
??? ????? ?????? ??????? ??????? ???? ??????? ?????, Áú»¢¶Ä²© ????? ????? ????? ?? ???? ??????. ???? ????? ?? ???? ????? "?????". ???? ?? ???? ?????? ???? ???? ?????? "???? ?????", ?? ?? ?????? ????? ???????? ????? ????? ?????? ???????? ??????? ?????.
??? ?????? ???? ?? ???? ??????? ????? ??????. ??????, ???? ????? ¡ú ???????? ???? ???? ???? ????? ????? ??, ???????? ???? ?????? ?????? ?? ??? ??????? Áú»¢¶Ä²© API. ????? ?????? ?????? ??? ????? ?????? ?? ?????? ????? (??? ?????? ???? ???') ??? ?????? ????? ?? ???? ???? ???? ????? ???????.
?????? ????? ?????, ???? Áú»¢¶Ä²© ???? Áú»¢¶Ä²© ????? Áú»¢¶Ä²© ??? ????? 'zabbix' ???. ?? ??? ???? ????? ?????? ?? ???? ???? ?????? ?????? ?????? ???? (???? ??????? ???? ?????? ????), ?? ?????? ?? ????? ?????? ???:
???? Áú»¢¶Ä²© Windows ???????? ?? OpenSSL ???? ????? ?-SSL ???? ????? ?-c:\openssl-64bit. ?????? "openssl-64bit". ????? C: ???? ????? ?? ??? ??????? ????? ??????.
?? ?????? ?????, ?? ???? ????? ?? ??????? ??? ????? ???? ????? ???? ????? ???????? ????? ????? ?????.
??? ?? ????? ??????? ???? ????? ?-32 ?????? ? ?????? 64 ?????? ?? Windows.
?-RHEL, ???? ?? ????? mod_ssl:
??? ?????? ???? ?????? SSL:
??? ????? SSL:
openssl req -x509 -????? -???? 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/private/apache-selfsigned.key -out /etc/httpd/ssl/apache-selfsigned.crt
??? ?? ??????? ?????. ????? ?????? ????? ??? ?? ????? ?? ??? ??????. ??? ???? ????? ?? ?? ??????? ??? ???? ????? ????? ???? ???. ??? ???? ????? ?? ?-IP ??????? ????? ????? ??? ?? ??? ?? ?? ??????. ????? ????? example.com ????? ??.
?? ????? (??? 2 ??????) [XX]:
?? ?????? ?? ????? (?? ???) []:
?? ????? (????, ???) [??? ????? ????]:
?? ?????? (????, ????) [Default Company Ltd]:
?? ?????? ???????? (????, ????) []:
?? ????? (????, ??? ??? ?? ?? ????? ?? ???? ???) []:example.com
????? ???"? []:
???? ????? Apache SSL:
/etc/httpd/conf.d/ssl.conf
DocumentRoot "/usr/share/zabbix"
ServerName example.com:443
SSLCertificateFile /etc/httpd/ssl/apache-selfsigned.crt
SSLCertificateKeyFile /etc/httpd/ssl/private/apache-selfsigned.key
???? ???? ?? ????? Apache ??? ????? ?? ????????:
???? ???? ???????? ?????? Apache ????? ????? ????? ???? ???? ???? ?????? Áú»¢¶Ä²© SSL. ?? ???? ?????? example.com ?? ??? ?????? ?? ????.
/etc/httpd/conf/httpd.conf
#???? ?????
<VirtualHost *:*>
ServerName example.com
????? ????? / https://example.com
</VirtualHost>
???? ???? ?? ????? Apache ??? ????? ?? ????????:
??? ???? ?? ????? ?? Áú»¢¶Ä²© ???? ?????? ????? ????? ?? ????????, ????? ????? ????? ??????? ???? ????????.
??????, ??? ?????? ?? ??????? HSTS ???? ???? ?-Zabix ??? ?-Apache ????????:
???? ?? ?????? ???? ?????? ????? ?????????? ???:
???? ???? ?? ????? Apache ??? ????? ?? ????????:
To protect Áú»¢¶Ä²© frontend against Cross Site Scripting (XSS), data injection, and similar attacks, we recommend enabling Content Security Policy on the web server. To do so, configure the web server to return the .
The following CSP header configuration is only for the default Áú»¢¶Ä²© frontend installation and for cases when all content originates from the site's domain (excluding subdomains). A different CSP header configuration may be required if you are, for example, configuring the URL widget to display content from the site's subdomains or external domains, switching from OpenStreetMap to another map engine, or adding external CSS or widgets.
To enable CSP for your Áú»¢¶Ä²© frontend in Apache configuration, follow these steps:
1. Locate your virtual host's configuration file:
/etc/httpd/conf/httpd.conf
on RHEL-based systems/etc/apache2/sites-available/000-default.conf
on Debian/Ubuntu2. Add the following directive to your virtual host's configuration file:
<VirtualHost *:*>
Header set Content-Security-Policy: "default-src 'self' *.openstreetmap.org; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self' data: *.openstreetmap.org; style-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'self';"
</VirtualHost>
3. Restart the Apache service to apply the changes:
# On RHEL-based systems:
systemctl restart httpd.service
# On Debian/Ubuntu
systemctl restart apache2.service
????? ?????? ?? ?? ??????? ?? ??? ???????? ???? ??- ????? ????? ??? ????????. ??? ???????? ???? ????? ????? ?????? ????:
???? ?????? ?? ?????? ?? ??? ????? ??? ????? ????'? (?????? ? ?????) ???? ?????:
???? ?????? ?? ????? PHP (????? X-Powered-By HTTP) ?? ??? ????? ?- ???? ?????? php.ini (?????? ?????? ?????? ????):
????? ????? ???? ?? ??? ???????? ??? ????? ??????? ????? ?????? ?????.
???? ????? ??? ????? ????? ?? ??? ????? ?-mod_security (????? libapache2-mod-security2) ?? Apache. mod_security ????? ????? ?? ????? ???? ????? ????? ?? ?? ????? ????? ????????. ???? ????? ?? ?????? ??? ??? ?? ??? ????? "SecServerSignature" ??? ??? ???? ???? ?????? mod_security.
??? ???? ?????? ?? ??? ???????? ??? ??? ????? ???? ???? ????? ??? ?????/????? ?????? ?????.
????? ?????? ?? ??? ?????? ???????? ?????? ???? ??? ?????? ????? ?????. ??? ???????? ????? ???? ????? ?????? ?????? ????:
?? ??????/????? ?? ??? ?????? ???????? ?????? ???? ???? ???? ???????? ????? ??????. ???? ?????? ??????? "ErrorDocument" ??? ?????? ?? ? ?? ????? ????? ?????/???? ???? ??? ???????? ?? Apache (???? ??????).
??? ???? ?????? ?? ??? ???????? ??? ??? ????? ???? ???? ????? ??? ????/??? ??? ????? ???????? ?????? ????.
????? ????? ?? ?? ?????? ?? ??? ???????? ??? ?????? ????? ????. ?????? ????, webroot ?? ??? ???????? ???? ????? ?? ??? index.html (Apache2 ???????? ???? ??????):
?? ????? ?? ?? ?????? ?? ?? ????? ???? ?????? ????? ?????? ??? ????????.
?????? ????, Áú»¢¶Ä²© ????? ?? ????? HTTP X-Frame-Options ????? ?????? ?'SAMEORIGIN', ????? ???? ????? ???? ???? ????? ?????? ??? ??? ????.
????? ???? ?? Áú»¢¶Ä²© ??????? ???? ??????? URL ???????? (?????, ????? ???? ??????? ??? ????????) ????? ???? ?????? ????? ??? ?? ?? ??????? ?? ???? ??? ?????.
?????? ??? ?????? ?? ?????? ?? ?-frontend ?? Áú»¢¶Ä²© ??????? ???? ???? ?????? XSS ?-clickjacking. ???? ??????? ?????? ????? iframe sandboxing ?-X-Frame-Options ????? ????? HTTP ??????? ??? ?????. ??? ???? ???? ?? ???????? ????????? ???? ????? ?????? ????? ?????. ????? ???? ??? ?? X-Frame-Options ???? ??????? ???? ?????.
??? ?????? ?? ???????? ?? ?????? ??? ?? ??????, ?? ?? ???? ?????? ?? ????? ????? ui/data/top_passwords.txt
?? ??? ????? ????? ??? ????????. ???? ?? ???? ????? ?? ???????? ??????? ????? ?????????? ?????, ??????? ?????? ??????? ?????? ??????? ???? ?? ????? ????? ???????? ??? ???? ????? ?-????? ???????.
??????, ?-NGINX ???? ?????? ?? ????? ????? ?? ??? ????? ?'?????' ????????:
?-Apache - ??????? ???? .htacess
:
UTF-8 ??? ?????? ????? ????? ?? ??? Áú»¢¶Ä²©. ???? ??? ???? ??? ?? ????? ?????. ??????? ?????? ????? ?????? ??? ??? ?????? ????? ????? ?? ??????? ???? ????????? ??????.
??? ????? ???????? ?? Windows, ????? ?????? ?????? ????? ???? ????? ?? ??? ??????, ??? ????? ??????? ??????? ????? ??? ?????? ??????? ???? ???? ?? ????? ??????.