1. Topologi
    1. Star
      1. Topologi
    2. Network Address Translation
      1. Menerjemahkan IP lokal menjadi IP publik
      2. Source NAT
      3. Destination NAT
      4. Security: Port Forwarding
      5. Disebut juga dengan IP forwarding
    3. Mikrotik
      1. Source NAT
        1. /ip firewall nat
        2. add chain=srcnat src-address=10.0.0.1 action=src-nat to-ip-address=118.10.10.1
      2. Destination NAT
        1. /ip firewall nat
        2. add chain=dstnat dst-address=118.10.10.1 acction=dst-nat to-ip-address=10.0.0.1
      3. Port Forwarding
        1. /ip firewall nat
        2. add chain=dstnat dst-address=118.10.10.1 action=dst-nat to-ip-address=10.0.0.1 src-port=80 to-port=80
        3. add chain=dstnat dst-address=118.10.10.1 action=dst-nat to-ip-address=10.0.0.1 src-port=22 to-port=2222
  2. Centos
    1. Instalasi
      1. Pilih Bahasa
      2. Network
        1. IPV4 settings (tekan tombol [Add])
          1. ip address
          2. netmask
          3. gateway
          4. dns
          5. Save
      3. Date
        1. Lokasi
        2. NTP server
    2. Partisi
      1. /home
      2. /
      3. /boot
        1. tidak butuh ruang besar, karena file yang akan disimpan hanya sedikit, cukup 500MB - 1GB
      4. /boot/efi
        1. tidak butuh ruang besar, karena file yang akan disimpan hanya sedikit, cukup 500MB - 1GB
      5. /swap
        1. Tergantung kebutuhan. Umumnya menggunakan aturan: 2xmemory jika memory/RAM ukurannya kecil
      6. /var
        1. Lokasi penyimpanan data
    3. Network
      1. /etc/sysconfig/network-scripts/ifcfg-enp0s3
        1. edit
        2. restart network
          1. sudo systemctl restart network
        3. matikan interface
          1. ifdown nama-iface
        4. hidupkan interface
          1. ifup nama-iface
      2. nmcli
      3. nmtui
      4. melihat konfigurasi
        1. ip address
        2. ip route
        3. cat /etc/resolv.conf
    4. User management
      1. useradd user
      2. userdel user
      3. usermod
    5. Package management
      1. yum -y update
      2. yum -y install package
      3. yum -y remove package
      4. yum -y autoremove
      5. yum history
        1. yum history list ID
        2. yum history undo ID
    6. Systemd service management
      1. systemctl start service
      2. systemctl restart service
      3. systemctl stop service
      4. systemctl status service
      5. systemctl enable service
      6. systemctl disable service
  3. DNS Server
    1. install
      1. yum -y install bind
    2. konfigurasi BIND
      1. /etc/named.conf
    3. konfigurasi ZONE
      1. file database forward zone/resolve
      2. file database reverse zone/resolve
    4. Type2 record pada zone
      1. SOA
        1. Start of authority
      2. NS
        1. name server
      3. A
        1. forward address
      4. MX
        1. mail exchange
      5. PTR
        1. pointer (reversed address)
      6. TXT
        1. Additional informations
      7. CNAME
        1. Canonical name (Alias)
  4. Web Server
    1. Apache HTTPD
      1. Install
        1. yum -y install httpd
      2. config
        1. /etc/httpd/conf/httpd.conf
          1. baris 86 : ServerAdmin
          2. baris 95 : ServerName
          3. baris 151 : AllowOverride All
          4. baris 164 : DirectoryIndex, tambahkan index.php
          5. baris terakhir sekali tambahkan : ServerTokens Prod KeepAlive On
    2. PHP
      1. Install
        1. yum -y install php
      2. Install modul-modul
        1. yum -y install php-cli php-mysqlnd php-gd php-mbstring php-mcrypt
      3. config
        1. /etc/php.ini
          1. baris 878 : date.timezone = "Asia/Jakarta"
    3. Virtualhost
      1. konfigurasi default virtualhost
        1. /etc/httpd/conf.d/vhost.conf
      2. konfigurasi virtualhost tambahan
        1. /etc/httpd/vhost.d/*.conf
      3. direktori vhost
        1. /var/www/vhosts/training.cit.co.id/html
        2. /var/www/vhosts/training.cit.co.id/logs
  5. Database Server
    1. install
      1. yum -y install mysql-server
      2. yum -y install mariadb-server
    2. konfigurasi
      1. jalankan script mysql_secure_installation
        1. password root
        2. disable root login remotely
        3. remove test database
        4. remove anonymous user
        5. reload privileges
    3. database client
      1. mysql
        1. mysql -u root -p
        2. create database;
        3. create user 'nama'@'localhost' identified by 'password';
        4. grant all privileges on database.* to 'nama'@'localhost' identified by 'password';
      2. adminer
      3. phpmyadmin
  6. FTP Server
  7. Reverse Proxy
    1. nginx
    2. apache trafficserver
    3. HA Proxy