slideshare | konfigurasi debian 5



========================================================== 
Konfigurasi IP & Routing ========================================================== # nano /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 auto eth1 iface eth1 inet static address 192.168.2.1 netmask 255.255.255.0 network 192.168.2.0 broadcast 192.168.2.255 up ip addr add 192.168.2.2/24 brd 192.168.2.255 dev eth1 label eth1:0 # nano /etc/resolv.conf nameserver 192.168.2.1 nameserver 8.8.8.8 # nano /etc/sysctl.conf #inet.ipv4.ip_forward=1 hilangkan "#" # nano /etc/rc.local iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # /etc/init.d/networking restart # ifconfig | less # ping 192.168.1.2 # ping 192.168.2.1 # ping 192.168.2.2 ===================================================== 
Konfigurasi DNS Server
 ===================================================== # apt-get install bind9 # cd /etc/bind # nano named.local.conf // zone "achmadfatkur.me" { type master; file "/etc/bind/db.for"; }; zone "1.168.192.in-addr-arpa" { type master; file "/etc/bind/db.rev"; }; # cp db.local db.for # cp db.127 db.rev # nano db.for $TTL @ IN SOA achmadfatkur.me. root.achmadfatkur.me. { ; @ IN NS achmadfatkur.me. @ IN NS www.achmadfatkur.me. @ IN MX 10 mail.achmadfatkur.me. @ IN A 192.168.2.1 www IN A 192.168.2.1 mail IN A 192.168.2.2 # nano db.rev $TTL @ IN SOA achmadfatkur.me. root.achmadfatkur.me. { ; @ IN NS achmadfatkur.me. 1 IN PTR achmadfatkur.me. # nano /etc/hosts 127.0.0.1 localhosts 192.168.2.1 achmadfatkur.me debian # nano /etc/host.conf order hosts.bind # /etc/init.d/bind9 restart #nslookup achmadfatkur.me #nslookup www.achmadfatkur.me #nslookup mail.achmadfatkur.me ==================================================
 Konfigurasi WEB SERVER
 ================================================== # apt-get install apache2 php5 # cp /etc/apache2/sites-available/default /etc/apache2/sites-available/webachmadfatkur # nano /etc/apache2/sites-available/webachmadfatkur ServerAdmin webmaster@localhost ServerName achmadfatkur.me ServerAlias www.achmadfatkur.me DocumentRoot /var/www/ # nano /var/www/index.html ganti terserah # /etc/init.d/apache2 restart Kemudian cek di browser ====================================================== 
Konfigurasi Web Mail Server ====================================================== # apt-get install postfix courier-imap courier-pop squirrelmail kemudian muncul tasksel postfix 1. Pilih "Internet Site" ,OK 2. Isikan "mail.achmadfatkur.me" ,OK # nano /etc/squirrelmail/apache.conf # # DocumentRoot /usr/share/squirrelmail # ServerName mail.achmadfatkur.me # Hilangkan "#" # nano /etc/apache2/apache2.conf Pada baris terakhir tambahkan "Include /etc/squirrelmail/apache.conf" # /etc/init.d/apache2 restart Kemudian cek alamat mail.achmadfatkur.me # maildirmake /etc/skel/Maildir # dpkg-reconfigure postfix 1. OK 2. mail.achmadfatkur.me ,OK 3. kosongkan ,OK 4. pada "localhost" kita tambahkan "," ,kemudian tambahkan 0.0.0.0/0 ,OK 5. NO 6. Hapus semua ,Kemudian isikan 0.0.0.0/0 7. NO 8. 0 ,OK 9. + ,OK 10.Pilih ipv4 # nano /etc/postfix/main.cf Pada baris terakhir tambahkan " home_mailbox = Maildir/ # /etc/init.d/postfix restart # /etc/init.d/courier-imap restart # /etc/init.d/courier-pop restart # adduser achmad ,masukkan password dan yang lainnya # adduser fatkur ,masukan password dan yang lainnya Kemudian cek mail,dan coba login terus kirim pesan Kalo berhasil berarti kita sukses konfiguarsi WebMailServer kita Kalo belum,coba kita cek kembali konfigurasi kita.

thumbnail Title:
Posted by:
Published :
Rating: 4.9
Reviewer: 100 Reviews
Terimakasih banyak karena sobat telah membaca artikel . Sobat bisa bookmark halaman ini dengan URL . Jika ingin memposting ulang artikel ini harap untuk mencantumkan link sumber.