0% found this document useful (0 votes)
27 views

Tutor Seting Linux Server Debianx

The document describes the configuration of DNS, proxy, FTP, and web servers on a Debian Squeeze 6.1 system. It details partitioning the system disk with 80% for the system and 20% for swap. It then provides instructions for configuring BIND as the DNS server, Squid as the transparent proxy server to block specific sites, ProFTPD for the FTP server, and Apache for the web server. Directories and users are created to host content for different domains and servers. The services are tested upon completion of the configurations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Tutor Seting Linux Server Debianx

The document describes the configuration of DNS, proxy, FTP, and web servers on a Debian Squeeze 6.1 system. It details partitioning the system disk with 80% for the system and 20% for swap. It then provides instructions for configuring BIND as the DNS server, Squid as the transparent proxy server to block specific sites, ProFTPD for the FTP server, and Apache for the web server. Directories and users are created to host content for different domains and servers. The services are tested upon completion of the configurations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

MENSETTING DNS SERVER, PROXY SERVER, FTP SERVER DAN WEB SERVER

DENGAN DEBIAN SQUEZE 6.1


Oleh
Andi Novianto

Ketentuan soal
1. Partisi
System
= 80% harddisk
Format system
= ext3
Swap
= 20%
2. DNS Server
Unpk.net
= 192.168.13.65/26
www.unpk.net
= 192.168.13.66/26
Ns.unpk.net
= 172.16.0.129/25
Mail.tkjc.com
= 10.10.10.10/24
Ns.tkjc.com
= 192.168.11.1/24
3. Proxy Server
Ip proxy
= 192.168.13.65/26
Port
= 6600
Mode
= transparent
Site block
= facebook.com, youtube.com
Ip yang hanya bias internet =
192.168.13.70/26
4. FTP Server
5. Web Server
Untuk langkah mengkonfigurasi DNS dan Proxy lihat modul sebelumnya.
MENGKONFIGURASI FTP SERVER
Mount DVD Drive dengan perintah :
root@debian:/etc/bind# apt-cdrom add
Install web server dengan perintah :
root@debian:/etc/bind# apt-get install proftpd
Pilih opsi stand alone
Edit proftpd.conf
root@debian:~# nano /etc/proftpd/proftpd.conf
Hilangkan tanda komentar (#) pada script di bawah ini :
DefaultRoot
~
DirFakeUser
on ftp
DirFakeGroup
on ftp
MaxClients
10
DisplayLogin
welcome.msg
DisplayChdir
.message
Simpan file konfigurasi tersebut.
Mengkonfigurasi DNS, Proxy, Web dan FTP Server oleh Andi Novianto, S.Kom

Page |1

Kemudian buatlah user unpk pada direktori /home/unpk


root@debian:~# mkdir /home/unpk
root@debian:~# chmod 777 -R /home/unpk/
root@debian:~# useradd -d /home/unpk unpk
root@debian:~# passwd unpk
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Buat user www_unpk
root@debian:~# mkdir /home/www_unpk
root@debian:~# chmod 777 -R /home/www_unpk/
root@debian:~# useradd -d /home/www_unpk www_unpk
root@debian:~# passwd www_unpk
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Buat user ns_unpk
root@debian:~# mkdir /home/ns_unpk
root@debian:~# chmod 777 -R /home/ns_unpk /
root@debian:~# useradd -d /home/ns_unpk ns_unpk
root@debian:~# passwd ns_unpk
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Buat user mail_tkjc
root@debian:~# mkdir /home/mail_tkjc
root@debian:~# chmod 777 -R /home/mail_tkjc/
root@debian:~# useradd -d /home/mail_tkjc mail_tkjc
root@debian:~# passwd mail_tkjc
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Buat user ns_tkjc
root@debian:~# mkdir /home/ns_tkjc
root@debian:~# chmod 777 -R /home/ns_tkjc/
root@debian:~# useradd -d /home/ns_tkjc ns_tkjc
root@debian:~# passwd ns_tkjc
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Restart ftp server
root@debian:~# service proftpd restart
Stopping ftp server: proftpd.

Mengkonfigurasi DNS, Proxy, Web dan FTP Server oleh Andi Novianto, S.Kom

Page |2

Starting ftp server: proftpd.


Atau dengan perintah di bawah ini
root@debian:~# /etc/init.d/proftpd restart
Uji ftp server pada web browser

MENGKONFIGURASI WEB SERVER


Mount DVD Drive dengan perintah :
root@debian:/etc/bind# apt-cdrom add
Install web server dengan perintah :
root@debian:/etc/bind# apt-get install apache2 php5
Masuk ke direktori apache
root@debian:~# cd /etc/apache2/
Edit file berikut ini :
root@debian:/etc/apache2# nano sites-available/default
Ubah pada baris 1- 4 menjadi seperti di bawah ini :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName unpk.net
DocumentRoot /home/unpk

Kemudian tambahkan script ini pada baris paling bawah :


<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.unpk.net
DocumentRoot /home/www_unpk

Mengkonfigurasi DNS, Proxy, Web dan FTP Server oleh Andi Novianto, S.Kom

Page |3

</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName ns.unpk.net
DocumentRoot /home/ns_unpk
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mail.tkjc.com
DocumentRoot /home/mail_tkjc
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName ns.tkjc.com
DocumentRoot /home/ns_tkjc
</VirtualHost>
Restart web server
root@debian:/etc/apache2# service apache2 restart
Restarting web server: apache2 ... waiting .
Buatlah tampilan web untuk setiap domain pada setiap direktori yang ditentukan
root@debian:/home# nano mail_tkjc/index.php
root@debian:/home# nano ns_tkjc/index.php
root@debian:/home# nano unpk/index.php
root@debian:/home# nano ns_unpk/index.php
root@debian:/home# nano www__unpk/index.php
root@debian:/home# nano www_unpk/index.php
Restart web server
root@debian:/home# service apache2 restart
Restarting web server: apache2 ... waiting .
Cek masing-masing domain menggunakan web browser

Mengkonfigurasi DNS, Proxy, Web dan FTP Server oleh Andi Novianto, S.Kom

Page |4

You might also like