Категорії
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 к такому виду:

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

rssh – разрешить scp/sftp, но не ssh

rssh is a restricted shell for use with OpenSSH, allowing only scp and/or sftp. It now also includes support for rdist, rsync, and cvs. For example, if you have a server which you only want to allow users to copy files off of via scp, without providing shell access, you can use rssh to do that. For a list of platforms on which rssh is known to work, see the Platform Support Page.

Небольшой пример использования можно найти здесь

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

Генераторы трафика

Scapy is a powerful interactive packet manipulation program. It is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more. It can easily handle most classical tasks like scanning, tracerouting, probing, unit tests, attacks or network discovery (it can replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, etc.).

 

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