Resize an LVM Partition on VMware

Accommodate growth of a VM by expanding an LVM partition At some point, a “physical volume” may have to be enlarged to accommodate growth on a VM. This is how you grow the filesystem of an existing VMDK without adding an additional disk to your VM. Enlarging a VMDK login to VMware Find the VM […]

Configure a default zone with firewalld

This is not meant as a full primer for firewalld. It is just meant to document changing the default zone. If you are looking for a more in-depth exposure to firewalld try https://www.hogarthuk.com/?q=node/9 Check available zones firewall-cmd --get-zones Check active zone firewall-cmd --get-active-zones Get current zone of interface (assumes it is in the public zone) […]

Send Security Onion logs to a centralized Graylog Server

Overview For anyone that doesn’t know, Security Onion is a custom Linux distribution running on Ubuntu that can be used as a Network Intrusion Detection System (NIDS). Security Onion integrates several configurable apps like BRO IDS, Snort, Suricata, and OSSEC to name a few. By default, there is an integrated ELSA Stack that can be […]

Sorting /etc/passwd and /etc/shadow Files

Sorting /etc/passwd and /etc/shadow files Sorting /etc/passwd and /etc/shadow files [root@server~]# cd /root/ [root@server~]# touch passwd.sorted shadow.sorted [root@server~]# chmod 644 passwd.sorted [root@server~]# chmod 600 shadow.sorted [root@server~]# sort -t: -n -k3,3 /etc/passwd >passwd.sorted [root@server~]# gawk -F: ‘{system(“grep \”^” $1 “:\” /etc/shadow”)}’ passwd.sorted >shadow.sorted [root@server~]# wc /etc/shadow shadow.sorted 211 211 10985 /etc/shadow 211 211 10985 shadow.sorted 422 […]

Setup internal yum repositories for CentOS and RedHat Servers Part 4

This is post 4 of 4 in the series “Setup internal yum repositories for CentOS and RedHat Servers” Configure RHEL/CentOS client machines Setup Note: Now that the storage nodes are configured, the repo files have to be updated on client nodes to point them at the new internal mirrors. This can be accomplished in a […]

Setup internal yum repositories for CentOS and RedHat Servers Part 3

This is post 3 of 4 in the series “Setup internal yum repositories for CentOS and RedHat Servers” Setup storage nodes Setup RHEL7 storage node Set hostname (example: el7repo) hostnamectl set-hostname el7repo Start apache and set to start on boot systemctl start httpd.service systemctl enable httpd.service Create base directory structure mkdir -p /var/www/html/repo/Package_Diff Create repo […]

Setup internal yum repositories for CentOS and RedHat Servers Part 2

This is post 2 of 4 in the series “Setup internal yum repositories for CentOS and RedHat Servers” Setup storage nodes Setup RHEL6 storage node Set hostname (example: el6repo) vi /etc/sysconfig/network Start apache and set to start on boot service httpd start chkconfig httpd on Create base directory structure mkdir -p /var/www/html/repo/Package_Diff Create repo config […]

Setup internal yum repositories for CentOS and RedHat Servers Part 1

This is post 1 of 4 in the series “Setup internal yum repositories for CentOS and RedHat Servers” Internal RHEL/CentOS repo for yum Overview The main goal for setting up internal yum repo (or mirror) servers is having more control and consistency over the software deployed within a RHEL/CentOS Linux environment. The process we used […]

Setup SaltStack on CentOS 7

Setup Salt Components on CentOS 7 Setup Note: This guide is basically copied from the salt docs¬†https://docs.saltstack.com/en/latest/topics/installation/rhel.html. The only reason for it to exist is to expand on the RHEL/CENTOS 7 post install specifics for adding firewall rules and enabling the service. Import SaltStack GPG-KEY rpm --import https://repo.saltstack.com/yum/redhat/7/x86_64/latest/SALTSTACK-GPG-KEY.pub Setup SaltStack repo file Edit /etc/yum.repos.d/saltstack.repo vi […]

Setting up a multi-tiered log infrastructure Part 11 -- Cluster Tuning

This is post 11 of 11 in the series “Setting up a multi-tiered log infrastructure” Tuning Graylog, Elasticsearch, and MongoDB for optimized cluster performance This has been an article a long time in the making. One problem with making changes to a complex clustered environment is that you may have to wait long periods of […]

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com