fallocate -l 4G /swapfilechmod 600 /swapfilemkswap /swapfileswapon /swapfile If RAM = 4GBUse swap = 4GB–8GB If RAM = 8GBSwap = 2GB–4GB is fine
Linux
Step 1 – Install the QEMU Guest Agent inside Debian sudo apt updatesudo apt install qemu-guest-agent -y Step 2 – Enable and Start the Service sudo systemctl enable qemu-guest-agentsudo systemctl start qemu-guest-agent Check its running sudo systemctl status qemu-guest-agent Step 3 – Enable the Guest Agent in Proxmox Now switch […]
Set up a virtual IP on proxmox cluster apt updateapt install keepalived -y nano /etc/keepalived/keepalived.conf run this on all nodes on the master node add this to the keepalived.conf vrrp_instance VI_1 {state MASTERinterface vmbr0virtual_router_id 51priority 150advert_int 1 } on the slave nodes add this to keepalived.conf vrrp_instance VI_1 {state BACKUPinterface […]
This adjusts the number of days to keep quarantined email etc/MailScanner/defaults /var/www/mailscanner/conf.php days to keep need to be edited in both the above files
The best way is to create a new firewalld zone and we add the specific IP to that zone. To start with lets create an appropriate zone, in this example we will call the zone webmin-access and open webmin to 1 specific IP address. The port will be 10000 tcp […]
nmap -sT targetIP/hostname nmap –script vuln targetIP/hostname -O trys to identify Operating System, example nmap -sT -O targetIP/hostnam
IP=”$(echo $SSH_CONNECTION | cut -d ” ” -f 1)”HOSTNAME=$(hostname)NOW=$(date +”%e %b %Y, %a %r”) echo ‘Someone from ‘$IP’ logged into ‘$HOSTNAME’ on ‘$NOW’.’ | mail -s ‘SSH Login Notification’ YOUR_EMAIL_ADDRESS — -f FROM_EMAIL_ADDRESS
The below will open tcp port 10000 on FirewallD to get access to webmin firewall-cmd –permanent –zone=public –add-port=10000/tcp A reload of FirwwallD is needed to activate the permanent rule into the running environment firewall-cmd –reload
In common situation, "system ip address" is the ETH0 address. So edit /etc/sysconfig/network-scripts/ifcfg-eth0 with your favourite text editor and run service network restart ps don't forget to change default gw also, it's located in /etc/sysconfig/network.