Senin, 31 Oktober 2011

Konfigurasi Server Debian Lenny



Sebelumnya, selamat bagi anda yang telah berhasil Mengkonfigurasi Proxy Server. Langkah terakhir yang akan kita lakukan adalah mengkonfigurasi DHCP Server.. Silahkan ikuti langkah berikut:


* Kata2 yang bercetak tebal adalah perintah yang dijalankan pada komputer server.
* Kata2 yang berwarna merah adalah yang harus anda ubah atau buat.

1) apt-get install dhcp3-server
Non-authoritative version of DHCP server OK

2) pico /etc/dhcp3/dhcpd.conf
         # option definitions common to all supported networks...
         option domain-name "smk1belopa.ac.id";
         option domain-name-servers smk1belopa.ac.id;

         # If this DHCP server is the official DHCP server for the local
         # network, the authoritative directive should be uncommented.
         authoritative;

         # A slightly different configuration for an internal subnet.
         subnet 172.16.1.0 netmask 255.255.255.192 {
         range 172.16.1.2 172.16.10.61;
         option domain-name-servers 172.16.1.62;
         option domain-name "smk1belopa.ac.id";
         option routers 172.16.1.0;
         option broadcast-address 172.16.1.63;
         default-lease-time 600;
         max-lease-time 7200;
         }



 * Untuk kata yang tidak saya cantumkan, jangan diubah/dihapus.

3) Reboot
 
4) Sambil menunggu komputer server hidup kembali. Ubah settingan TCP/IP di client windows menjadi Automatic.

5) Kemudian ping dari komp windows ke komp server.
C:\Users\antoro>ping 172.16.1.62
         Pinging 172.16.1.62 with 32 bytes of data:
         Reply from 172.16.1.62: bytes=32 time<1ms TTL=64
         Reply from 172.16.1.62: bytes=32 time<1ms TTL=64
         Reply from 172.16.1.62: bytes=32 time<1ms TTL=64
         Reply from 172.16.1.62: bytes=32 time=1ms TTL=64
         Ping statistics for 172.16.1.62:
         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
         Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum = 1ms, Average = 0ms
C:\Users\antoro>ping 192.168.1.1
         Pinging 192.168.1.1 with 32 bytes of data:
         Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
         Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
         Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
         Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
         Ping statistics for 192.168.1.1:
         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
         Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum = 1ms, Average = 0ms
 
6) Check mulai dari DNS, Web, Mail, Ftp, Proxy. Jika bisa, berarti konfigurasi anda berhasil.




4) pico named.conf.options

                  options {
                                    directory "/var/cache/bind";
                                   forwarders {
                                                     192.168.1.62;
                                    };
                                    allow-query { any; };
                                    auth-nxdomain no; # conform to RFC1035
                                   listen-on-v6 { any; };
                  };
* Jangan ubah/hapus baris yang lain.

5) cp db.local db.smk1belopa
6) cp db.local db.sub
7) cp db.127 db.172
8) pico db.smk1belopa

 ;
 ; BIND data file for local loopback interface
 ;
 $TTL 604800
@ IN SOA azrul.smk1belopa.ac.id. azrul.smk1belopa.ac.id. (
                                       2                    ; Serial
                                       604800          ; Refresh
                                       86400            ; Retry
                                       2419200        ; Expire
                                       604800 )        ; Negative Cache TTL
 ;
@           IN       NS                 azrul.smk1belopa.ac.id.
@           IN       MX      10        mail.smk1belopa.ac.id
@           IN       A                     172.16.1.62

antoro     IN       A                     172.16.1.62
www      IN       CNAME          azrul
mail        IN       CNAME          azrul

9) pico db.sub

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA sub.smk1belopa.ac.id.  sub.smk1belopa.ac.id (
                                  2              ; Serial
                                  604800    ; Refresh
                                  86400      ; Retry
                                  2419200  ; Expire
                                  604800 )  ; Negative Cache TTL
;
@       IN       NS               sub.smk1belopa.ac.id.
@       IN       A                 172.16.1.62

sub     IN       A                  172.16.1.62
www  IN       CNAME       sub



10) pico db.172

; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA azrul.smk1belopa.ac.id. azrul.smk1belopa.ac.id. (
                                  1               ; Serial
                                  604800     ; Refresh
                                  86400       ; Retry
                                  2419200   ; Expire
                                  604800 )   ; Negative Cache TTL
;
@      IN         NS      azrul.smk1belopa.ac.id.
62      IN         PTR    azrul.smk1belopa.ac.id.




* 62 berasal dari : 172.16.1.62 


11) pico /etc/resolv.conf
search smk1belopa.ac.id
nameserver 127.0.0.1
nameserver 172.16.1.62
nameserver 192.168.1.62

12) /etc/init.d/bind9  restart
Stopping domain name service...: bind9.
Starting domain name service.....: bind9.

13) Sekarang kita check DNS Server kita melalui windows, masuk CMD dan ketikkan :
C:\Users\azrul>nslookup situstkj.co.cc
Server: azrul.smk1belopa.ac.id
Address: 172.16.1.62
Name: smk1belopa.ac.id
Address: 172.16.1.62


C:\Users\azrul>nslookup antoro.situstkj.co.cc
Server: azrul.smk1belopa.ac.id
Address: 172.16.1.62
Name: azrul.smk1belopa.ac.id
Address: 172.16.1.62


C:\Users\azrul>nslookup mail.situstkj.co.cc
Server: azrul.smk1belopa.ac.id
Address: 172.16.1.62
Name: azrul.smk1belopa.ac.id

Address: 172.16.1.62
Aliases: mail.smk1belopa.ac.id


C:\Users\azrul>nslookup www.situstkj.co.cc
Server: azrul.smk1belopa.ac.id
Address: 172.16.1.62
Name: azrul.smk1belopa.ac.id
Address: 172.16.1.62
Aliases: www.smk1belopa.ac.id


C:\Users\azrul>nslookup sub.situstkj.co.cc
Server: azrul.smk1belopa.ac.id
Address: 172.16.1.62
Name: azrul.smk1belopa.ac.id
Address: 172.16.1.62

Jika tampil tulisan berikut. Berarti konfigurasi Domain Name Service / DNS Server sudah berhasil.



                 Konfigurasi FTP (File Transfer Protocol) Debian Lenny

Setelah MengKonfigurasi WebMail Server, Sekarang kita akan belajar mengkonfigurasi FTP Server. Hanya diperlukan beberapa Langkah untuk mengkonfigurasi FTB server tersebut. 

*Kata2 bercetak tebal adalah perintah yang harus dijalankan.
*Kata2 berwarna merah adalah perubahan/sesuatu yang harus anda buat.

1) apt-get install  proftpd
Run proftpd : standalone

2) pico  /etc/proftpd/proftpd.conf

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off

# If set on you can experience a longer connection delay in many cases.
IdentLookups off
ServerName "azrul.smk1belopa.ac.id"
ServerType standalone
DeferWelcome off


3) /etc/init.d/proftpd  restart
Stopping ftp server: proftpd.
Starting ftp server: proftpd.

4) Buka browser komputer client
dan buka url ftp://www.smk1belopa.ac.id anda akan melihat tampilan ini:



Anda bisa login menggunakan username azrul, ataupun username anisa, yang sudah anda buat pada saat
konfigurasi mail server tadi


Tidak ada komentar:

Posting Komentar