Minggu, 06 Januari 2008

SERVER DEBIAN

> DNS SERVER DAN DHCP SERVER <


1. DNS Server

instal paket program
#apt-get install bind9

> KONFIGURASI DNS

edit file named.conf dengan printah mcedit /etc/bind/named.conf

zone "tkj.com" { ( nama dns yang kita inginkan)
type master;
file "/var/cache/bind/db.tkj"; ( letak konfigurasi zone file )
};

zone "192.in-addr.arpa" {
type master;
file "/var/cache/bind/db.192";
};



> KONFIGURASI ZONE FILE

Buat file dengan perintah touch db.tkj ( sesuaikan dg file d named.conf) kopikan dari db.localhost dengan tekan tombol F5 terus ganti namanya menjadi db.tkj dan letakkan di /var/cache/bind/

Dan edit sprti d bwah ini
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA tkj.com. root.tkj.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS tkj.com. ( ganti dg nama domain yang anda gunakan )
www IN A 192.168.1.1 ( ganti ip yang anda gunakan )

satunya lagi namanya db.192 (sesuaikan dengan file di named.conf)

isinya sama dengan db.tkj hanya ganti yang
@ IN A 192.168.1.1

menjadi

1.1.168 IN PTR tkj.com
Restart dengan perintah # /etc/init.d/bind9 restart klo tidak muncul tanda eror insyalloh DNS server anda berhasil



> DHCP SERVER

Install dengan printah

#apt-get install dhcp3-server


>KONFIGURASI

Edit file dengan perintah mcedit /etc/dhcp3/dhcp.conf


# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 { ( subnet n netmask ip anda)
range 192.168.1.2 192.168.1.10;
option domain-name-servers tkj.com; ( nama DNS anda )
# option domain-name "internal.example.org";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}



Setelah itu restart dhcp servernya dengan printah

#/etc/init.d/dhcp3-server restart
jika tidak muncul tanda eror insyalloh dhcp server anda berhasil





> FTP SERVER

Install dengan printah
#Apt-get install vsftpd

lalu konfigurasi dengan perintah mcedit /etc/vsftpd.conf
Edit seperti di bawah ini/yang bergaris bawah
(hanya menghilangkan tanda comment/# aj)

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure



Setelah itu restart dengan perintah /etc/init.d/vsftpd restart

Tidak ada komentar: