IPTables D-NAT Firewall Rule Rumi, September 2, 2023 # Generated by iptables-save v1.3.5 on Tue Oct 28 23:57:58 2014 *filter :INPUT ACCEPT [2590:547311] :FORWARD ACCEPT [11426:731834] :OUTPUT ACCEPT [3989:328501] -A INPUT -i eth0 -j ACCEPT COMMIT # Completed on Tue Oct 28 23:57:58 2014 # Generated by iptables-save v1.3.5 on Tue Oct 28 23:57:58 2014 *mangle :PREROUTING ACCEPT… Continue Reading
Create A Network Bridge on CentOS 7 Rumi, September 1, 2023 Install Module CentOS 7 comes with bridging module loaded on system boot by default. Use the following command to verify whether the module is loaded or not. # modinfo bridge filename: /lib/modules/3.10.0-327.el7.x86_64/kernel/net/bridge/bridge.ko alias: rtnl-link-bridge version: 2.3 license: GPL rhelversion: 7.2 srcversion: 905847C53FF43DEFAA0EB3C depends: stp,llc intree: Y vermagic: 3.10.0-327.el7.x86_64 SMP mod_unload modversions… Continue Reading
Install transmission on Centos 7 Rumi, August 22, 2023 Step 1. First, you need to enable the EPEL repository on your system. yum install epel-release yum -y update Step 2. Installing Transmission on CentOS 7. Just run the following command to install Transmission: yum install transmission-cli transmission-common transmission-daemon Once complete, you can verify Transmission is installed by running the… Continue Reading
Add User to Sudoers on CentOS Rumi, March 21, 2023March 21, 2023 You can do this in 2 methods- however, IMHO method-2 usually works great for me. Method-1 Step 1: Verify the Wheel Group is Enabled Your CentOS 7 installation may or may not have the wheel group enabled. Open the configuration file by entering the command: visudo Scroll through the configuration… Continue Reading
Remove Old Unused Kernels in CentOS Rumi, January 26, 2023 To display the current version of Linux (kernel) running on your system, run this command. # uname -sr Linux 3.10.0-327.10.1.el7.x86_64 List All Installed Kernels on System You can list all kernel images installed on your system like this. # rpm -q kernel kernel-3.10.0-229.el7.x86_64 kernel-3.10.0-229.14.1.el7.x86_64 kernel-3.10.0-327.3.1.el7.x86_64 kernel-3.10.0-327.10.1.el7.x86_64 Removing Old/Unused Kernels on… Continue Reading
CentOS 7 Server Installation with Software RAID Rumi, September 4, 2022 Install the Operating System Boot from the USB flash drive and select Install CentOS 7 When the welcome screen of the CentOS installer appears, choose your language and just click on Continue Continue Reading
Install MySQL 5.7 on CentOS 7 Rumi, August 10, 2022 Preqrequsite: It’s better to have installed development tools and disable NetworkManager for a produciton envrionment. You can optionally follow the steps- Disabling NetworkManager: systemctl stop NetworkManager systemctl disable NetworkManager Install Development Tools: yum group install “Development Tools” Remove MariaDB pre-installed libraries- yum -y remove mariadb-libs Enable MySQL Repository First of… Continue Reading
Postfix SMTP Rotating IP using IPTables Rumi, August 1, 2022 I got 5 Public IPs. i’m Gonna configure them, so Postfix can use multiple interfaces/ips for outgoing smtp connections. First we need creating Interface aliases for those 5 public IPs. In my system, using centos: # cd /etc/sysconfig/network-scripts/ # cp ifcfg-eth0 ifcfg-eth0:1 Edit ifcfg-eth0:1 # vi ifcfg-eth0\:1 DEVICE=eth0 <– default… Continue Reading
Install MariaDB 10 on Centos or Springdale Linux Rumi, June 18, 2022 Step 1: Add MariaDB Yum Repository Start by adding the MariaDB YUM repository file MariaDB.repo for RHEL/CentOS and Fedora systems. # nano /etc/yum.repos.d/MariaDB.repo Now add the following lines to your respective Linux distribution version as shown. [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 Continue Reading
Disable ipv6 on Linux Machine Rumi, June 18, 2022 Disable on Centos/RHEL system: 1. Append below lines in /etc/sysctl.conf: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 NOTE : To disable IPv6 on a single interface add below lines to /etc/sysctl.conf : net.ipv6.conf.[interface].disable_ipv6 = 1 ### put interface name here [interface] net.ipv6.conf.default.disable_ipv6 = 1 2. To make the settings affective, execute… Continue Reading