KONFIGURASI SERVER PADA DEBIAN WOODY 3.0or6
Pertama installkan paket paket yang diperlukan oleh system :
#apt-get install squid dhcpd bind9 postfix squirrelmail ipopd uw-imapd vim
NOTE : Media CD yang diperlukan untuk paket tersebut adalah :
1. CD1
2. CD3
3. CD6
4. CD4
telah selesai installasi paket barulah melangkah ke konfigurasi :
#mv /etc/dhcpd.conf /home/ ---------------> pindahkan konfigurasi asli ke home dengan alasan supaya cepat
#vim /etc/dhcpd.conf
isikan :
subnet 10.252.6.0 netmask 255.255.255.0 {
range 10.252.6.100 10.252.6.200;
option domain-name-servers 10.252.6.10;
option routers 10.252.6.10;
}
simpan konfigurasi lalu tutup editor
#/etc/init.d/dhcpd restart
restart services dhcpd
setelah itu buat dns
#vim /etc/bind9/named.conf
zone "smkn2-tsm.sch.id" {
type master;
file "/etc/bind/db.smkn2";
};
zone "redhat.org" {
type master;
file "/etc/bind/db.smkn2";
zone "susefaq.sourceforge.net" {
type master;
file "/etc/bind/db.smkn2"
zone "linux.or.id" {
type master;
file "/etc/bind/db.smkn2";
};
zone "debian-administration.org" {
type master;
file "/etc/bind/db.smkn2";
};
zone "gentoo.org" {
type master;
file "/etc/bind/db.smkn2";
};
zone "6.252.10.in-addr.arpa" {
type master;
file "/etc/bind/db.smkn2-rev";
};
#vim /etc/bind9/db.smkn2
$TTL 3600
@ IN SOA smkn2-tsm.sch.id. root.localhost {
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS smkn2-tsm.sch.id.
IN MX 10 mail.smkn2-tsm.sch.id.
smkn2-tsm.sch.id. IN A 10.252.6.10
debian-administration.org. IN A 10.252.6.10
redhat.org. IN A 10.252.6.10
linux.or.id. IN A 10.252.6.10
gentoo.org. IN A 10.252.6.10
susefaq.sourceforge.net. IN A 10.252.6.10
mail IN CNAME smkn2-tsm.sch.id.
www IN CNAME smkn2-tsm.sch.id.
#vim /etc/bind9/db.smkn2-rev
$TTL 3600
6.252.10.in-addr.arpa. IN SOA smkn2-tsm.sch.id. root.localhost {
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS smkn2-tsm.sch.id.
IN MX 10 mail.smkn2-tsm.sch.id.
10 IN PTR smkn2-tsm.sch.id.
10 IN PTR debian-administration.org.
10 IN PTR redhat.org.
10 IN PTR linux.or.id.
10 IN PTR gentoo.org.
10 IN PTR susefaq.sourceforge.net.
#/etc/init.d/bind9 restart
konfigurasi postfix :
#vim /etc/postfix/main.cf
ganti option berikut ini :
my_network = 10.252.6.0/24
poho deui........ naon teh...
cara lain konfig postfix
#dpkg-reconfigure postfix
#/etc/squirrelmail/conf.pl
ganti server name : smkn2-tsm.sch.id
imap server : uw
#vim /etc/hosts
10.252.6.10 smkn2-tsm.sch.id. lks06 ( nama host = lks06 )
#/etc/init.d/network restart
#/etc/init.d/postfix restart
konfigurasi web server
supaya index html langung kabaca tina www.smkn2-tsm.sch.id
#vim /etc/apache/site-available/default
tutup options
Redirect_match
#Redirect_match
#cd /var/www/
setelah itu buat script html "SELAMAT DATANG DI LKS 2008 Jawa Barat" --------> teuing kumaha tah.. basa kamarimah dicarekan lewat we..
terus supaya alias squirrelmail jadi webmail pada url http://wwww.smkn2-tsm.sch.id/webmail
#vim /etc/squirrelmail/apache.conf
ganti options squirrelmail dengan webmail
setelah itu restart services
#/etc/init.d/apache restart
konfigurasi proxy
#vim /etc/squid.conf
acl localnet 10.252.6.0/24
acl blacklist url_regex -i "/etc/blacklist.acl"
http_access allow lan
http_access deny blacklist
httpd_accel_host virtual
httpd_accel_port 80 -----------> poho deui....
httpd_accel_with_proxy on
httpd_header_host on -------------> suer poho deui.. biasa pake squid versi 2.6Stable14 Eweuh Nu karariyeu keur transparent
buat file blacklist.acl
#vim /etc/blacklist.acl
www.redhat.org
www.linux.or.id
susefaq.sourceforge.net
www.gentoo.org
www.debian-administration.org
#/etc/init.d/squid restart
transparent langsung
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
NOTE : JANGAN BUKA INTERNET EXPLORER ( DITEST ) JIKA SEMUA KONFIGURASI DIATAS SELESAI, KARNA BAKAL NGEREPOTIN
Di update atuh sing lengkep!...
ReplyDelete