If the host has the NTP service enable but don’t send any data to the query, the server is configured correctly. ntpq -pncrv 192.168.123.12 timed out, nothing received ***Request timed out But … if you send a query and get Leer más
Secure NTP configuration
Tips: 1. Ensure you have the restrictions in ntp.conf restrict default ignore restrict -6 default ignore 2. Disable monitor to protect of the CVE-2013-5211 vulnerability disable monitor 3. Use “nomodify nopeer noquery notrap” for each IP and network Leer más
Proxmox /etc/pve/nodes/node/qemu-server/ read-only after removing a node from a cluster
Problem: After removing a node from a Proxmox cluster, the node that remains active, the cluster is left in non-operational status: you can not create virtual machines, the machine deletion fails, you can not unblock the machines, the file systems Leer más
Script to delete an OpenVPN user
Script to remove vpn user. 1. Save it as deleteuservpn.sh 2. Give execution permission (chmod + x deleteuservpn.sh) Note: it is necessary to run it as root or sudo user Usage: deleteuservpn.sh Example: sudo deleteuservpn.sh jhon Script #!/bin/bash #Color definition Leer más
How to enable Proxy Settings for Yum
To be able to access to Ithe internet to update the system trogth proxy use: Option 1. Add to /etc/yum.conf these lines: proxy=http://<Proxy-Server-IP-Address>:<Proxy_Port> proxy_username=<Proxy-User-Name> proxy_password=<Proxy-Password> Option 2: Export the variables in the shell: export http_proxy=http://{Proxy-User-Name}:{Proxy-Password}@<Proxy-Server-IP-Address>:<Proxy-Port> export https_proxy= http://{Proxy-User-Name}:{Proxy-Password}@<Proxy-Server-IP-Address>:<Proxy-Port> export ftp_proxy= Leer más
Example of wmic authentication file in Linux
1.Create a file, with the content. username=WindowsUsername password=WindowsPassword domain=DomainNameOrWorkGroup 2. For security, assign the permission 400. Example mkdir /etc/wmic vi /etc/wmic/Win20008.txt chmod 400 /etc/wmic/Windows2008R2srv.txt cat /etc/wmic/Windows2008R2srv.txt username=zabbixmonitor password=SuperPassword domain=WORKGROUP Usage: wmic -A /etc/wmic/Windows2008R2srv.txt //192.168.123.58 “select * from Win32_ComputerSystem”
WMI quick examples
WMI quick examples: 1. Execute WQL in PowerShell Open PowerShell and use object Get-WmiObject with -Query argument. Examples: PS C:\Users\aurlen-win7-13> Get-WmiObject -Query “select * from Win32_ComputerSystem” Domain : S301M Manufacturer : LENOVO Model : 7034CP2 Name : T7PCAG935 PrimaryOwnerName : Leer más
Install wmi in CentOS
Problem: It is necessary to query Windows servers from Linux using Windows Management Instrumentation (WMI). Solution: Install the wmi client in Linux, follow these steps 1. Download wmi from www.atomicorp.com wget http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/wmi-1.3.14-4.el7.art.x86_64.rpm –2019-02-06 18:36:16– http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/wmi-1.3.14-4.el7.art.x86_64.rpm Connecting to 10.64.114.5:3128… connected. Leer más