Категорії
Mail systems Misc, staff, other

[exim] multi SSL domain

Возникла задача реализовать схему, что бы в заголовках отображались домены, от имени которых идёт отправка. Причём, если будет подключение через SSL/TLS. И так, меняем такие параметры:

primary_hostname = $sender_address_domain. # что бы hostname соответствовал нужному домему

tls_certificate = ${if exists{/etc/ssl/${tls_sni}.crt}{/etc/ssl/${tls_sni}.crt}{/etc/ssl/default_domain.crt}}
tls_privatekey = ${if exists{/etc/ssl/${tls_sni}.key}{/etc/ssl/${tls_sni}.key}{/etc/ssl/default_domain.key}}

Категорії
Misc, staff, other

uwsgi debian

# apt-get install uwsgi-plugin-python uwsgi uwsgi-core

nginx.conf:

...
upstream graphite {
        server unix:/tmp/graphite.sock;
}
...
        location / {
                uwsgi_pass graphite;
                include uwsgi_params;           
        }
...
Категорії
Misc, staff, other

[make] Установка дерева в нужную папку

Допустим, у вас уже есть собранный пакет с определённым prefix’ом и вы хотите выполнить install в другую папку, но что бы не перевыбирать пакет. Используем такую команду:

# fakeroot
# make install DESTDIR= /test-dir

Категорії
Mail systems Misc, staff, other

[exim] demime deprecated in 4.88

Начиная с версии 4.88 acl demime признан устаревшим и больше недоступен:

JH/02 The obsolete acl condition “demime” is removed (finally, after ten
years of being deprecated). The replacements are the ACLs
acl_smtp_mime and acl_not_smtp_mime

Ниже совет с сайта forum.lissyara.su как правильно сделать замену acl’y

Категорії
Misc, staff, other

[tomcat] Правильно добавляем (обновляем) сертификат

Создаём цепочку сертификатов в убывающем порядке (сначала корневой, потом промежуточный1, промежуточный2):

# cat CAroot.crt intermediate_l1.crt intermediate_l2.crt > chain.crt

Генерируем p12-сертификат (обязательно пароль при экспорте ставим такой же, как и на файл keystore):

# openssl pkcs12 -export -chain -in domain.crt -inkey domain.key -out domain.p12 -name tomcat -CAfile chain.crt

Категорії
Misc, staff, other

inotify и сопутствующие утилиты

В статье будут рассмотрены варианты работы inotify/kqueue с утилитами типа rsync.

Категорії
Misc, staff, other Security

Условия для получения pci dss compliant

Ниже будут находится условия, при которых проходит тест на pci dss compliant с оценкой A и выше. Все тесты проводились с использованием ресурса https://www.htbridge.com/ssl/

Примечание.

exim, postfix,dovecot могут получить оценки ниже, чем nginx, потому что не используют OCSP stapling (просто нет соответствующих опций)

Категорії
Misc, staff, other Security WWW X-tools

web-cканнеры

WhatWeb. Официальный сайт https://whatweb.net

WhatWeb is a next generation web scanner.

WhatWeb recognises web technologies including content management systems (CMS), blogging platforms, statistic/analytics packages, JavaScript libraries, web servers, and embedded devices.

WhatWeb has over 1000 plugins, each to recognise something different. WhatWeb also identifies version numbers, email addresses, account IDs, web framework modules, SQL errors, and more.

Категорії
Misc, staff, other

[squid] High cpu load

Выдержка из документации:

Kerberos can keep a replay cache to detect the reuse of Kerberos
tickets (usually only possible in a 5 minute window) . If squid is
under high load with Negotiate(Kerberos) proxy authentication requests
the replay cache checks can create high CPU load. If the environment
does not require high security the replay cache check can be disabled
for MIT based Kerberos implementations by adding the following to the
startup script

KRB5RCACHETYPE=none export KRB5RCACHETYPE

Я всёс строку в rc-скрипт и перезапустил squid. Проверяем, применился ли данный enviroment:

Категорії
Misc, staff, other Security

tor exit node

Устанавливаем tor:

# aptitude install tor

Приводим конфиг torrc к такому виду:

Домашняя страничка Andy
Записки молодого админа
Самостоятельная подготовка к Cisco CCNA
Самостоятельная подготовка к Cisco CCNP