Thursday, 3 November 2011

KONFIGURASI SERVER DEBIAN ETCH ( 4 )

Yang akan di konfigurasi :
1. Web Server ( apache2 )
2. DNS ( bind )
3. DHCP Server ( dhcp3-server )
4. Mail Server ( squirrelmail )
5. Proxy server ( squid )
6. Telnet ( telnetd )



1. Konfigurasi Web Server
.Install apache2
debian@root~# apt-get install apache2
.Konfigurasi web pada file Index.html
debian@root~# nano /var/www/apache2-default/index.html
.Restart apache 2
debian@root~# /etc/init.d/apache2 restart



2. Konfigurasi DNS
.Install bind
debian@root~# apt-get install bind
.configurasi file named.conf pada directory bind
debian@root~# nano /etc/bind/named.conf
“ Buatlah zona baru “
zone “uutheexplorer.com” {
type master;
file “/etc/bind/uutheexplorer.com”;
};

zone “1.168.192.in-addr.arpa” {
type master;
file “/etc/bind/db.192”;
};


.Copy file db.local menjadi uutheexplorer.com dan file db.127 menjadi db.192

debian@root~#cp /etc/bind/db.local /etc/bind/uutheexplorer.com
debian@root~# cp /etc/bind/db.127 /etc/bind/db.192

.Edit file uutheexplorer.com dan file db.192

debian@root~# nano /etc/bind/uutheexplorer.com
debian@root~# nano /etc/bind/db.127

“ ubah kata localhost menjadi uutheexplorer.com “
“ berikan alamat ip DNS “
Tambahkan : ---------------->“pada file uutheexplorer.com”
www IN CNAME @
mail IN CNAME @
ftp IN CNAME @

.ubah file resolv.conv

debian@root~# nano /etc/resolv.conf

search uutheexplorer.com
nameserver 192.168.1.1

.Restart bind

debian@root~# /etc/init.d/bind restart

.cek keberhasilan DNS

debian@root~# nslookup www.uutheexplorer.com >> pada computer server
browser di Internet Explorer >> pada computer client




3. DHCP SERVER

.Install dhcp3-server

debian@root~# apt-get install dhcp3-server

.ubah file dhcp.conf pada direktori dhcp3

debian@root~# nano /etc/dhcp3/dhcp.conf

option domain-name “uutheexplorer.com”;
option domain-name-servers 192.168.1.1;
default-lease-time 3600;
max-lease-time 7200;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.5 192.168.1.12;
option routers 192.168.1.1;
}

.restart dhcp3-server

debian@root~# /etc/init.d/dhcp3-server restart



4. Konfigurasi mail server ( squirrelmail )

. Install squirrelmail ,postfix ,courier-pop ,courier-imap

debian@root~# apt-get install squirrelmail
debian@root~# apt-get install postfix ( scan dahulu dvd binary-2 )
debian@root~# apt-get install courier-pop
debian@root~# apt-get install courier-imap

.konfigurasi file apache.conf dan config.php pada direktori squirrelmail

debian@root~# nano /etc/squirrelmail/apache.conf

Alias /mail “/usr/share/squirrelmail/”

. edit file config.php

debian@root~# nano /etc/squirrelmail/config.php


$domain = uutheexplorer.com
$imap_server_type = ‘courier’

. edit file main.cf

debian@root~# nano /etc/postfix/main.cf

myhostname = mail.uutheexplorer.com
mydomain = uutheexplorer.com
mydestination = uutheexplorer.com, mail.uutheexplorer.com, localhost.uutheexplorer.com,
localhost
mynetwork = 127.0.0.0/8 192.168.1.1/24
# mailbox_cammand = prockmail –a “$EXTENSION”
Inet_protocol = all
Home_mailbox = Maildir/

. edit file apache2.conf

debian@root~# nano /etc/apache2/apache2.conf

“ tambahkan di paling bawah “
Include /etc/squirrelmail/apache.conf
ServerName 192.168.1.1

.buat user baru

debian@root~# adduser uu
debian@root~# adduser aa

.buat direktori maildir

debian@root~# maildirmake /etc/skel/Maildir/

. Restart semuanya.

debian@root~# /etc/init.d/postfix restart
debian@root~# /etc/init.d/apache2 restart
debian@root~# /etc/init.d/courier-pop restart
debian@root~# /etc/init.d/courier-imap restart
debian@root~# /etc/init.d/courier-authdaemon restart

.cek pada computer client ketik : http://www.uutheexplorer.com/squirrelmail



5. Proxy Server

.Install proxy (squid)

debian@root~# apt-get install squid

.edit file squid.conf

debian@root~# nano /etc/squid/squid.conf

“ hilangkan tanda pagar #
http_port 3128 ransparent
cache_mem 64 MB
acl LAN src 192.168.1.0/24
acl admin scr 192.168.1.1
acl situs dstdomain www.google.com
http_access allow admin
http_access deny LAN situs
# http_access deny all

.restart squid

debian@root~# /etc/init.d/squid restart




6. Telnet

.install telnet

debian@root~# apt-get install telnetd

.tes telnet

debian@root~# telnet 192.168.1.1
lalu login dgn user pada server dan juga client.



 SELAMAT MENGERJAKAN 

No comments:

Post a Comment