Перейти до основного вмісту

Публікації

Показано дописи з березень, 2023

Копіювання файлів на Cisco ASA через scp

Для швикого копіювання конфігурації чи файлів на Cisco ASA можна використати scp. Потрібно 1. Enable SCP on the ASA To use the SCP method, you must first enable it on the firewall: hostname(config)# ssh scopy enable 2. Copying files to the ASA From a Unix/Linux host with OpenSSH or Tectia SSH installed: 1. Enter the following command: scp –v <filename> username@asa_address Example: scp –v asa803-19-k8.bin cisco@x.x.x.x Тут є і способи копіювання чере TFTP, FTP,HTTP, SMB, тощо https://community.cisco.com/t5/security-knowledge-base/asa-how-to-download-images-using-tftp-ftp-http-https-and-scp/tac-p/3109770 Або інший варіант On your linux system, to copy a file to the ASA scp filename myNewUusername@IP.Address.Of.ASA:filename On your linux system, to copy a file from the ASA scp myNewUusername@IP.Address.Of.ASA:filename . Please note – there is a colon ( : ) between the ip address/host name of the asa and the file name!! Пораду знайшов у https://www.seei.biz/using-scp-to-copy-files-

Проблеми налаштування Remote Desktop Server на Windows Server 2019

Для Windows Server 2019, під час звичної активації Remote Desktop Server треба звернути увагу, що для варіанта без Active Directory, тобто Workgroup, потрібно обирати варіант "Per-Device CAL – is the permanent license type assigned to a computer (device) that connects to the RDS server" Але після звичної активації чомусь локальний сервер лійензій не видає ліцензії і RDS пише, що лишився обмежений час користування. Треба внести два додаткових параметри You can specify the name of the RDS licensing server using the Local Group Policy Editor – gpedit.msc). The RD licensing settings are located under the following GPO section: Computer Configuration -> Policies -> Admin Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Licensing. There are two Remote Desktop settings that we need to configure: Use the specified Remote Desktop license servers – the address of the License Server is set; Set the Remote Desktop licensing mo

Налаштування nginx для Wordpress

    # Upstream to abstract backend connection(s) for php upstream php { server unix:/tmp/php-cgi.socket ; server 127.0.0.1 : 9000 ; } server { ## Your website name goes here. server_name domain.tld ; ## Your only path reference. root /var/www/wordpress ; ## This should be in your http block and if it is, it's not needed here. index index.php ; location = /favicon.ico { log_not_found off ; access_log off ; } location = /robots.txt { allow all ; log_not_found off ; access_log off ; } location / { # This is cool because no php is touched for static content. # include the "?$args" part so non-default permalinks doesn't break when using query string try_files $uri $uri/ /index.php? $args ;

iRedMail: надсилання пошти без авторизації

Для надсилання пошти з службовими повідомленями потрібно надсилати пошту без авторизації. Налаштування надсилання пошти без авторизації вказано тут https://docs.iredmail.org/allow.user.to.send.email.without.authentication.html Postfix Create a plain text file: /etc/postfix/sender_access.pcre, list all users' email addresses which are allowed to send email without smtp authentication. We use user email address user@example.com for example: /^user@example\.com$/ OK It's ok to use IP address instead like below: For more allowed sender format, please check Postfix manual page: access(5) . /^192\.168\.1\.1$/ OK  /^192\.168\.2\./ OK  /^172\.16\./ OK Update Postfix config file /etc/postfix/main.cf to use this pcre file: smtpd_sender_restrictions =        check_sender_access pcre:/etc/postfix/sender_access.pcre,        [...OTHER RESTRICTIONS HERE...] Restart/reload postfix to make it work: # /etc/init.d/postfix restart iRedAPD iRedAPD plugin reject_sender_login_mismatch will check forg

Налаштування backup на QNAP nsf у Proxmox

1. Потрібно налаштувати на QNAP теку для nfs, вмикнути використання nfs, налаштувати права на теку через nfs дозвіл. 2. Потрібно налаштувати у Proxmox nfs storage, та бекап на nfs storage. Але при створенні бекап з зупинкою VM, виникає помилка vzdump fails: Backup of VM failed - unable to read file qemu-server.conf Проблема виявилась з tmp текою. Потрібно вказати її у /etc/vzdump.conf наприклад tmpdir: /tmp   Пораду знайшов у https://forum.proxmox.com/threads/vzdump-fails-backup-of-vm-failed-unable-to-read-file-qemu-server-conf.45184/   а опис процедури бекап у https://pve.proxmox.com/wiki/Backup_and_Restore  

Не відкривається phpldapadmin в nginx

Завантажено та встановлено і налаштовано nginx для відкривання phpldapadmin. Завантаження і встановлення описано тут https://kifarunix.com/install-phpldapadmin-on-debian-10-debian-1 Phpldapadmin налаштовано не як субдомен, а як тека, для цього у теці /template налаштувань nginx створено ldapadmin.tmpl наступного змісту # Settings for phpLdapAdmin. # Redirect URI `/ldapadmin` to `/ldapadmin/`. location = /ldapadmin { return 301 /ldapadmin/; } location ~ ^/ldapadmin/(.*\.php)$ { include /etc/nginx/templates/hsts.tmpl; include /etc/nginx/templates/fastcgi_php.tmpl; fastcgi_param SCRIPT_FILENAME /usr/share/phpldapadmin/htdocs/$fastcgi_script_name; } location ~ ^/ldapadmin/(.*) { alias /usr/share/phpldapadmin/htdocs/$1; index index.php; } Але після перезапуску nginx у браузері отримуємо тільки повідомлення "No input file specified". У журналі помилок nginx отримуємо "FastCGI sent in stderr: "Unable to open primary script: /usr/share/nginx/html/ldapadmin/index.php (No su