Category Archives: Open Source

Install PAC Manager ( Ubuntu )

Perl Auto Connector Manager adalah Open Source GUI Linux yang biasa digunakan untuk me manage ssh, telnet, sftp, rdesktop, vnc, ftp session ke Server.

[1] Install PAC manager


sudo dpkg -i pac-
(Reading database ... 428047 files and directories currently installed.)
Preparing to unpack pac- ...
Unpacking pac ( ...
dpkg: dependency problems prevent configuration of pac:
 pac depends on gtk2-engines-pixbuf; however:
 Package gtk2-engines-pixbuf is not installed.
 pac depends on libvte9; however:
 Package libvte9 is not installed.
 pac depends on libexpect-perl; however:
 Package libexpect-perl is not installed.
 pac depends on libnet-proxy-perl; however:
 Package libnet-proxy-perl is not installed.
 pac depends on libyaml-perl; however:
 Package libyaml-perl is not installed.
 pac depends on libcrypt-cbc-perl; however:
 Package libcrypt-cbc-perl is not installed.
 pac depends on libcrypt-blowfish-perl; however:
 Package libcrypt-blowfish-perl is not installed.
 pac depends on libgtk2-gladexml-perl; however:
 Package libgtk2-gladexml-perl is not installed.
 pac depends on libgtk2-ex-simple-list-perl; however:
 Package libgtk2-ex-simple-list-perl is not installed.
 pac depends on libnet-arp-perl; however:
 Package libnet-arp-perl is not installed.
 pac depends on libossp-uuid-perl; however:
 Package libossp-uuid-perl
dpkg: error processing package pac (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:

Jika terjadi Error seperti di atas solusi nya adalah seperti di bawah ini

sudo apt-get install -f

[2] Buka PAC Manager

Semoga bermanfaat


uGet ( Open Source Download Manager )

uGet adalah Open Source Download Manager yang support untuk Sistem Operasi Linux.

[1] Install uGet via official uGet PPA

sudo add-apt-repository ppa:plushuang-tw/uget-stable
sudo apt update
sudo apt install uget
space@space:~$ sudo apt install uget
[sudo] password for space: 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following packages were automatically installed and are no longer required:
 linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic
 linux-image-4.4.0-93-generic linux-image-extra-4.4.0-93-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 285 not upgraded.
Need to get 317 kB of archives.
After this operation, 1.313 kB of additional disk space will be used.
Get:1 xenial/universe amd64 uget amd64 2.0.2-1ubuntu1 [317 kB]
Fetched 317 kB in 2s (148 kB/s)
Selecting previously unselected package uget.
(Reading database ... 389775 files and directories currently installed.)
Preparing to unpack .../uget_2.0.2-1ubuntu1_amd64.deb ...
Unpacking uget (2.0.2-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up uget (2.0.2-1ubuntu1) ...

space@space:~$ uget-gt

[2] GUI uGet Download Manager

Semoga bermanfaat – AnditoYugoWicaksono


FreeIPA Server

Konfigurasi IPA Server

[1] Preparing setting server IPA

yum -y update

Install bind-utils untuk cek nama domain sebelum digunakan

yum -y install bind-utils bind bind-dyndb-ldap

Gunakan command dig untuk mengecek Record A

dig +short

Setting hosts di server

vi /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 ipa

[2] Install IPA Server

yum -y install ipa-server
[root@ipa ~]# ipa-server-install

The log file for this installation can be found in /var/log/ipaserver-install.log
This program will set up the IPA Server.

This includes:
 * Configure a stand-alone CA (dogtag) for certificate management
 * Configure the Network Time Daemon (ntpd)
 * Create and configure an instance of Directory Server
 * Create and configure a Kerberos Key Distribution Center (KDC)
 * Configure Apache (httpd)
 * Configure the KDC to enable PKINIT

To accept the default shown in brackets, press the Enter key.

Do you want to configure integrated DNS (BIND)? [no]: no

Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form

Server host name []:

The domain name has been determined based on the host name.

Please confirm the domain name []:

The kerberos protocol requires a Realm name to be defined.
This is typically the domain name converted to uppercase.

Please provide a realm name [IPA.ZOTMA.CO.ID]: IPA.ZOTMA.CO.ID
Certain directory server operations require an administrative user.
This user is referred to as the Directory Manager and has full access
to the Directory for system management tasks and will be added to the
instance of directory server created for IPA.
The password must be at least 8 characters long.

Directory Manager password: 
Password must be at least 8 characters long
Directory Manager password: 
Password (confirm):

The IPA server requires an administrative user, named 'admin'.
This user is a regular system account used for IPA server administration.

IPA admin password: 
Password (confirm):

The IPA Master Server will be configured with:
IP address(es):
Domain name:
Realm name: IPA.ZOTMA.CO.ID

Continue to configure the system with these values? [no]: yes

The following operations may take some minutes to complete.
Please wait until the prompt is returned.

Configuring NTP daemon (ntpd)
 [1/4]: stopping ntpd
 [2/4]: writing configuration
 [3/4]: configuring ntpd to start on boot
 [4/4]: starting ntpd
Done configuring NTP daemon (ntpd).
Configuring directory server (dirsrv). Estimated time: 30 seconds
 [1/45]: creating directory server instance
 [2/45]: enabling ldapi
 [3/45]: configure autobind for root
 [4/45]: stopping directory server
 [5/45]: updating configuration in dse.ldif
 [6/45]: starting directory server
 [7/45]: adding default schema
 [8/45]: enabling memberof plugin
 [9/45]: enabling winsync plugin
 [10/45]: configuring replication version plugin
 [11/45]: enabling IPA enrollment plugin
 [12/45]: configuring uniqueness plugin
 [13/45]: configuring uuid plugin
 [14/45]: configuring modrdn plugin
 [15/45]: configuring DNS plugin
 [16/45]: enabling entryUSN plugin
 [17/45]: configuring lockout plugin
 [18/45]: configuring topology plugin
 [19/45]: creating indices
 [20/45]: enabling referential integrity plugin
 [21/45]: configuring certmap.conf
 [22/45]: configure new location for managed entries
 [23/45]: configure dirsrv ccache
 [24/45]: enabling SASL mapping fallback
 [25/45]: restarting directory server
 [26/45]: adding sasl mappings to the directory
 [27/45]: adding default layout
 [28/45]: adding delegation layout
 [29/45]: creating container for managed entries
 [30/45]: configuring user private groups
 [31/45]: configuring netgroups from hostgroups
 [32/45]: creating default Sudo bind user
 [33/45]: creating default Auto Member layout
 [34/45]: adding range check plugin
 [35/45]: creating default HBAC rule allow_all
 [36/45]: adding entries for topology management
 [37/45]: initializing group membership
 [38/45]: adding master entry
 [39/45]: initializing domain level
 [40/45]: configuring Posix uid/gid generation
 [41/45]: adding replication acis
 [42/45]: activating sidgen plugin
 [43/45]: activating extdom plugin
 [44/45]: tuning directory server
 [45/45]: configuring directory to start on boot
Done configuring directory server (dirsrv).
Configuring Kerberos KDC (krb5kdc)
 [1/10]: adding kerberos container to the directory
 [2/10]: configuring KDC
 [3/10]: initialize kerberos container
WARNING: Your system is running out of entropy, you may experience long delays
 [4/10]: adding default ACIs
 [5/10]: creating a keytab for the directory
 [6/10]: creating a keytab for the machine
 [7/10]: adding the password extension to the directory
 [8/10]: creating anonymous principal
 [9/10]: starting the KDC
 [10/10]: configuring KDC to start on boot
Done configuring Kerberos KDC (krb5kdc).
Configuring kadmin
 [1/2]: starting kadmin 
 [2/2]: configuring kadmin to start on boot
Done configuring kadmin.
Configuring certificate server (pki-tomcatd). Estimated time: 3 minutes
 [1/29]: configuring certificate server instance
 [2/29]: exporting Dogtag certificate store pin
 [3/29]: stopping certificate server instance to update CS.cfg
 [4/29]: backing up CS.cfg
 [5/29]: disabling nonces
 [6/29]: set up CRL publishing
 [7/29]: enable PKIX certificate path discovery and validation
 [8/29]: starting certificate server instance
 [9/29]: configure certmonger for renewals
 [10/29]: requesting RA certificate from CA
 [11/29]: setting up signing cert profile
 [12/29]: setting audit signing renewal to 2 years
 [13/29]: restarting certificate server
 [14/29]: publishing the CA certificate
 [15/29]: adding RA agent as a trusted user
 [16/29]: authorizing RA to modify profiles
 [17/29]: authorizing RA to manage lightweight CAs
 [18/29]: Ensure lightweight CAs container exists
 [19/29]: configure certificate renewals
 [20/29]: configure Server-Cert certificate renewal
 [21/29]: Configure HTTP to proxy connections
 [22/29]: restarting certificate server
 [23/29]: updating IPA configuration
 [24/29]: enabling CA instance
 [25/29]: migrating certificate profiles to LDAP
 [26/29]: importing IPA certificate profiles
 [27/29]: adding default CA ACL
 [28/29]: adding 'ipa' CA entry
 [29/29]: configuring certmonger renewal for lightweight CAs
Done configuring certificate server (pki-tomcatd).
Configuring directory server (dirsrv)
 [1/3]: configuring TLS for DS instance
 [2/3]: adding CA certificate entry
 [3/3]: restarting directory server
Done configuring directory server (dirsrv).
Configuring ipa-otpd
 [1/2]: starting ipa-otpd 
 [2/2]: configuring ipa-otpd to start on boot
Done configuring ipa-otpd.
Configuring ipa-custodia
 [1/5]: Generating ipa-custodia config file
 [2/5]: Making sure custodia container exists
 [3/5]: Generating ipa-custodia keys
 [4/5]: starting ipa-custodia 
 [5/5]: configuring ipa-custodia to start on boot
Done configuring ipa-custodia.
Configuring the web interface (httpd)
 [1/22]: stopping httpd
 [2/22]: setting mod_nss port to 443
 [3/22]: setting mod_nss cipher suite
 [4/22]: setting mod_nss protocol list to TLSv1.0 - TLSv1.2
 [5/22]: setting mod_nss password file
 [6/22]: enabling mod_nss renegotiate
 [7/22]: disabling mod_nss OCSP
 [8/22]: adding URL rewriting rules
 [9/22]: configuring httpd
 [10/22]: setting up httpd keytab
 [11/22]: configuring Gssproxy
 [12/22]: setting up ssl
 [13/22]: configure certmonger for renewals
 [14/22]: importing CA certificates from LDAP
 [15/22]: publish CA cert
 [16/22]: clean up any existing httpd ccaches
 [17/22]: configuring SELinux for httpd
 [18/22]: create KDC proxy config
 [19/22]: enable KDC proxy
 [20/22]: starting httpd
 [21/22]: configuring httpd to start on boot
 [22/22]: enabling oddjobd
Done configuring the web interface (httpd).
Configuring Kerberos KDC (krb5kdc)
 [1/1]: installing X509 Certificate for PKINIT
Done configuring Kerberos KDC (krb5kdc).
Applying LDAP updates
Upgrading IPA:. Estimated time: 1 minute 30 seconds
 [1/9]: stopping directory server
 [2/9]: saving configuration
 [3/9]: disabling listeners
 [4/9]: enabling DS global lock
 [5/9]: starting directory server
 [6/9]: upgrading server
 [7/9]: stopping directory server
 [8/9]: restoring configuration
 [9/9]: starting directory server
Restarting the KDC
Please add records in this file to your DNS system: /tmp/ipa.system.records.GWAaxa.db
Configuring client side components
Using existing certificate '/etc/ipa/ca.crt'.
Client hostname:
DNS Domain:
IPA Server:
BaseDN: dc=ipa,dc=zotma,dc=co,dc=id

Skipping synchronizing time with NTP server.
New SSSD config will be created
Configured sudoers in /etc/nsswitch.conf
Configured /etc/sssd/sssd.conf
[try 1]: Forwarding 'schema' to json server ''
[try 1]: Forwarding 'ping' to json server ''
[try 1]: Forwarding 'ca_is_enabled' to json server ''
Systemwide CA database updated.
Adding SSH public key from /etc/ssh/
Adding SSH public key from /etc/ssh/
Adding SSH public key from /etc/ssh/
[try 1]: Forwarding 'host_mod' to json server ''
Could not update DNS SSHFP records.
SSSD enabled
Configured /etc/openldap/ldap.conf
Configured /etc/ssh/ssh_config
Configured /etc/ssh/sshd_config
Configuring as NIS domain.
Client configuration complete.
The ipa-client-install command was successful

Setup complete

Next steps:
 1. You must make sure these network ports are open:
 TCP Ports:
 * 80, 443: HTTP/HTTPS
 * 389, 636: LDAP/LDAPS
 * 88, 464: kerberos
 UDP Ports:
 * 88, 464: kerberos
 * 123: ntp

2. You can now obtain a kerberos ticket using the command: 'kinit admin'
 This ticket will allow you to use the IPA tools (e.g., ipa user-add)
 and the web user interface.

Be sure to back up the CA certificates stored in /root/cacert.p12
These files are required to create replicas. The password for these
files is the Directory Manager password

[3] Check fungsi dari IPA Server

Check terlebih dahulu bahwa Kerberos terinstall dengan benar dengan mencoba menginisialisasi token Kerberos untuk pengguna admin.

[root@ipa ~]# kinit admin
Password for admin@IPA.ZOTMA.CO.ID: 
[root@ipa ~]# klist 
Ticket cache: KEYRING:persistent:0:0
Default principal: admin@IPA.ZOTMA.CO.ID

Valid starting Expires Service principal
11/01/18 15:55:36 12/01/18 15:55:31 krbtgt/IPA.ZOTMA.CO.ID@IPA.ZOTMA.CO.ID

Ok, step yang terakhir verifikasi bahwa server IPA berfungsi dengan benar

[root@ipa ~]# ipa user-find admin
1 user matched
 User login: admin
 Last name: Administrator
 Home directory: /home/admin
 Login shell: /bin/bash
 Principal alias: admin@IPA.ZOTMA.CO.ID
 UID: 315600000
 GID: 315600000
 Account disabled: False
Number of entries returned 1

[4] Konfigurasi Firewall Server

firewall-cmd --add-service={ssh,dns,freeipa-ldap,freeipa-ldaps} --permanent 

firewall-cmd --reload 

[5] Masuk ke url IPA

Untuk check autentikasi nya bisa menggunakan skenario ini Web authentication menggunakan LDAP ( CentOS )

Untuk mengenali DN ldap nya bisa menggunakan cara seperti di bawah ini :

[root@ipa ~]# ldapsearch -x uid=nama
# extended LDIF
# LDAPv3
# base <dc=ipa,dc=zotma,dc=co,dc=id> (default) with scope subtree
# filter: uid=nama
# requesting: ALL

# nama, users, compat,
dn: uid=nama,cn=users,cn=compat,dc=ipa,dc=zotma,dc=co,dc=id
objectClass: posixAccount
objectClass: ipaOverrideTarget
objectClass: top
gecos: nama saya
cn: nama saya
uidNumber: 315600005
gidNumber: 315600005
loginShell: /bin/sh
homeDirectory: /home/nama
ipaAnchorUUID:: OklQQTppcGEuYnJpc3lhcmlhaC5jby5pZDoxNjg2NTIxNi1mN2ExLTExZTctOW
uid: nama

# nama, users, accounts,
dn: uid=nama,cn=users,cn=accounts,dc=ipa,dc=zotma,dc=co,dc=id
displayName: nama saya
uid: nama
objectClass: top
objectClass: person
objectClass: organizationalperson
objectClass: inetorgperson
objectClass: inetuser
objectClass: posixaccount
objectClass: krbprincipalaux
objectClass: krbticketpolicyaux
objectClass: ipaobject
objectClass: ipasshuser
objectClass: ipaSshGroupOfPubKeys
objectClass: mepOriginEntry
loginShell: /bin/sh
initials: ns
gecos: nama saya
sn: saya
homeDirectory: /home/nama
givenName: nama
cn: nama saya
uidNumber: 315600005
gidNumber: 315600005

# search result
search: 2
result: 0 Success

# numResponses: 3
# numEntries: 2

Setelah tau DN nya sebagai contoh sudah di beri tanda Bold


lalu tambahkan DN di atas ke dalam konfigurasi, dan lakukan login autentikasi.

Catatan : FreeIPA di atas tidak setup DNS, hanya untuk authentication LDAP user.

Cheers – AnditoYugoWicaksono


Install + Konfigurasi PowerDNS (dengan menggunakan MariaDB) dan PowerAdmin di CentOS 7

PowerDNS adalah DNS yang dikonfigurasi dengan berbagai backend seperti menggunakan relasional database, file zona seperti BIND atau algoritma load balancing / failover. Untuk installasi dan konfigurasinya akan kita bahas di halaman ini :

[1] Install dan Enable EPEL repository

# yum install epel-release -y

[2] Install MariaDB

yum install mariadb mariadb-server -y

# Start dan enable service mariadb
systemctl enable mariadb.service
Created symlink from /etc/systemd/system/ to /usr/lib/systemd/system/mariadb.service.

systemctl start mariadb

# Setup MariaDB

# mysql_secure_installation


In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!

By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

[3] Install PowerDNS

# yum install pdns pdns-backend-mysql -y

[4] Koneksikan ke Mysql dan buat database dengan menggunakan nama powerdns

# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database powerdns;
Query OK, 1 row affected (0.00 sec)

Buat user database untuk powerdns

MariaDB [(none)]> GRANT ALL ON powerdns.* TO 'powerdns'@'YourIPServerPowerDNS' IDENTIFIED BY 'PasswordUser';
Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Buat tabel database PowerDNS

MariaDB [(none)]> use powerdns;
Database changed
MariaDB [powerdns]> CREATE TABLE domains (id INT auto_increment,name VARCHAR(255) NOT NULL,master VARCHAR(128) DEFAULT NULL,last_check INT DEFAULT NULL,type VARCHAR(6) NOT NULL,notified_serial INT DEFAULT NULL,account VARCHAR(40) DEFAULT NULL,primary key (id));
Query OK, 0 rows affected (0.01 sec)

MariaDB [powerdns]> CREATE UNIQUE INDEX name_index ON domains(name);
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0

MariaDB [powerdns]> CREATE TABLE records (id INT auto_increment,domain_id INT DEFAULT NULL,name VARCHAR(255) DEFAULT NULL,type VARCHAR(6) DEFAULT NULL,content VARCHAR(255) DEFAULT NULL,ttl INT DEFAULT NULL,prio INT DEFAULT NULL,change_date INT DEFAULT NULL,primary key(id));
Query OK, 0 rows affected (0.00 sec)

MariaDB [powerdns]> CREATE INDEX rec_name_index ON records(name);
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0

MariaDB [powerdns]> CREATE INDEX nametype_index ON records(name,type);
Query OK, 0 rows affected (0.00 sec)
Records: 0 Duplicates: 0 Warnings: 0

MariaDB [powerdns]> CREATE INDEX domain_id ON records(domain_id);
Query OK, 0 rows affected (0.00 sec)
Records: 0 Duplicates: 0 Warnings: 0

MariaDB [powerdns]> CREATE TABLE supermasters ( ip varchar(25) NOT NULL, nameserver VARCHAR(255) NOT NULL, account VARCHAR(40) DEFAULT NULL);
Query OK, 0 rows affected (0.01 sec)

MariaDB [powerdns]> quit; 

[5] Open file konfigurasi powerDNS

# vi /etc/pdns/pdns.conf

Tambahkan di baris paling bawah

Enable launch=gmysql


Start dan Enable service PowerDNS

# systemctl start pdns
# systemctl enable pdns
Created symlink from /etc/systemd/system/ to /usr/lib/systemd/system/pdns.service.

[6] Install dependency packages sebelum melakukan installasi PowerAdmin

# yum install httpd php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mhash gettext -y
# yum install php-pear-DB php-pear-MDB2-Driver-mysql -y

Start dan Enable Service httpd

# systemctl start httpd
# systemctl enable httpd
Created symlink from /etc/systemd/system/ to /usr/lib/systemd/system/httpd.service.

[7] Download packet PowerAdmin
Masuk ke direktor, lalu lakukan download packet menggunakan wget

# pwd


Lakukan extract

# tar xvf poweradmin-2.1.7.tgz

Restart httpd service
# systemctl restart httpd

[8] Open WebBrowser dengan alamat IP Server PowerDNS http://YourIP/poweradmin-2.1.7/install/

Catatan untuk Hostname diisi dengan IPServerPowerDNS

OK, Selanjutnya mengatur akses terbatas ke admin dengan mengeksekusi kode yang diberikan oleh poweradmin di terminal.

# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> GRANT SELECT, INSERT, UPDATE, DELETE ON powerdns.* TO 'poweradmin'@'IP_Server' IDENTIFIED BY 'PasswordUser';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> quit

cd /var/www/html/poweradmin-2.1.7/inc

// Database settings
$db_host = 'YourIP_DBServer';
$db_port = '3306';
$db_user = 'YourUserDB';
$db_pass = 'YourPassword';
$db_name = 'powerdns';
$db_type = 'mysql';
$session_key = 'MasukanSessionKeyYangSudahDiGenearateDiWebBrowser';
$dns_hostmaster = 'YourDNSHostMaster';
$dns_ns1 = '';
$dns_ns2 = '';

Ok, Konfigurasi Poweradmin selesai

Jalankan perintah berikut untuk mensupport URL yang digunakan oleh provider DNS dynamic lainnya.

Enable mod_rewrite di Konfigurasi Apache.

# /var/www/html/poweradmin-2.1.7 
# cp install/htaccess.dist .htaccess

Remove “install” folder.

# rm -rf /var/www/html/poweradmin-2.1.7/install/

[9] Sekarang coba buka web browser URL http://YourIPServer/poweradmin-2.1.7/

[-] Menambahkan Master Zones

Ok sekarang check List Zones

[-] Untuk delete DNS Master Zone, Pilih List Zone dan klik icon trash

[10] Untuk reser Password Admin bisa klik ke “Change Password” karena pada saat pertama kali selesai Konfigurasi Admin password kosong login tidak menggunakan password.

OK, Silahkan mencoba..

Cheers – AnditoYugoWicaksono


Lynis ( Security Audit Tool )

[1] Install lynis

# yum --enablerepo=epel -y install lynis

[2] Penggunanan lynis ( Command )

# lynis

[ Lynis 2.5.5 ]

 Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
 welcome to redistribute it under the terms of the GNU General Public License.
 See the LICENSE file for details about using this software.

2007-2017, CISOfy -
 Enterprise support available (compliance, plugins, interface and tools)

[+] Initializing program

 Usage: lynis command [options]


 audit system : Perform local security scan
 audit system remote <host> : Remote security scan
 audit dockerfile <file> : Analyze Dockerfile

 show : Show all commands
 show version : Show Lynis version
 show help : Show help

 update info : Show update details


--no-log : Don't create a log file
 --pentest : Non-privileged scan (useful for pentest)
 --profile <profile> : Scan the system with the given profile file
 --quick (-Q) : Quick mode, don't wait for user input

Layout options
 --no-colors : Don't use colors in output
 --quiet (-q) : No output
 --reverse-colors : Optimize color display for light backgrounds

Misc options
 --debug : Debug logging to screen
 --view-manpage (--man) : View man page
 --verbose : Show more details on screen
 --version (-V) : Display version number and quit

Enterprise options
 --plugin-dir "<path>" : Define path of available plugins
 --upload : Upload data to central node

More options available. Run '/usr/bin/lynis show options', or use the man page.

No command provided. Exiting..
# lynis audit system

[ Lynis 2.5.5 ]

 Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
 welcome to redistribute it under the terms of the GNU General Public License.
 See the LICENSE file for details about using this software.

2007-2017, CISOfy -
 Enterprise support available (compliance, plugins, interface and tools)


Lynis security scan details:

Hardening index : 66 [############# ]
 Tests performed : 218
 Plugins enabled : 0

 - Firewall [V]
 - Malware scanner [X]

Lynis Modules:
 - Compliance Status [?]
 - Security Audit [V]
 - Vulnerability Scan [V]

 - Test and debug information : /var/log/lynis.log
 - Report data : /var/log/lynis-report.dat


Lynis 2.5.5

Auditing, system hardening, and compliance for UNIX-based systems
 (Linux, macOS, BSD, and others)

2007-2017, CISOfy -
 Enterprise support available (compliance, plugins, interface and tools)


[TIP]: Enhance Lynis audits by adding your settings to custom.prf (see /etc/lynis/default.prf for all settings)

[3] Report hasil scanning disimpan di /var/log/lynis-report.dat. Cari file dengan kata kunci “warning” atau “suggestion”, maka akan menunjukkan pengaturan yang direkomendasi seperti di bawah ini.

# grep -E "^warning|^suggestion" /var/log/lynis-report.dat 
suggestion[]=AUTH-9286|Configure minimum password age in /etc/login.defs|-|-|
suggestion[]=AUTH-9286|Configure maximum password age in /etc/login.defs|-|-|
suggestion[]=AUTH-9328|Default umask in /etc/profile or /etc/profile.d/ could be more strict (e.g. 027)|-|-|
suggestion[]=FILE-6310|To decrease the impact of a full /tmp file system, place /tmp on a separated partition|-|-|
suggestion[]=FILE-6310|To decrease the impact of a full /var file system, place /var on a separated partition|-|-|
suggestion[]=STRG-1840|Disable drivers like USB storage when not used, to prevent unauthorized storage or data theft|-|-|
suggestion[]=STRG-1846|Disable drivers like firewire storage when not used, to prevent unauthorized storage or data theft|-|-|
suggestion[]=NAME-4028|Check DNS configuration for the dns domain name|-|-|
suggestion[]=NAME-4404|Add the IP name and FQDN to /etc/hosts for proper name resolving|-|-|
suggestion[]=PKGS-7384|Install package 'yum-utils' for better consistency checking of the package database|-|-|

Cheers – AnditoYugoWicaksono


List single sign-on ( Open Source )


[2] Central Authentication Service

[3] FreeIPA

[4] Keycloak

[5] Shibboleth

[6] ORY Hydra



Octopussy Log Management

[1] Install Octopussy ( requirements )

yum install -y httpd perl mod_perl mod_ssl nscd rsyslog sudo
yum install -y gcc make cpan epel-release mariadb-server
yum install -y rrdtool htmldoc

[2] Install perl module yang di butuhkan

Install menggunakan Yum

yum install -y perl-Cache-Cache perl-Crypt-PasswdMD5 perl-Date-Manip
yum install -y perl-DBD-MySQL perl-DBI
yum install -y perl-JSON perl-Linux-Inotify2 perl-List-MoreUtils perl-Locale-Maketext-Lexicon perl-Locale-Maketext-Simple perl-Mail-Sender
yum install -y perl-LDAP perl-Net-SCP perl-Net-Telnet perl-Net-XMPP perl-Proc-PID-File perl-Proc-ProcessTable
yum install -y perl-Readonly-XS perl-Regexp-Assemble perl-Sys-CPU perl-Unix-Syslog perl-Term-ProgressBar perl-URI perl-version perl-XML-Simple

cpan Apache::ASP App::Info DateTime::Format::Strptime LWP Net::FTP Time::Piece

Menggunakan CPAN

cpan Apache::ASP App::Info App::Info::HTTPD Cache::Cache Crypt::PasswdMD5
cpan SBECK/Date-Manip-5.56.tar.gz
cpan DateTime::Format::Strptime DBD::mysql DBI File::Slurp
cpan JSON Linux::Inotify2 List::MoreUtils Locale::Maketext::Lexicon Locale::Maketext::Simple 
cpan LWP Mail::Sender Net::FTP Net::LDAP Net::SCP Net::Telnet Net::XMPP
cpan Proc::PID::File Proc::ProcessTable Readonly Regexp::Assemble Sys::CPU Term::ProgressBar Time::Piece
cpan Unix::Syslog URI version XML::Simple

Setting CPAN

Would you like to configure as much as possible automatically? [yes] yes

Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes] no

Would you like to pick from the CPAN mirror list? [yes] yes
Found a cached mirror list as of Thu Sep 7 21:10:03 2017

Shall I use the cached mirror list? [yes] yes

You should select more than one (just in case the first isn't available).

(1) Africa
(2) Asia
(3) Europe
(4) North America
(5) Oceania
(6) South America
Select your continent (or several nearby continents) [] 2
(1) Bangladesh
(2) China
(3) India
(4) Indonesia
(5) Iran
(6) Japan
(7) Kazakhstan
(8) Philippines
(9) Qatar
(10) Republic of Korea
(11) Singapore
(12) Taiwan
(13) Turkey
(14) United Arab Emirates
(15) Viet Nam
Select your country (or several nearby countries) [] 4
Select your country (or several nearby countries) [] 4
Select as many URLs as you like (by number),
put them on one line, separated by blanks, hyphenated ranges allowed
 e.g. '1 4 5' or '7 1-4 8' [] 1
Now you can enter your own CPAN URLs by hand. A local CPAN mirror can be
listed using a 'file:' URL like 'file:///path/to/cpan/'

Enter another URL or ENTER to quit: [] 
New urllist

Autoconfiguration complete.

commit: wrote '/root/.cpan/CPAN/'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.

cpan[4]> install Apache::ASP
Trying with
 /usr/bin/wget -O "/root/.cpan/sources/modules/"
to get
--2017-09-15 07:24:41--
Connecting to "IP_PROXY":"Port"... connected.
Proxy request sent, awaiting response... 200 OK
Length: 248 [application/x-gzip]
Saving to: ‘/root/.cpan/sources/modules/’

100%[============================================================================================================>] 248 --.-K/s in 0s

2017-09-15 07:24:41 (28,5 MB/s) - ‘/root/.cpan/sources/modules/’ saved [248/248]

Reading '/root/.cpan/sources/modules/'
Writing /root/.cpan/Metadata
Apache::ASP is up to date (2.62).


set http_proxy= (xxx = proxy dan yyyy = port)
set http_proxy_user=username (login username)
set http_proxy_pass=password (login password)

Atau bisa menggunakan manual download package di

[3] Install Octopussy, download disini

tar zxvf octopussy-1.0.16.tar.gz
cd Octopussy-1.0.16/
chmod 775 *

[4] Setting IPTABLES di system

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8888 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 514 -j ACCEPT
-A INPUT -m udp -p udp --dport 514 -j ACCEPT

systemctl restart iptables

[5] Disable syslog and enable rsyslog and octopussy at boot time:

chkconfig --del syslog
chkconfig --add octopussy
chkconfig --add rsyslog
chkconfig --level 2345 octopussy on
chkconfig --level 2345 rsyslog on

[6] Ubah Rsyslog default konfigurasi ( /etc/sysconfig/rsyslog):


[7] Tambahkan  server name di /etc/rsyslog.d/octopussy.conf:

:hostname, !isequal, "your_server_name" ~

Restart rsyslog:

systemctl restart rsyslog

Disable SELinux

Edit /etc/sysconfig/selinux:



Cheers – Andito Yugo Wicaksono