diff --git a/README.md b/README.md index e262f55..4d572f5 100644 --- a/README.md +++ b/README.md @@ -1835,6 +1835,10 @@ https://web.au-team.irpo ###

5. Настройте принт-сервер cups на сервере HQ-SRV.

+- Опубликуйте виртуальный pdf-принтер +- На клиенте HQ-CLI подключите виртуальный принтер как принтер по +умолчанию. + 1. Для начала необходимо установить пакеты cups и cups-pdf на HQ-SRV:

@@ -1848,11 +1852,11 @@ https://web.au-team.irpo Далее, необходимо отредактировать конфиг /etc/cups/cupsd.conf

- +

- +

> Во всех блоках Location необходимо добавить строку Allow all, как на скриншоте @@ -1865,44 +1869,40 @@ systemctl restart cups Скачиваем cups: -***apt-get install cups cups-pdf -y*** +***apt-get install cups system-config-printer -y*** + +Открываем пуск и ищем Print settings

- +

-На HQ-CLI выполняем следующую команду для подключения к принт-серверу: - -***lpadmin -p CUPS -E -v ipp://hq-srv.au-team.irpo:631/printers/PDF -m everywhere*** - -Установим принтер CUPS, как принтер по умолчанию: - -***lpoptions -d CUPS*** +Жмем add +Далее ENTER URL, вписываем http://192.168.100.2:631/printers/PDF

- +

-> Как можно заметить, принтер CUPS успешно подключен. - -Из-за того, что на HQ-CLI также установлен принт-сервер, можно отключить локальный принтер “Cups-PDF”, чтобы он не мешал. - -***lpadmin -x Cups-PDF*** +Жмем forward, опять forward, далее листаем вверх и выбираем CUPS-PDF

- +

-Теперь у нас остался один принтер. Проверим его работу. Откроем любой текстовый документ и попробуем его распечатать. +Жмем forward, Aply + +Появится print test page

- +

-Перейдем в веб-интерфейс CUPS по адресу https://hq-srv.au-team.irpo:631 -- Вкладка *Принтеры* -- Выбираем наш принтер. -- Жмем кнопку Показать все задания +Если видите что принтер в простое то поздравляю + +

+ +

###

6. Реализуйте логирование при помощи rsyslog на устройствах HQ-RTR, BR-RTR, BR-SRV

diff --git a/files/hq-rtr/nftables.conf b/files/hq-rtr/nftables.conf index 70d4fdf..337cceb 100755 --- a/files/hq-rtr/nftables.conf +++ b/files/hq-rtr/nftables.conf @@ -8,8 +8,8 @@ table inet filter { log prefix "Dropped Input: " level debug iif lo accept ct state established,related accept - tcp dport { 22,514,53,80,443,3015,445,139,88,2026,8080 } accept - udp dport { 53,123,500,4500,88,137,8080 } accept + tcp dport { 22,514,53,80,443,3015,445,139,88,2026,8080,631 } accept + udp dport { 53,123,500,4500,88,137,8080,631 } accept ip protocol icmp accept ip protocol esp accept ip protocol gre accept @@ -20,8 +20,8 @@ table inet filter { log prefix "Dropped forward: " level debug iif lo accept ct state established,related accept - tcp dport { 22,514,53,80,443,3015,445,139,88,2026,8080 } accept - udp dport { 53,123,500,4500,88,137,8080 } accept + tcp dport { 22,514,53,80,443,3015,445,139,88,2026,8080,631 } accept + udp dport { 53,123,500,4500,88,137,8080,631 } accept ip protocol icmp accept ip protocol esp accept ip protocol gre accept diff --git a/images/module3/CUPS allow.png b/images/module3/CUPS allow.png new file mode 100644 index 0000000..bf5d3e1 Binary files /dev/null and b/images/module3/CUPS allow.png differ diff --git a/images/module3/CUPS.png b/images/module3/CUPS.png new file mode 100644 index 0000000..ae4c5e7 Binary files /dev/null and b/images/module3/CUPS.png differ diff --git a/images/module3/Listen cups.png b/images/module3/Listen cups.png new file mode 100644 index 0000000..b55e21c Binary files /dev/null and b/images/module3/Listen cups.png differ diff --git a/images/module3/generik.png b/images/module3/generik.png new file mode 100644 index 0000000..384c497 Binary files /dev/null and b/images/module3/generik.png differ diff --git a/images/module3/print tst.png b/images/module3/print tst.png new file mode 100644 index 0000000..3170882 Binary files /dev/null and b/images/module3/print tst.png differ diff --git a/images/module3/print-settings.png b/images/module3/print-settings.png new file mode 100644 index 0000000..bf61f2b Binary files /dev/null and b/images/module3/print-settings.png differ diff --git a/images/module3/швду зкштеук.png b/images/module3/швду зкштеук.png new file mode 100644 index 0000000..cbd5b6e Binary files /dev/null and b/images/module3/швду зкштеук.png differ