A. Pengaturan IP address Pada fw-srv
# Edit /etc/network/interfaces
auto lo
iface lo inet loopback
auto lo
iface lo inet loopback
# Interface ke Internet (misal ens33)
auto ens33
iface ens33 inet static
address 100.100.100.200/24
# Gateway ke internet (jika menggunakan NAT VMnet8)
gateway 100.100.100.2
# Interface ke int-zone (misal ens34)
auto ens34
iface ens34 inet static
address 192.168.1.254/24
# Interface ke dmz-zone (misal ens35)
auto ens35
iface ens35 inet static
address 172.16.1.254/24
# Interface ke mgmt (misal ens36)
auto ens36
iface ens36 inet static
address 10.0.0.11/24
Setelah itu, aktifkan IP forwarding:
sudo sysctl -w net.ipv4.ip_forward=1
# Untuk permanen, tambahkan ke /etc/sysctl.conf
B. Konfigurasi untuk int-srv (DNS/LDAP)
# /etc/network/interfaces
auto lo
iface lo inet loopback
# Interface ke int-zone (ens33)
auto ens33
iface ens33 inet static
address 192.168.1.10/24
gateway 192.168.1.254
dns-nameservers 127.0.0.1 # Dirinya sendiri sebagai DNS
# Interface ke mgmt (ens34) - TANPA GATEWAY
auto ens34
iface ens34 inet static
address 10.0.0.10/24
C. Konfigurasi untuk mail-srv (DMZ)
# /etc/network/interfaces
auto lo
iface lo inet loopback
# Interface ke dmz-zone (ens33)
auto ens33
iface ens33 inet static
address 172.16.1.10/24
gateway 172.16.1.254
dns-nameservers 192.168.1.10
# Interface ke mgmt (ens34) - TANPA GATEWAY
auto ens34
iface ens34 inet static
address 10.0.0.12/24
D. web-01 (Web Server 1 & Keepalived MASTER)
# /etc/network/interfaces
auto lo
iface lo inet loopback
# Interface ke dmz-zone (ens33)
auto ens33
iface ens33 inet static
address 172.16.1.21/24
gateway 172.16.1.254
dns-nameservers 192.168.1.10
# Interface ke mgmt (ens34) - TANPA GATEWAY
auto ens34
iface ens34 inet static
address 10.0.0.13/24
E. web-02 (Web Server 2 & Keepalived BACKUP)
# /etc/network/interfaces
auto lo
iface lo inet loopback
# Interface ke dmz-zone (ens33)
auto ens33
iface ens33 inet static
address 172.16.1.22/24
gateway 172.16.1.254
dns-nameservers 192.168.1.10
# Interface ke mgmt (ens34) - TANPA GATEWAY
auto ens34
iface ens34 inet static
address 10.0.0.14/24
F. ani-client
# /etc/network/interfaces
auto lo
iface lo inet loopback
# Interface ke Internet (ens33)
auto ens33
iface ens33 inet static
address 100.100.100.100/32 # Sesuai tabel /32 (atau /24 jika butuh gateway)
gateway 100.100.100.200 # Mengarah ke fw-srv
dns-nameservers 100.100.100.200 # Jika DNS publik diarahkan lewat fw
Tags:
Debian
.png)
