SlideShare a Scribd company logo
Server Debian
Konfigurasi PC Server
: SETTING IP ADDRESS PC SERVER
1. Edit konfigurasi IP Address di /etc/network/interfaces.
debian:~# pico /etc/network/interfaces
1. Tambahkan script address di bawah ini. Bila tidak dapat menggunakan allow-hotplug gunakan
alternatif auto
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.120
netmask 255.255.255.0
network 192.168.0.1
broadcast 192.168.0.255
gateway192.168.0.1
dns-nameservers 192.168.0.1
dns-search telkom.net
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
dns-nameservers 192.168.10.1
dns-search smktkj.sch.id
1. Simpan dengan menekan Ctrl + X lalu Y, dan tekan Enter.
2. Kemudian restart networkingnya dengan perintah :
debian:~# /etc/init.d/networking restart
: SETTING DHCP SERVER
1. Install aplikasi DHCP Server.
debian:~# apt-get install dhcp3-server
2. Install aplikasi mc dan lynx.
debian:~# apt-get install mc lynx
3. Edit file /etc/dhcp3/dhcpd.conf
debian:~# pico /etc/dhcp3/dhcpd.conf
4. Tambahkan script seperti di bawah ini.
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.2 192.168.10.100;
option routers 192.168.10.1;
option domain-name-servers 192.168.10.1, 203.130.206.250;
option domain-name "smktkj.sch.id";
option broadcast-address 192.168.10.255;
default-lease-time 7200; max-lease-time 86400;}
1. Simpan dengan menekan Ctrl + X lalu Y, tekan Enter.
2. Kemudian restart DHCP Server dengan perintah :
debian:~# /etc/init.d/dhcp3-server restart
: SETTING SSH (Secure Shell)
1. Install aplikasi SSH
debian:~# apt-get install openssh-server
1. Aktifkan SSH.
debian:~# /etc/init.d/ssh start
: SETTING WEB SERVER
1. Install aplikasi Web Server
debian:~# apt-get install apache2
2. Install PHP
debian:~# apt-get install php5
3. Buat direktori file web yang akan dijalankan.
debian:~# mkdir /var/www/myweb
4. Edit file /etc/apache2/sites-available/default
debian:~# pico /etc/apache2/sites-available/default
5. Mengubah letak direktori web
DocumentRoot /var/www/myweb/
<Directory /var/www/myweb/>
6. Simpan dengan menekan Ctrl + X lalu Y, tekan Enter.
7. Mengubah agar waktu pertama kali yang dijalankan bukan Apache, melaikan web yang telah kita
buat sendiri.
# RedirectMatch ^/$ /apache2-default/
8. Kemudian membuat web.
debian:~# pico /var/www/myweb/index.html
9. Ketikkan script html berikut, kemudian simpan dengan menekan Ctrl + X lalu Y, tekan Enter.
<html>
<title> .::WEB SMK TKJ SIGAMBAL::. </title>
<body>
<font size=24> Selamat datang di Web SMK TKJ SIGAMBAL
</font>
</body>
</html>
10. Restart Apache.
debian:~# /etc/init.d/apache2 restart
11. Test web server-nya dengan masuk ke lynx.
debian:~# lynx 192.168.10.1
: SETTING DNS SERVER
1. Install aplikasi DNS Server
debian:~# apt-get install bind9
1. Copy file db.local menjadi db.domain, misal, db.smk dan db.127 menjadi db.IP, misal :
db.192.
debian:~# cp /etc/bind/db.local /var/cache/bind/db.smk
debian:~# cp /etc/bind/db.127 /var/cache/bind/db.192
1. Edit file db.stm.
debian:~# pico /var/cache/bind/db.smk
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA smktkj.sch.id. root.smktkj.sch.id. (
1 ; Serial
604800 ; Refresh
86400 ;Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS smktkj.sch.id.
@ IN A 192.168.10.1
@ IN MX 1 mail.smktkj.sch.id.
www IN A 192.168.10.1
ftp IN A 192.168.10.1
mail IN A 192.168.10.1
Simpan dengan menekan Ctrl + X lalu Y, tekan Enter.
1. Edit file db.192.
debian:~# pico /var/cache/bind/db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA smktkj.sch.id. root.smktkj.sch.id. (
1 ; Serial
604800 ; Refresh
86400 ;Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS smktkj.sch.id.
1 IN PTR smktkj.sch.id.
Simpan dengan menekan Ctrl + X lalu Y, tekan Enter.
1. Edit file named.conf.
debian:~# pico /etc/bind/named.conf
Tambahkan zona seperti di bawah ini.
zone "smktkj.sch.id" {
type master;
file "/var/cache/bind/db.smk";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/var/cache/bind/db.192";
};
Simpan dengan menekan Ctrl + X lalu Y, tekan Enter.
1. Edit file /etc/resolv.conf.
debian:~# pico /etc/resolv.conf
search smktkj.sch.id
servername 192.168.10.1
servername 192.168.0.1
servername 203.130.206.250
1. Restart bind dan mencobanya ping <nama domain>.
debian:~# /etc/init.d/bind9 restart
debian:~# ping smktkj.sch.id
: SETTING FTP SERVER
1. Membuat direktori FTP.
debian:~# mkdir –p /ftpserver
1. Setting permission folder tersebut.
debian:~# chmod 755 –R /ftpserver
1. Membuat user FTP untuk anonymous.
debian:~# useradd –d /ftpserver ftp
1. Install aplikasi FTP Server.
debian:~# apt-get install vsftpd
1. Copykan salah satu file dari direktori lain ke direktori FTP.
debian:~# cp /var/www/apache2-default/index.html /ftpserver
1. Test ftp dengan masuk ke lynx.
debian:~# lynx ftp://smkypm1.sch.id/
: SETTING PROXY SERVER
1. Install aplikasi Proxy Server.
debian:~# apt-get install squid
2. Konfigurasi file /etc/squid/squid.conf.
debian:~# pico /etc/squid/squid.conf
3. Kemudian edit beberapa parameter dalam optimasi squid.
http_port 3128 transparent
icp_port 0
cache_mem 32 MB
cache_swap_low 98%
cache_swap_high 99%
cache_dir ufs /var/spool/squid 1600 4 256
negative_ttl 2 minutes
acl localnet src 192.168.10.0/255.255.255.0
http_access allow localnet
cache_mgr admin-smk@yahoo.com
visible_hostname smk-tkj-proxy-squid
4. Buat File Swap dengan perintah
debian:~# squid -z
5. Untuk memblok situs dan kata
debian:~# echo 1 > /proc/sys/net/ipv4/ip_forward
Buat folder, tempat daftar situs yang ingin kita blok.
debian:~# pico /etc/jangan.txt
Kemudian kembali edit konfigurasi squid
debian:~# pico /etc/squid/squid.conf
Tambahkan script seperti berikut :
acl blokir url_regex –i “/etc/jangan.txt”
http_access deny blokir
6. Restart squid.
debian:~# /etc/init.d/squid restart
7. Jika error, cari letak kesalahan dengan monitoring.
debian:~# tail -f /var/log/messages
: SETTING EMAIL SERVER
1. Installasi paket Email Server.
debian:~# apt-get remove exim4*
debian:~# apt-get install squid courier-pop courier-imap squirrelmail
1. Installasi paket Postfix.
debian:~# apt-get install postfix
1. Konfigurasi file etc/postfix/main.cf.
debian:~# pico /etc/postfix/main.cf
1. Tambahkan script di bawah ini.
mydomain = smktkj.sch.id
mynetworks = 127.0.0.0/8 192.168.10.0/24
home_mailbox = Maildir/
1. Restart postfix.
debian:~# /etc/init.d/postfix restart
1. Konfigurasi Squirrelmail.
debian:~# squirrelmail-configure
1. Pilih 2 (untuk Server setting), lalu Enter.
2. Kemudian A (untuk Update IMAP Server), lalu Enter.
3. Pilih 8, Enter.
4. Ketik courier.
5. Tekan S (untuk menyimpan konfigurasi), kemudian jawab Y, Enter.
6. Akhiri dengan Q (untuk keluar).
7. Konfigurasi virtualhost squirrelmail.
debian:~# pico /etc/apache2/sites-available/default
1. Tambahkan script di bawah ini.
Alias /webmail “/usr/share/squirrelmail/”
<Directory “/usr/share/squirrelmail/”>
Allow from
</Directory>
1. Membuat mail direktorinya dan mengkonfigurasi permissionnya.
debian:~# maildirmake.courier /home/[user]/Maildir
debian:~# chown [user].[user] –R /home/[user]/Maildir
Note: user disesuaikan dengan user yang kalian buat.
1. Membuat folder Maildir otomatis ketika create user.
debian:~# maildirmake.courier /etc/skel/Maildir
1. Testing postfix.
debian:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost
Escape character is '^]'.
220 debian.smktkj.sch.id ESMTP Postfix
(Debian/GNU)
ehlo localhost
250-debian.smktkj.sch.id
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250 8BITMIME
quit
221 Bye
Connection closed by foreign host.
1. Testing squirrelmail.
debian:~# lynx smktkj.sch.id/webmail
1. Membuat user baru dan mengisi passwordnya.
debian:~# useradd user1
1. Masuk ke Webmail dan login sebagai user1
debian:~# lynx smkypm1.sch.id/webmail
1. Coba kirim email ke user lain.
2. Untuk check error, gunakan perintah berikut.
debian:~# tail -f /var/log/mail.log
debian:~# tail -f /var/log/mail.info
debian:~# tail -f /var/log/mail.err
Konfigurasi Router agar Client dapat koneksi ke Internet
1. Masukkan Iptables dengan perintah :
debian:~# iptables –t nat –A POSTROUTING –o eth1 –s 192.168.10.0/255.255.255.0 –j
MASQUERADE
debian:~# iptables –t nat –A POSTROUTING –o eth1 –s 192.168.10.0/255.255.255.0 –j SNAT –-
to-source 192.168.0.120
debian:~# iptables –t nat –A PREROUTING –s 192.168.10.0/255.255.255.0 –p tcp -–dport 80 –J
REDIRECT –-to-ports 3128
1. Tambahkan script berikut sebelum exit.
debian:~# pico /etc/rc.local
iptables –t nat –A POSTROUTING –o eth1 –s 192.168.10.0/255.255.255.0 –j MASQUERADE
iptables –t nat –A POSTROUTING –o eth1 –s 192.168.10.0/255.255.255.0 –j SNAT -–to-source
192.168.0.120
iptables –t nat –A PREROUTING –s 192.168.10.0/255.255.255.0 –p tcp –-dport 80 –J
REDIRECT –-to-ports 3128

More Related Content

What's hot

Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
abdullah roomi
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
franbow
 
Apache
ApacheApache
Apache
rsibbaluca
 
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid UmarPENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
Walid Umar
 
Document Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OSDocument Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OS
Siddharth Ram Dinesh
 
Nfs
NfsNfs
Dns centos
Dns centosDns centos
Dns centos
Bung Densol
 
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
Beni Krisbiantoro
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
Matt Dunlap
 
Hadoop presentation
Hadoop presentationHadoop presentation
Hadoop presentation
MaggieZhang61
 
Web server
Web serverWeb server
Web server
MOHSIN HASAN
 
Raw Iron to Enterprise Server: Installing Domino on Linux
Raw Iron to Enterprise Server: Installing Domino on LinuxRaw Iron to Enterprise Server: Installing Domino on Linux
Raw Iron to Enterprise Server: Installing Domino on Linux
Devin Olson
 
Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8
Kaan Aslandağ
 
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Edureka!
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
Md. Al Amin
 
Presentation Linux Server setup Advance Networking
Presentation   Linux Server setup Advance NetworkingPresentation   Linux Server setup Advance Networking
Presentation Linux Server setup Advance Networking
Tariqul Islam Shohag
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
guest954945a
 
Dhcp
DhcpDhcp
Dhcp
Md Shihab
 
!!! Huong dan !!!
!!! Huong dan !!!!!! Huong dan !!!
!!! Huong dan !!!
Ngoc Huynh (Nina)
 

What's hot (19)

Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
 
Apache
ApacheApache
Apache
 
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid UmarPENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
PENYELESAIAN SOAL UKK/UPK TAHUN 2018 Paket 3 oleh Walid Umar
 
Document Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OSDocument Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OS
 
Nfs
NfsNfs
Nfs
 
Dns centos
Dns centosDns centos
Dns centos
 
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
 
Hadoop presentation
Hadoop presentationHadoop presentation
Hadoop presentation
 
Web server
Web serverWeb server
Web server
 
Raw Iron to Enterprise Server: Installing Domino on Linux
Raw Iron to Enterprise Server: Installing Domino on LinuxRaw Iron to Enterprise Server: Installing Domino on Linux
Raw Iron to Enterprise Server: Installing Domino on Linux
 
Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8
 
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
 
Presentation Linux Server setup Advance Networking
Presentation   Linux Server setup Advance NetworkingPresentation   Linux Server setup Advance Networking
Presentation Linux Server setup Advance Networking
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Dhcp
DhcpDhcp
Dhcp
 
!!! Huong dan !!!
!!! Huong dan !!!!!! Huong dan !!!
!!! Huong dan !!!
 

Viewers also liked

Building the case for improving your project management maturity (P3M3) - PMI...
Building the case for improving your project management maturity (P3M3) - PMI...Building the case for improving your project management maturity (P3M3) - PMI...
Building the case for improving your project management maturity (P3M3) - PMI...
Wired Consulting
 
Biblia Sagrada
Biblia SagradaBiblia Sagrada
Biblia Sagrada
Marcos Souza
 
Ktifkan dulu microsoft visual basic
Ktifkan dulu microsoft visual basicKtifkan dulu microsoft visual basic
Ktifkan dulu microsoft visual basic
Slamet Achwandy
 
Mikrotik+hit
Mikrotik+hitMikrotik+hit
Mikrotik+hit
Slamet Achwandy
 
Sports sponsorship and government regulation
Sports sponsorship and government regulationSports sponsorship and government regulation
Sports sponsorship and government regulation
Leigh Sherman
 
Mikrotik+hit
Mikrotik+hitMikrotik+hit
Mikrotik+hit
Slamet Achwandy
 
Tree Octopus. Fact/Fiction?
Tree Octopus. Fact/Fiction?Tree Octopus. Fact/Fiction?
Tree Octopus. Fact/Fiction?hollyrucker4
 
Air max5 and_mikrotik_router_board_connection_guide_revised
Air max5 and_mikrotik_router_board_connection_guide_revisedAir max5 and_mikrotik_router_board_connection_guide_revised
Air max5 and_mikrotik_router_board_connection_guide_revised
Slamet Achwandy
 
117368473 kurikulum-2013
117368473 kurikulum-2013117368473 kurikulum-2013
117368473 kurikulum-2013
Slamet Achwandy
 
Projet vs Programme vs Portefeuille
Projet vs Programme vs PortefeuilleProjet vs Programme vs Portefeuille
Projet vs Programme vs Portefeuille
Radenko Corovic
 
P3 M3 Services 2v0 App
P3 M3 Services 2v0 AppP3 M3 Services 2v0 App
P3 M3 Services 2v0 App
AndyMurray
 
chapitre 2 poly 2
chapitre 2 poly 2chapitre 2 poly 2
chapitre 2 poly 2
Boris Adam
 
Pres agile tour 2012 d0.83 fr
Pres agile tour 2012 d0.83 frPres agile tour 2012 d0.83 fr
Pres agile tour 2012 d0.83 fr
Patrick Sarfati
 
Implementing ISO 26514 in Your Workplace
Implementing ISO 26514 in Your WorkplaceImplementing ISO 26514 in Your Workplace
Implementing ISO 26514 in Your Workplace
STC Atlanta Chapter
 
Jardines de rosales
Jardines de  rosalesJardines de  rosales
Jardines de rosalesiperezlillo
 
PMO sur un programme de l\'Etat, P3O
PMO sur un programme de l\'Etat, P3OPMO sur un programme de l\'Etat, P3O
PMO sur un programme de l\'Etat, P3O
LENNY_DESCAMPS
 
Rentrée de l'innovation 2015 - CARDIE de Lyon
Rentrée de l'innovation 2015 - CARDIE de LyonRentrée de l'innovation 2015 - CARDIE de Lyon
Rentrée de l'innovation 2015 - CARDIE de Lyon
DFIE Lyon
 
norma-iso-ts-16949-espanol
norma-iso-ts-16949-espanolnorma-iso-ts-16949-espanol
norma-iso-ts-16949-espanol
Jesus Rene Anaguano
 
Formation ISO TS 16949 (XL Formation)
Formation ISO TS 16949 (XL Formation)Formation ISO TS 16949 (XL Formation)
Formation ISO TS 16949 (XL Formation)
Laurent
 

Viewers also liked (20)

Building the case for improving your project management maturity (P3M3) - PMI...
Building the case for improving your project management maturity (P3M3) - PMI...Building the case for improving your project management maturity (P3M3) - PMI...
Building the case for improving your project management maturity (P3M3) - PMI...
 
Biblia Sagrada
Biblia SagradaBiblia Sagrada
Biblia Sagrada
 
Ktifkan dulu microsoft visual basic
Ktifkan dulu microsoft visual basicKtifkan dulu microsoft visual basic
Ktifkan dulu microsoft visual basic
 
Mikrotik+hit
Mikrotik+hitMikrotik+hit
Mikrotik+hit
 
Sports sponsorship and government regulation
Sports sponsorship and government regulationSports sponsorship and government regulation
Sports sponsorship and government regulation
 
Mikrotik+hit
Mikrotik+hitMikrotik+hit
Mikrotik+hit
 
Tree Octopus. Fact/Fiction?
Tree Octopus. Fact/Fiction?Tree Octopus. Fact/Fiction?
Tree Octopus. Fact/Fiction?
 
Air max5 and_mikrotik_router_board_connection_guide_revised
Air max5 and_mikrotik_router_board_connection_guide_revisedAir max5 and_mikrotik_router_board_connection_guide_revised
Air max5 and_mikrotik_router_board_connection_guide_revised
 
117368473 kurikulum-2013
117368473 kurikulum-2013117368473 kurikulum-2013
117368473 kurikulum-2013
 
Projet vs Programme vs Portefeuille
Projet vs Programme vs PortefeuilleProjet vs Programme vs Portefeuille
Projet vs Programme vs Portefeuille
 
P3 M3 Services 2v0 App
P3 M3 Services 2v0 AppP3 M3 Services 2v0 App
P3 M3 Services 2v0 App
 
chapitre 2 poly 2
chapitre 2 poly 2chapitre 2 poly 2
chapitre 2 poly 2
 
Pres agile tour 2012 d0.83 fr
Pres agile tour 2012 d0.83 frPres agile tour 2012 d0.83 fr
Pres agile tour 2012 d0.83 fr
 
Implementing ISO 26514 in Your Workplace
Implementing ISO 26514 in Your WorkplaceImplementing ISO 26514 in Your Workplace
Implementing ISO 26514 in Your Workplace
 
Jardines de rosales
Jardines de  rosalesJardines de  rosales
Jardines de rosales
 
PMO sur un programme de l\'Etat, P3O
PMO sur un programme de l\'Etat, P3OPMO sur un programme de l\'Etat, P3O
PMO sur un programme de l\'Etat, P3O
 
Rentrée de l'innovation 2015 - CARDIE de Lyon
Rentrée de l'innovation 2015 - CARDIE de LyonRentrée de l'innovation 2015 - CARDIE de Lyon
Rentrée de l'innovation 2015 - CARDIE de Lyon
 
norma-iso-ts-16949-espanol
norma-iso-ts-16949-espanolnorma-iso-ts-16949-espanol
norma-iso-ts-16949-espanol
 
Intro to TS-16949
Intro to TS-16949Intro to TS-16949
Intro to TS-16949
 
Formation ISO TS 16949 (XL Formation)
Formation ISO TS 16949 (XL Formation)Formation ISO TS 16949 (XL Formation)
Formation ISO TS 16949 (XL Formation)
 

Similar to Modul quick debserver

Membangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_serverMembangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_server
Iwan Kurniarasa
 
main
mainmain
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
Omar Faruk Sazib
 
Upload files-to-zenterprise-server-via-ftp
Upload files-to-zenterprise-server-via-ftpUpload files-to-zenterprise-server-via-ftp
Upload files-to-zenterprise-server-via-ftp
Maintec Technologies Inc.
 
Ubuntu vps setup
Ubuntu vps setupUbuntu vps setup
Ubuntu vps setup
Vijay Sharma
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDC
Jalpa Soni
 
SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmail
Aryman Gautam
 
Apache
ApacheApache
Apache
rsibbaluca
 
Apache
ApacheApache
Apache
rsibbaluca
 
Step by step_linux_guide
Step by step_linux_guideStep by step_linux_guide
Step by step_linux_guide
vinod31dec
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
webhostingguy
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbai
Unmesh Baile
 
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platformDrupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Hector Iribarne
 
Freeradius edir
Freeradius edirFreeradius edir
Freeradius edir
Jonas Segovia Velazquez
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
Vicent Selfa
 
Step by step installation domino on docker
Step by step installation domino on dockerStep by step installation domino on docker
Step by step installation domino on docker
Roberto Boccadoro
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
عطاءالمنعم اثیل شیخ
 
Free ipa installation and cluster configuration, freeipa client connection
Free ipa installation and cluster configuration, freeipa client connectionFree ipa installation and cluster configuration, freeipa client connection
Free ipa installation and cluster configuration, freeipa client connection
Rustam Sariyev
 
Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleFree radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmaple
Chanaka Lasantha
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
SANTIAGO HERNÁNDEZ
 

Similar to Modul quick debserver (20)

Membangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_serverMembangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_server
 
main
mainmain
main
 
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
 
Upload files-to-zenterprise-server-via-ftp
Upload files-to-zenterprise-server-via-ftpUpload files-to-zenterprise-server-via-ftp
Upload files-to-zenterprise-server-via-ftp
 
Ubuntu vps setup
Ubuntu vps setupUbuntu vps setup
Ubuntu vps setup
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDC
 
SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmail
 
Apache
ApacheApache
Apache
 
Apache
ApacheApache
Apache
 
Step by step_linux_guide
Step by step_linux_guideStep by step_linux_guide
Step by step_linux_guide
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbai
 
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platformDrupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
 
Freeradius edir
Freeradius edirFreeradius edir
Freeradius edir
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Step by step installation domino on docker
Step by step installation domino on dockerStep by step installation domino on docker
Step by step installation domino on docker
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 
Free ipa installation and cluster configuration, freeipa client connection
Free ipa installation and cluster configuration, freeipa client connectionFree ipa installation and cluster configuration, freeipa client connection
Free ipa installation and cluster configuration, freeipa client connection
 
Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleFree radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmaple
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
 

More from Slamet Achwandy

studi-warna-komposisi-warna.ppt
studi-warna-komposisi-warna.pptstudi-warna-komposisi-warna.ppt
studi-warna-komposisi-warna.ppt
Slamet Achwandy
 
2. PEMBELAJARAN BERDIFERENSIASI.pptx
2. PEMBELAJARAN BERDIFERENSIASI.pptx2. PEMBELAJARAN BERDIFERENSIASI.pptx
2. PEMBELAJARAN BERDIFERENSIASI.pptx
Slamet Achwandy
 
Golden Ratio.pptx.pdf
Golden Ratio.pptx.pdfGolden Ratio.pptx.pdf
Golden Ratio.pptx.pdf
Slamet Achwandy
 
materi-1.pptx
materi-1.pptxmateri-1.pptx
materi-1.pptx
Slamet Achwandy
 
belajar uiux.pptx
belajar uiux.pptxbelajar uiux.pptx
belajar uiux.pptx
Slamet Achwandy
 
RUNDOWN_KEGIATAN_TALKSHOW_P5.docx
RUNDOWN_KEGIATAN_TALKSHOW_P5.docxRUNDOWN_KEGIATAN_TALKSHOW_P5.docx
RUNDOWN_KEGIATAN_TALKSHOW_P5.docx
Slamet Achwandy
 
BAB_III1.pptx
BAB_III1.pptxBAB_III1.pptx
BAB_III1.pptx
Slamet Achwandy
 
dkv1.pptx
dkv1.pptxdkv1.pptx
dkv1.pptx
Slamet Achwandy
 
sinkronisasiMapel2021.pptx
sinkronisasiMapel2021.pptxsinkronisasiMapel2021.pptx
sinkronisasiMapel2021.pptx
Slamet Achwandy
 
Mengelola web
Mengelola webMengelola web
Mengelola web
Slamet Achwandy
 
135928077 instrumen-penilaian-mat-smp
135928077 instrumen-penilaian-mat-smp135928077 instrumen-penilaian-mat-smp
135928077 instrumen-penilaian-mat-smp
Slamet Achwandy
 
Soat netrb latihan
Soat netrb latihanSoat netrb latihan
Soat netrb latihan
Slamet Achwandy
 
20100325 modul 06_b
20100325 modul 06_b20100325 modul 06_b
20100325 modul 06_b
Slamet Achwandy
 

More from Slamet Achwandy (13)

studi-warna-komposisi-warna.ppt
studi-warna-komposisi-warna.pptstudi-warna-komposisi-warna.ppt
studi-warna-komposisi-warna.ppt
 
2. PEMBELAJARAN BERDIFERENSIASI.pptx
2. PEMBELAJARAN BERDIFERENSIASI.pptx2. PEMBELAJARAN BERDIFERENSIASI.pptx
2. PEMBELAJARAN BERDIFERENSIASI.pptx
 
Golden Ratio.pptx.pdf
Golden Ratio.pptx.pdfGolden Ratio.pptx.pdf
Golden Ratio.pptx.pdf
 
materi-1.pptx
materi-1.pptxmateri-1.pptx
materi-1.pptx
 
belajar uiux.pptx
belajar uiux.pptxbelajar uiux.pptx
belajar uiux.pptx
 
RUNDOWN_KEGIATAN_TALKSHOW_P5.docx
RUNDOWN_KEGIATAN_TALKSHOW_P5.docxRUNDOWN_KEGIATAN_TALKSHOW_P5.docx
RUNDOWN_KEGIATAN_TALKSHOW_P5.docx
 
BAB_III1.pptx
BAB_III1.pptxBAB_III1.pptx
BAB_III1.pptx
 
dkv1.pptx
dkv1.pptxdkv1.pptx
dkv1.pptx
 
sinkronisasiMapel2021.pptx
sinkronisasiMapel2021.pptxsinkronisasiMapel2021.pptx
sinkronisasiMapel2021.pptx
 
Mengelola web
Mengelola webMengelola web
Mengelola web
 
135928077 instrumen-penilaian-mat-smp
135928077 instrumen-penilaian-mat-smp135928077 instrumen-penilaian-mat-smp
135928077 instrumen-penilaian-mat-smp
 
Soat netrb latihan
Soat netrb latihanSoat netrb latihan
Soat netrb latihan
 
20100325 modul 06_b
20100325 modul 06_b20100325 modul 06_b
20100325 modul 06_b
 

Modul quick debserver

  • 1. Server Debian Konfigurasi PC Server : SETTING IP ADDRESS PC SERVER 1. Edit konfigurasi IP Address di /etc/network/interfaces. debian:~# pico /etc/network/interfaces 1. Tambahkan script address di bawah ini. Bila tidak dapat menggunakan allow-hotplug gunakan alternatif auto allow-hotplug eth0 iface eth0 inet static address 192.168.0.120 netmask 255.255.255.0 network 192.168.0.1 broadcast 192.168.0.255 gateway192.168.0.1 dns-nameservers 192.168.0.1 dns-search telkom.net allow-hotplug eth1 iface eth1 inet static address 192.168.10.1 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255 gateway 192.168.10.1 dns-nameservers 192.168.10.1 dns-search smktkj.sch.id 1. Simpan dengan menekan Ctrl + X lalu Y, dan tekan Enter. 2. Kemudian restart networkingnya dengan perintah : debian:~# /etc/init.d/networking restart
  • 2. : SETTING DHCP SERVER 1. Install aplikasi DHCP Server. debian:~# apt-get install dhcp3-server 2. Install aplikasi mc dan lynx. debian:~# apt-get install mc lynx 3. Edit file /etc/dhcp3/dhcpd.conf debian:~# pico /etc/dhcp3/dhcpd.conf 4. Tambahkan script seperti di bawah ini. subnet 192.168.10.0 netmask 255.255.255.0 { range 192.168.10.2 192.168.10.100; option routers 192.168.10.1; option domain-name-servers 192.168.10.1, 203.130.206.250; option domain-name "smktkj.sch.id"; option broadcast-address 192.168.10.255; default-lease-time 7200; max-lease-time 86400;} 1. Simpan dengan menekan Ctrl + X lalu Y, tekan Enter. 2. Kemudian restart DHCP Server dengan perintah : debian:~# /etc/init.d/dhcp3-server restart : SETTING SSH (Secure Shell) 1. Install aplikasi SSH debian:~# apt-get install openssh-server
  • 3. 1. Aktifkan SSH. debian:~# /etc/init.d/ssh start : SETTING WEB SERVER 1. Install aplikasi Web Server debian:~# apt-get install apache2 2. Install PHP debian:~# apt-get install php5 3. Buat direktori file web yang akan dijalankan. debian:~# mkdir /var/www/myweb 4. Edit file /etc/apache2/sites-available/default debian:~# pico /etc/apache2/sites-available/default 5. Mengubah letak direktori web DocumentRoot /var/www/myweb/ <Directory /var/www/myweb/> 6. Simpan dengan menekan Ctrl + X lalu Y, tekan Enter. 7. Mengubah agar waktu pertama kali yang dijalankan bukan Apache, melaikan web yang telah kita buat sendiri. # RedirectMatch ^/$ /apache2-default/ 8. Kemudian membuat web. debian:~# pico /var/www/myweb/index.html
  • 4. 9. Ketikkan script html berikut, kemudian simpan dengan menekan Ctrl + X lalu Y, tekan Enter. <html> <title> .::WEB SMK TKJ SIGAMBAL::. </title> <body> <font size=24> Selamat datang di Web SMK TKJ SIGAMBAL </font> </body> </html> 10. Restart Apache. debian:~# /etc/init.d/apache2 restart 11. Test web server-nya dengan masuk ke lynx. debian:~# lynx 192.168.10.1
  • 5. : SETTING DNS SERVER 1. Install aplikasi DNS Server debian:~# apt-get install bind9 1. Copy file db.local menjadi db.domain, misal, db.smk dan db.127 menjadi db.IP, misal : db.192. debian:~# cp /etc/bind/db.local /var/cache/bind/db.smk debian:~# cp /etc/bind/db.127 /var/cache/bind/db.192 1. Edit file db.stm. debian:~# pico /var/cache/bind/db.smk ; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA smktkj.sch.id. root.smktkj.sch.id. ( 1 ; Serial 604800 ; Refresh 86400 ;Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL
  • 6. ; @ IN NS smktkj.sch.id. @ IN A 192.168.10.1 @ IN MX 1 mail.smktkj.sch.id. www IN A 192.168.10.1 ftp IN A 192.168.10.1 mail IN A 192.168.10.1 Simpan dengan menekan Ctrl + X lalu Y, tekan Enter. 1. Edit file db.192. debian:~# pico /var/cache/bind/db.192 ; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA smktkj.sch.id. root.smktkj.sch.id. ( 1 ; Serial 604800 ; Refresh 86400 ;Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS smktkj.sch.id. 1 IN PTR smktkj.sch.id. Simpan dengan menekan Ctrl + X lalu Y, tekan Enter. 1. Edit file named.conf. debian:~# pico /etc/bind/named.conf
  • 7. Tambahkan zona seperti di bawah ini. zone "smktkj.sch.id" { type master; file "/var/cache/bind/db.smk"; }; zone "1.168.192.in-addr.arpa" { type master; file "/var/cache/bind/db.192"; }; Simpan dengan menekan Ctrl + X lalu Y, tekan Enter. 1. Edit file /etc/resolv.conf. debian:~# pico /etc/resolv.conf search smktkj.sch.id servername 192.168.10.1 servername 192.168.0.1 servername 203.130.206.250 1. Restart bind dan mencobanya ping <nama domain>. debian:~# /etc/init.d/bind9 restart debian:~# ping smktkj.sch.id : SETTING FTP SERVER
  • 8. 1. Membuat direktori FTP. debian:~# mkdir –p /ftpserver 1. Setting permission folder tersebut. debian:~# chmod 755 –R /ftpserver 1. Membuat user FTP untuk anonymous. debian:~# useradd –d /ftpserver ftp 1. Install aplikasi FTP Server. debian:~# apt-get install vsftpd 1. Copykan salah satu file dari direktori lain ke direktori FTP. debian:~# cp /var/www/apache2-default/index.html /ftpserver 1. Test ftp dengan masuk ke lynx. debian:~# lynx ftp://smkypm1.sch.id/ : SETTING PROXY SERVER 1. Install aplikasi Proxy Server. debian:~# apt-get install squid 2. Konfigurasi file /etc/squid/squid.conf. debian:~# pico /etc/squid/squid.conf 3. Kemudian edit beberapa parameter dalam optimasi squid. http_port 3128 transparent icp_port 0 cache_mem 32 MB
  • 9. cache_swap_low 98% cache_swap_high 99% cache_dir ufs /var/spool/squid 1600 4 256 negative_ttl 2 minutes acl localnet src 192.168.10.0/255.255.255.0 http_access allow localnet cache_mgr admin-smk@yahoo.com visible_hostname smk-tkj-proxy-squid 4. Buat File Swap dengan perintah debian:~# squid -z 5. Untuk memblok situs dan kata debian:~# echo 1 > /proc/sys/net/ipv4/ip_forward Buat folder, tempat daftar situs yang ingin kita blok. debian:~# pico /etc/jangan.txt Kemudian kembali edit konfigurasi squid debian:~# pico /etc/squid/squid.conf Tambahkan script seperti berikut : acl blokir url_regex –i “/etc/jangan.txt” http_access deny blokir 6. Restart squid. debian:~# /etc/init.d/squid restart 7. Jika error, cari letak kesalahan dengan monitoring.
  • 10. debian:~# tail -f /var/log/messages : SETTING EMAIL SERVER 1. Installasi paket Email Server. debian:~# apt-get remove exim4* debian:~# apt-get install squid courier-pop courier-imap squirrelmail 1. Installasi paket Postfix. debian:~# apt-get install postfix 1. Konfigurasi file etc/postfix/main.cf. debian:~# pico /etc/postfix/main.cf 1. Tambahkan script di bawah ini. mydomain = smktkj.sch.id mynetworks = 127.0.0.0/8 192.168.10.0/24 home_mailbox = Maildir/ 1. Restart postfix. debian:~# /etc/init.d/postfix restart 1. Konfigurasi Squirrelmail. debian:~# squirrelmail-configure 1. Pilih 2 (untuk Server setting), lalu Enter. 2. Kemudian A (untuk Update IMAP Server), lalu Enter. 3. Pilih 8, Enter. 4. Ketik courier. 5. Tekan S (untuk menyimpan konfigurasi), kemudian jawab Y, Enter. 6. Akhiri dengan Q (untuk keluar). 7. Konfigurasi virtualhost squirrelmail. debian:~# pico /etc/apache2/sites-available/default
  • 11. 1. Tambahkan script di bawah ini. Alias /webmail “/usr/share/squirrelmail/” <Directory “/usr/share/squirrelmail/”> Allow from </Directory> 1. Membuat mail direktorinya dan mengkonfigurasi permissionnya. debian:~# maildirmake.courier /home/[user]/Maildir debian:~# chown [user].[user] –R /home/[user]/Maildir Note: user disesuaikan dengan user yang kalian buat. 1. Membuat folder Maildir otomatis ketika create user. debian:~# maildirmake.courier /etc/skel/Maildir 1. Testing postfix. debian:~# telnet localhost 25 Trying 127.0.0.1... Connected to localhost Escape character is '^]'. 220 debian.smktkj.sch.id ESMTP Postfix (Debian/GNU) ehlo localhost 250-debian.smktkj.sch.id 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250 8BITMIME quit
  • 12. 221 Bye Connection closed by foreign host. 1. Testing squirrelmail. debian:~# lynx smktkj.sch.id/webmail 1. Membuat user baru dan mengisi passwordnya. debian:~# useradd user1 1. Masuk ke Webmail dan login sebagai user1 debian:~# lynx smkypm1.sch.id/webmail 1. Coba kirim email ke user lain. 2. Untuk check error, gunakan perintah berikut. debian:~# tail -f /var/log/mail.log debian:~# tail -f /var/log/mail.info debian:~# tail -f /var/log/mail.err Konfigurasi Router agar Client dapat koneksi ke Internet 1. Masukkan Iptables dengan perintah : debian:~# iptables –t nat –A POSTROUTING –o eth1 –s 192.168.10.0/255.255.255.0 –j MASQUERADE debian:~# iptables –t nat –A POSTROUTING –o eth1 –s 192.168.10.0/255.255.255.0 –j SNAT –- to-source 192.168.0.120
  • 13. debian:~# iptables –t nat –A PREROUTING –s 192.168.10.0/255.255.255.0 –p tcp -–dport 80 –J REDIRECT –-to-ports 3128 1. Tambahkan script berikut sebelum exit. debian:~# pico /etc/rc.local iptables –t nat –A POSTROUTING –o eth1 –s 192.168.10.0/255.255.255.0 –j MASQUERADE iptables –t nat –A POSTROUTING –o eth1 –s 192.168.10.0/255.255.255.0 –j SNAT -–to-source 192.168.0.120 iptables –t nat –A PREROUTING –s 192.168.10.0/255.255.255.0 –p tcp –-dport 80 –J REDIRECT –-to-ports 3128