Sabtu, Mei 15, 2010

Tutorial Debian Lenny Dasar

_____________________________________________________________________
Konfigurasi DNS SERVER ===> /etc/bind/named.conf.local
_____________________________________________________________________

zone "latihan.com" {
type master;
file "/etc/bind/db.latihan.com";
};

zone "254.16.172.in-addr.arpa" {
type master;
file "/etc/bind/db.172.16.254.254";
};

_____________________________________________________________________
Konfigurasi DNS Forwarder ===> /etc/bind/db.latihan.com
_____________________________________________________________________
$TTL 86400
@ IN SOA latihan.com. root.latihan.com. (
2009111101
3600
7200
86400
86400 )

@ IN NS ns1.latihan.com.
@ IN NS ns2.latihan.com.
@ IN MX 10 smtp.latihan.com.
@ IN A 172.16.254.254
ns1 IN A 172.16.254.254
ns2 IN A 172.16.254.254
smtp IN A 172.16.254.254
imap IN A 172.16.254.254
latihan.com IN A 172.16.254.254
www IN CNAME latihan.com.

____________________________________________________________________
Konfigurasi DNS Reverse ===> /etc/bind/db.172.16.254.254
____________________________________________________________________

$TTL 86400
@ IN SOA latihan.com. root.latihan.com. (
2009111101
3600
7200
86400
86400 )

@ IN NS ns1.latihan.com.
@ IN NS ns2.latihan.com.
@ IN PTR latihan.com.
ns1uras IN A 172.16.254.254
ns2 In A 172.16.254.254

____________________________________________________________________
Konfigurasi DHCP ===> /etc/dhcp3/dhcpd.conf
____________________________________________________________________

option domain-name "latihan.com";
option domain-name-servers ns1.latihan.com , ns2.latihan.com;

....
....

#A Slightly different configuration for an internal network
subnet 172.16.254.0 netmask 255.255.255.0 {
range 172.16.254.1 172.16.254.100;
option domain-name-servers ns1.latihan.com;
option domain-name "latihan.com";
option routers 172.16.254.254
option broadcast-address 172.16.254.255;
#default-lease-time 600;
#max-lease=time 7200;
}
____________________________________________________________________
Konfigurasi PROXY SERVER ===> /etc/squid/squid.conf
____________________________________________________________________

http_port 3128 transparent
cache_mem 256 MB ## 1/4 dari memory
cache_swap_low 95
cache_swap_high 99
cache_dir aufs /cache1 14000 16 256 ##Jika cache directory 15 GB
cache_dir aufs /cache2 14000 16 256 ##Jika cache directory 15 GB
##Di bawah acl CONNECT ditambah
acl net src 172.16.254.0/24 ##tergantung dengan ip network yg digunakan
acl blok url_regex -i "/etc/squid/squid.blok" ##untuk menge-blok website dengan acuan kata
acl blok dstdomain "/etc/squid/squid.blok" ##Untuk menge-blok website dengan acuan domain

##Di bawah INSERT YOUR OWN RULES tambahkan
http_access deny blok
http_access allow localhost
http_access allow net

##Di baris yang paling bawah sendiri
visible_hostname proxy


____________________________________________________________________
PARTITION HARD DISK (80 GB)
____________________________________________________________________

/ 5 GB xfs file system journal
swap 2 x Memory ## swap area
/tmp 1 GB xfs file system journal ## tempat meletakkan temporary files
/home 30 % Hard Disk xfs file system journal ## tempat meletakkan file-file milik user
/usr 30 % Hard Disk ## tempat meletakkan paket
/var 30 % Hard Disk

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews