KONFIGURASI SERVER
Ø
Konfigurasi DHCP Server
Menginstall DHCP-server,dengan perintah:
# apt-get install dhcp3 server
Menginstall DHCP-server,dengan perintah:
# apt-get install dhcp3 server
Ø
Konfigurasi file konfigurasi /etc/dhcp3/dhcpd.conf,
dengan perintah :
# pico /etc/dhcp3/dhcpd.conf
# pico /etc/dhcp3/dhcpd.conf
Edit Script di bawah ini :
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.254;
option domain-name-servers 192.168.1.1;
option domain-name “komputer server”;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
range 192.168.1.2 192.168.1.254;
option domain-name-servers 192.168.1.1;
option domain-name “komputer server”;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
Ø
Menjalankan daemon dhcp server, dengan perintah :
# /etc/init.d/dhcp3-server restart
Starting DHCP server : dhcpd3 .
# /etc/init.d/dhcp3-server restart
Starting DHCP server : dhcpd3 .
Ø
Uji Coba Koneksi , ping alamat server bila ada
reply maka configurasi anda berhasil.
Konfigurasi DNS server
v
Install paket bind9 untuk versi yang terbaru,
dengan perintah
#apt-get install bind9
v
Memastikan paket bind9 apakah sudah terinstall
dengan benar, dengan perintah # dpky –l bind9
v
Mengedit script resolf.conf, dengan perintah :
# pico /etc/resolv.conf
# pico /etc/resolv.conf
v
Mengedit script named.conf, dengan perintah:
# pico /etc/bind9/named.conf
Edit seperti dibawah ini:
# pico /etc/bind9/named.conf
Edit seperti dibawah ini:
};
Zone “debian.com,” { Nama Server
Type master;
File “/var/cache/bind/db.debian”; Tempat file disimpan
};
Zone “debian.com,” { Nama Server
Type master;
File “/var/cache/bind/db.debian”; Tempat file disimpan
};
Zone “192.in-addr.arpa” {
Type master;
File “/var/cache/bind/db.192”; Tempat file di simpan
};
Type master;
File “/var/cache/bind/db.192”; Tempat file di simpan
};
v
Copy file db.127 dan db.local pada directoty yang
sama ,dengan perintah:
# cp db.127 db.192
# cp db.local db.debian
# cp db.127 db.192
# cp db.local db.debian
v
Lalu pindah pada directory /var/cache/bind,dengan
perintah:
# mv db.192 /var/cache/bind
# mv db.debian /var/cache/bind
# mv db.192 /var/cache/bind
# mv db.debian /var/cache/bind
v
Membuat file zone forward yang berfungsi untuk
menerjemahkan nama ke IP Address dari zona lokalnya.dengan perintah:
# pico /var/cache/bind/db.debian
# pico /var/cache/bind/db.debian
$TTL 604800
@ IN SOA debian.com. root.debian.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS debian.com.
@ IN A 192.168.1.1
www IN A 192.168.1.1
@ IN SOA debian.com. root.debian.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS debian.com.
@ IN A 192.168.1.1
www IN A 192.168.1.1
v
Membuat file zone forward yang berfungsi
menerjemahkan IP Address ke nama dari zona lokalnya, dengan perintah
# pico /var/cache/bind/db.192
# pico /var/cache/bind/db.192
$TTL 604800
@ IN SOA debian.com. root.debian.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS debian.com.
1.1.168 IN PTR debian.com.
www IN PTR debian.com.
@ IN SOA debian.com. root.debian.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS debian.com.
1.1.168 IN PTR debian.com.
www IN PTR debian.com.
v
Merestart daemon DNS Server, dengan perintah :
# /etc/init.d/bind9 restart
Stopping domain name service . . . : bind .
Starting domain name service . . . : bind .
# /etc/init.d/bind9 restart
Stopping domain name service . . . : bind .
Starting domain name service . . . : bind .
v
Mencoba DNS Server apakah sudah berjalan dengan
baik dan benar dengan perintah ping
# ping http://www.debian.com
Jika muncul reply berarti konfigurasi anda berhasil
# ping http://www.debian.com
Jika muncul reply berarti konfigurasi anda berhasil
Konfigurasi FTP server
ü
Menginstall vsftpd,dengan perintah:
#apt-get vsftpd
#apt-get vsftpd
ü
Mengedit script vsftpd.conf
#pico /etc/vsftpd.conf
#pico /etc/vsftpd.conf
# Allow anonymous FTP? (Beware – allowed by default if you comment this
out )
anonymous_enable=YES
#
# Uncoment this to allow local users to log in.
local_enable=YES
#
# Uncoment this to enable any form of FTP write command.
write_enable=YES
# Default umask for local user is 077. you may wish to change this to 002,
# if your user expect that (022 is used by most other ftpd’s)
# local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_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 orginate from port 20 ( ftp-data).
connect_from_port_20=YES
anonymous_enable=YES
#
# Uncoment this to allow local users to log in.
local_enable=YES
#
# Uncoment this to enable any form of FTP write command.
write_enable=YES
# Default umask for local user is 077. you may wish to change this to 002,
# if your user expect that (022 is used by most other ftpd’s)
# local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_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 orginate from port 20 ( ftp-data).
connect_from_port_20=YES
PS : Tanda yang becetak tebal merupakan tanda yang telah dihilangkan
tanda pagarnya
ü
Merestart daemon FTP
#/etc/init.d/vsftpd restart
Shutting down vsftpd :
Starting vsftpd for vsftpd :
#/etc/init.d/vsftpd restart
Shutting down vsftpd :
Starting vsftpd for vsftpd :
Konfigurasi SAMBA server
§
Install paket samba untuk versi yang terbaru
#apt-get install samba
Mengedit script smb.conf
#pico /etc/samba/smb.conf
#=================== Global Settings ====================
#apt-get install samba
Mengedit script smb.conf
#pico /etc/samba/smb.conf
#=================== Global Settings ====================
[global]
workgroup = tkj —-> nama workgroup yang muncul nantinya
netbios name = ammardiah
security = share —-> apabila ingin di password “share” diganti dengan “user”
workgroup = tkj —-> nama workgroup yang muncul nantinya
netbios name = ammardiah
security = share —-> apabila ingin di password “share” diganti dengan “user”
[lagu]
comment = lagu
path = home/tkj/ammardiah
read only = yes
public = yes
valid user = nobody
write list = yes
comment = lagu
path = home/tkj/ammardiah
read only = yes
public = yes
valid user = nobody
write list = yes
§ Merestart daemon Samba
#/etc/init.d/samba restart
#/etc/init.d/samba restart
§ Untuk test apakah konfigurasi
kita sudah berhasil, lakukan pengecekan menggunakan search ->computers or
people ->a computer on the network ->ketikkan alamat IP kita
Konfigurasi Squid server
o
Install paket squid, dengan perintah:
#apt-get install squid
Mengedit script squid.conf
#pico /etc/squid/squid.conf
#apt-get install squid
Mengedit script squid.conf
#pico /etc/squid/squid.conf
visible_hostname (hostname yg diperlukan)
cache_mgr (alamat e-mail)
http_port 3128 transparent
always_direct allow all
cache_dir ufs /var/spool/squid 500 16 256
cache_mgr (alamat e-mail)
http_port 3128 transparent
always_direct allow all
cache_dir ufs /var/spool/squid 500 16 256
dan Edit juga script di bawah ini :
acl all src 0.0.0.0/0.0.0.0
acl lab1 src 192.168.1.0/255.255.255.0
acl tidak dstdomain http://www.ammardiah.com
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl lab1 src 192.168.1.0/255.255.255.0
acl tidak dstdomain http://www.ammardiah.com
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
o
Membuat cache directory dengan mengetikkan perintah
#squid –z
Merestart daemon Squid
#/etc/init.d/squid restart
#squid –z
Merestart daemon Squid
#/etc/init.d/squid restart
o
Untuk test apakah konfigurasi Anda sudah berhasil,
buka Internet Explorer
tools
internet options
connections
LAN setting
Pilih use automatic configuration script
lalu isikan pada address alamat server kita
tools
internet options
connections
LAN setting
Pilih use automatic configuration script
lalu isikan pada address alamat server kita
Konfigurasi MAIL server
> Instal paket postfix
1. Masukkan cd debian yang tersedia paket
postfix
2. Ketikkan perintah berikut untuk menginstal
#apt-get install postfix
1. Masukkan cd debian yang tersedia paket
postfix
2. Ketikkan perintah berikut untuk menginstal
#apt-get install postfix
> Instal paket courier-imap
1. Masukkan cd debian yang tersedia paket
courier-imap
2. Ketikkan perintah berikut untuk menginstal
#apt-get install courier-imap
1. Masukkan cd debian yang tersedia paket
courier-imap
2. Ketikkan perintah berikut untuk menginstal
#apt-get install courier-imap
> Instal courier-pop
1. Masukkan cd debian yang tersedia paket
courier-pop
2. Ketikkan perintah berikut untuk menginstal
#apt-get install courier-pop
1. Masukkan cd debian yang tersedia paket
courier-pop
2. Ketikkan perintah berikut untuk menginstal
#apt-get install courier-pop
> Instal paket squirrelmail
1. Masukkan cd debian yang tersedia paket
squirrelmail
2. Ketikkan perintah berikut untuk mengistal
#apt-get install squirrelmail
1. Masukkan cd debian yang tersedia paket
squirrelmail
2. Ketikkan perintah berikut untuk mengistal
#apt-get install squirrelmail
> Konfigurasi script postfix
1. Edit file main.cf
#vim /etc/postfix/main.cf
2. Tambahkan script di bawah ini
mydomain = http://www.tkj.sch.id
home_mailbox = Maildir/
mynetworks = 127.0.0.0/8 10.252.22.0/24
1. Edit file main.cf
#vim /etc/postfix/main.cf
2. Tambahkan script di bawah ini
mydomain = http://www.tkj.sch.id
home_mailbox = Maildir/
mynetworks = 127.0.0.0/8 10.252.22.0/24
> Konfigurasi virtual host squirrelmail
1. Edit file apache2
#vim /etc/apache2/sites-available/default
2. Tambahkan script di bawah ini
Alias /webmail “/usr/share/squirrelmail/”
Allow from all
1. Edit file apache2
#vim /etc/apache2/sites-available/default
2. Tambahkan script di bawah ini
Alias /webmail “/usr/share/squirrelmail/”
Allow from all
> Membuat user di server
1. Ketikkan perintah berikut
#adduser [terserah]
1. Ketikkan perintah berikut
#adduser [terserah]
> Membuat folder maildir di user tertentu
#cd /home/[user]
#maildirmake Maildir
#chown [user].[user] Maildir /-Rf
#cd /home/[user]
#maildirmake Maildir
#chown [user].[user] Maildir /-Rf
> Testing squirrelmail
1. Buka web browser
1. Buka web browser
http://www.debian.com/webmail
1. Buat user 1
2. Masuk ke http://www.debian.com
3. Login sebagai user
4. kirim e-mail ke user 1
WEB SERVER
·
Install apache dengan perintah :
# apt-get install apache2
# apt-get install apache2
·
Lihat apakah filedefault sudah ada dengan perintah:
# pico /etc/apache/site-availaible/default
Tidak perlu mengedit apapun di file tsb.
# pico /etc/apache/site-availaible/default
Tidak perlu mengedit apapun di file tsb.
·
Untuk Tampilan Webserver, kita dapat mengeditnya
dengan :
# pico /var/www/apache-default/index.html
Setelah selasai simpan konfigurasi tsb.
# pico /var/www/apache-default/index.html
Setelah selasai simpan konfigurasi tsb.
· Restart apache dengan perintah :
# /etc/init.d/apache2 restart
Tidak ada komentar:
Posting Komentar