Extend/Reduce LVM’s (Logical Volume Management) in Linux Rumi, March 15, 2020 My Server Setup – Requirements Operating System – CentOS 6.5 with LVM Installation Server IP – 192.168.0.200 How to Extend Volume Group and Reduce Logical Volume Logical Volume Extending Currently, we have One PV, VG and 2 LV. Let’s list them one by one using following commands. # pvs #… Continue Reading
Squid as Transparent Proxy on CentOs 6.4 Rumi, March 6, 2020 In this tutorial I am going to configure squid acting as transparent proxy what does it means? It means we have no part of configurations on the client end, just to setup squid in transparent proxy mode so it will sits between client and internet. And redirect their port 80 requests to 3128 port which is… Continue Reading
Reset lost root password on Ubuntu 18.04 Bionic Beaver Linux Rumi, March 5, 2020 Boot Into GRUB menu The first step is to reboot into the GRUB menu. If Ubuntu 18.04 Bionic Beaver is the only operating system installed you need to keep pressing SHIFT for the GRUB menu to show up. Edit Grub Menu Using arrows select the Ubuntu menu or the menu… Continue Reading
install and Configure SAMBA in Debian Squeeze Rumi, March 4, 2020March 6, 2020 Samba is a free software re-implementation of SMB/CIFS networking protocol, originally developed by Australian Andrew Tridgell. As of version 3, Samba provides file and print services for various Microsoft Windows clients and can integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a domain… Continue Reading
Change cluster node IP in Proxmox Rumi, March 4, 2020 To update the present cluster host proxmox following files need to be updated: /etc/network/interfaces /etc/hosts /etc/pve/corosync.conf (only on one node necessary) However, corosync.conf needs special way to edit the file! Edit corosync.conf Editing the corosync.conf file is not always very straightforward. There are two on each cluster node, one in… Continue Reading
Enable and install SSL on Debian 8 apache server Rumi, February 29, 2020 Configure Apache2 for SSL. root@www:~# vi /etc/apache2/sites-available/default-ssl.conf # line 3: change to webmaster’s email ServerAdmin webmaster@srv.world # line 32,33: change to the one created in [1] SSLCertificateFile /etc/ssl/private/server.crt SSLCertificateKeyFile /etc/ssl/private/server.key root@www:~# a2ensite default-ssl Enabling site default-ssl. Continue Reading
How to define outgoing firewall rules on pFSense Rumi, February 24, 2020 LAN rules are defining rights to access internet services from your local network. So, if you block port 80 and 443 nobody from your LAN will be able to access internet. WAN rules are defining access to the resources in your LAN (or DMZ) from the internet. In this short… Continue Reading
Set DNS server address temporarily Rumi, February 24, 2020 Write it into /etc/resolv.conf: echo “nameserver 1.2.3.4″ | sudo tee /etc/resolv.conf Upon successful DHCP connection, it should be overwritten back to the “correct” DNS server. Continue Reading
Ubuntu 18.04: Disable Netplan switch back to networking /etc/network/interfaces Rumi, February 24, 2020June 17, 2020 The following procedure works for Ubuntu 18.04 (Bionic Beaver) I. Reinstall the ifupdown package: # apt-get update # apt-get install ifupdown II. Configure your /etc/network/interfaces file with configuration stanzas such as: source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback allow-hotplug enp0s3 auto enp0s3 iface enp0s3 inet static address 192.168.1.133 netmask 255.255.255.0 broadcast 192.168.1.255… Continue Reading
Disable swap in Linux Rumi, February 24, 2020 Identify configured swap devices and files with cat /proc/swaps. Turn off all swap devices and files with swapoff -a. Remove any matching reference found in /etc/fstab. Optional: Destroy any swap devices or files found in step 1 to prevent their reuse. Due to your concerns about leaking sensitive information, you… Continue Reading