Install and configure Zimbra 8.8 PolicyD

This example works for single server running Zimbra 8.8 su – zimbra zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd Next step must be executed as root cd /opt/zimbra/data/httpd/htdocs/ ln -s ln -s ../../cbpolicyd/share/webui Edit config file putting “#” on front of all the lines beginning with $DB_DSN and adding the following line just before the…

How to extend Centos 7 Linux LVM partition in AWS

This is how you would expand / partition on CenetOS based AWS image lsblk Install grpowpart yum install cloud-utils-growpart -y Grow partition growpart /dev/xvda 2 Reboot your instance Extend Volume pvresize /dev/xvda2 Extend logical volume lvextend -l +100%FREE /dev/mapper/centos-root Extend filesystem For ext4 resize2fs /dev/mapper/centos-root For XFS xfs_growfs /dev/centos/root

How to enable PolicyD on Zimbra server

Lets take a look at how to activate policyd 1. Enable policy su – zimbra zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd 2. Activate web interface Activate Policyd WebUI ( must run as root ) cd /opt/zimbra/data/httpd/htdocs/ ln -s /opt/zimbra/common/share/webui/ . 3. Edit configuration file edit /opt/zimbra/common/share/webui/includes/config.php #$DB_DSN=”sqlite:////tmp/cluebringer.sqlite”; #$DB_DSN=”mysql:host=localhost;dbname=cluebringer”; $DB_DSN=”sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb”; $DB_USER=”root”; 4. Setup .htaccess file…

CentOS 7 Deploy samba share with AD integration

We will use SAMBA and WINBIND to setup shares and to join Microsoft domain Install all necessary packages using yum manager. yum -y install samba-winbind samba-winbind-clients pam_krb5 krb5-workstation mdadm samba samba-client realmd Join your windows domain. In our case the name of the domain is lab.local realm join –user=administrator –client-software=winbind lab.local Start winbind service and…

Linux system monitoring and statistics gathering

We will look at some Linux commands which will help us monitor system performance, gather statistics and view historical resource usage. Monitoring connections with ss command ss should be preinstalled for most modern Linux distributions Show established TCP connection ss -t Show established UDP connections ss -u Show ports listening for TCP connections ss -ltn…

Install SoftEther server on Linux CentOS 7.2

We will take a look at hot to install SoftEther VPN on CentOS 7 and connect to it from Windows system running VPN manager. 1. We install CentOS 7 minimal with firewalld and selinux disabled. Make sure gcc is installed with all updates yum update -y yum install gcc 2. Download softether-vpnserver* package for Linux…

How to install zabbix monitoring tool on CentOS7

This is very quick how to on installing zabbix on CentOS 7. Install LAMP ‘ yum -y install httpd systemctl start httpd systemctl enable httpd yum -y install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum -y install mod_php72w php72w-cli php72w-common php72w-devel php72w-pear php72w-gd php72w-mbstring php72w-mysql php72w-xml php72w-bcmath yum -y install mariadb-server systemctl start mariadb systemctl enable mariadb…

Backup FreeNAS ZFS Dataset to Ubuntu running ZFS

We are setting up replication of snapshots for backup purposes on FreeNAS. We setup Ubuntu server and install ZFS on it. We will use this system to receive snapshot for backup purposes. We manually generated ssh key on FreeNAS. This was done by connecting to CLI and running commands below. ssh-keygen -q -t rsa scp…

Integrate FreeIPA with Windows 2016 Active Directory

In this LAB we will setup Trust based integration between FreeIPA and Windows 2016 Active Directory Forest Lab Information Windows 2016 Standard CentOS 7.5.1804 FreeIPA 4.5.4 Windows domain-win.poc.lab IPA domain-lin.poc.lab Kerberos realm names = WIN.POC.LAB ; LIN.POC.LAB Required Firewall ports TCP ports: 80, 88, 443, 389, 636, 88, 464, 53, 135, 138, 139, 445, 1024-1300…

Authenticate CentOS7 to Active Directory

Here we look at the steps we need to take to authenticate CentOS7 to Active Directory 1. Install the following packages yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common samba-common-tools krb5-workstation openldap-clients policycoreutils-python -y 2. Verify correct SRV records dig -t SRV _ldap._tcp.ad.example.com 3. Join your windows domain with account that has permissions to join…