# Add the response for certain A/AAAA lookups to an opnsense aliasipset=/facebook.com/instagram.com/cdninstagram.com/fbcdn.net/googlevideo.com/hosts_from_dns# Uncomment these if Unbound is still your primary DNS server; otherwise you’ll have a loop#no-resolv#server=8.8.8.8 Run a test DNS query, then check the contents of the new table (Firewall > Diagnostics > Aliases > hosts_from_dns) to see it populate. You can use this ..

Read more

скопировано отсюда If you use the apcupsd package and you want to receive email alerts when the status of your UPS changes, then read on. The information presented here will allow to you receive an email alert anytime the UPS status is anything other than “ONLINE”. This howto could be applied to any of the ..

Read more

скопировано отсюда Описание Сервис Linux NUT (Network UPS Tools) — это комплекс программ мониторинга и управления различными блоками бесперебойного питания (далее ИБП). Полный список поддерживаемых моделей можно получить, посмотрев список драйверов в файле /usr/share/nut/driver.list. В руководстве описана настройка отключения ПК агентом NUT при потере напряжения в сети на примере ИБП Eaton 5E 650iUSB на Ubuntu-подобных дистрибутивах. ..

Read more

# cat /etc/apache2/conf-enabled/nut.conf Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch AllowOverride All Require all granted <Files upsset.cgi> Allow from all# Deny from all </Files></Directory>Alias /nut /usr/share/nut/www/<Directory /usr/share/nut/www> Options Indexes FollowSymLinks <IfModule mod_dir.c> DirectoryIndex index.php index.html </IfModule></Directory> sudo a..

Read more

скопировано отсюда Для начала вам нужен туннель, в который будет направляться трафик для определённых ресурсов. По настройке туннелей в ROS много мануалов. Я просто приведу пример настройки WG, именно по нему нормальный ман нелегко найти. Хотя сложного ничего тут нет. В address нужно указать IP-адрес с подсетью (пример 10.7.0.2/24), в network подсеть (пример 10.7.0.0). /interface ..

Read more

скопировано отсюда Устанавливаем утилиту без GUI интерфейса. sudo apt install qbittorrent-nox Настройка QBitTorrent на Ubuntu Server 20.04 Для автоматического запуска qbittorrent в Ubuntu, давайте создадим службу: sudo nano /etc/systemd/system/qbittorrent-nox.service Со следующим содержанием: [Unit]Description=qBittorrent Command Line ClientAfter=network.target[Service]#Do not change to “simple”Type=forkingUser=usernameGroup=groupUMask=002ExecStart=/usr/bin/qbittorrent-nox -d –webui-port=8080Restart=on-failure[Install]WantedBy=multi-user.target Запускаем нашу службу: sudo systemctl start qbittorrent-nox Также давайте пропишем нашу службу в ..

Read more

скопировано отсюда Настроим логирование нашего оборудование.Проверяем есть ли у нас rsyslog командой  ls /etc/rsys* Вывод команды: ls /etc/rsys*/etc/rsyslog.conf /etc/rsyslog.conf.save /etc/rsyslog.conf.save.1 /etc/rsyslog.conf.save.2 /etc/rsyslog.conf.save.3 Если нет, то ставим apt-get install rsyslog После установки переходим в конфигурационный файл nano /etc/rsyslog.conf Настроим прием удаленных логов на наш сервер.Раскомментируем строчки: module(load=”imtcp”)  – модуль для приема логов по udp.input(type=”imtcp” port=”514″) –udp порт который будет слушать наш ..

Read more

copy from Tmpfs stands for Temporary File System.To create files inside a tmpfs-mounted folder means that they will disappear when you shutdown your PC or unmount the folder.How to create a tmpfs folder? First, create a folder to use as a mount point. mkdir [foldername] Then, transform it into a tmpfs folder. sudo mount -t tmpfs -o size=[desiredSize] tmpfs [folderPath] Now, ..

Read more

{:local lists {“Port-Scanners”}:local export “port-scanners”:local file “/ip firewall address-list\n”:foreach i in=$lists do={:set $file ($file . “remove [find list=\”” . $i . “\”]\n”):foreach j in=[/ip firewall address-list print as-value where list=$i] do={:set $file ($file . “add list=\”” . ($j->”list”) . “\” address=\”” . ($j->”address”) . “\”\n”)}}:if ([/file print count-only where name=$export] = 0) do={/file print file=$export:delay ..

Read more