You are on page 1of 7

 JARINGAN AWAL

1. root@tkj:~#nano /etc/network/interfaces
 Allow hotplug diubah menjadi auto
2. root@tkj:~#/etc/init.d/networking restart
 Routi ng

Debian
Pc client
internet eth 0 (Router) et h 1 192.168.1.5
1 9 2 . 1 6 8 .1 0 . 1 1 9 2 .1 6 8 . 1 0 .5 1 9 2 . 1 6 8 . 1 .1

1. root@tkj:~#nano /etc/network/interfaces

2. root@tkj:~#/etc/init.d/networking restart
3. (mengakti fk an IP Forward) root@tkj:~#nano /etc/sysctl.conf

 #uncomment the next line to enable packet forwarding for ipv4


#net.ipv4.ip_forward=1 <- ( hilangkan tanda # )
4. root@tkj:~#nano /etc/rc.local

5. root@tkj:~#reboot

 DHCP
1. root@tkj:~#apt-get install isc- dhcp-server
2. root@tkj:~#nano /etc/dhcp/dhcpd.conf

3. root@tkj:~#/etc/init.d/isc- dhcp-server restart


 DNS
1. root@tkj:~#apt-get install bind9
2. root@tkj:~#cd /etc/bind/
3. root@tkj:/etc/bind#ls (untuk cek fi le yang ada didalam folder “/etc/bind/”)
4. root@tkj:/etc/bind#cp named.conf.default- zones named.conf.default-
zones.backup (untuk membuat fi le backup apabila terjadi kesalahan)
5. root@tkj:/etc/bind#nano named.conf.default- zones


6. root@tkj:/etc/bind#cp db.local db.tkj
7. root@tkj:/etc/bind#nano db.tkj

8. root@tkj:/etc/bind#cp db.127 db.192


9. root@tkj:/etc/bind#nano db.192

10. root@tkj:/etc/bind#named- checkconf –z named.conf


(jika muncul :
Berarti sudah benar)
11. root@tkj:/etc/bind#/etc/init.d/bind9 restart
12. root@tkj:/etc/bind#nano /etc/resolv.conf

13. root@tkj:/etc/bind#nslookup tkj.com

(bila muncul pesan error maka dalam fi le db.tkj atau named.conf


terdapat kesalahan )
14. root@tkj:/etc/bind#nslookup 192.168.1.1

15. root@tkj:/etc/bind#ping tkj.com


 MAIL SERVER
1. root@tkj:/etc/bind#nano /etc/bind/ db.lati han
 @ IN SOA lati han.com . root. lati han.com . {
……
;
@ IN NS lati han.com .
@ IN A 192.168.1.1
ns1 IN A 192.168.1.1
www IN CNAME ns1
blog IN CNAME ns1
bcode IN CNAME ns1
mail IN CNAME ns1
2. root@tkj:/etc/bind#service bind9 restart
3. root@tkj:/etc/bind#apt-get install postf ix courier-pop courier-imap
squirrelmail (dvd 1)
4. (ok, internet site, lati han.com >ok) > (dvd 2) > yes > (dvd 3)
5. root@tkj:/etc/bind#dpkg -l postf ix courier-pop courier-imap squirrelmail
(jika sudah ada huruf ii maka sudah terinstal)
6. root@tkj:/etc/bind#cd /etc/postf ix lalu ls
7. root@tkj:/etc/bind#nano main.cf carilah:
 #mailbox command = procmail -a “$EXTENCION”

home_mailbox = Maildir/
8. root@tkj:/etc/bind#maildirmake /etc/skel/Maildir
9. root@tkj:/etc/bind#service postf ix restart
10. root@tkj:/etc/bind#adduser tkj dan #adduser kasipah
11. root@tkj:/etc/bind#dpkg-reconfi gure postf ix
 internet site
 lati han.com
 Postmaster ti dak diisi
 Default
 No
 127.0.0.0/8 [::ff ff :127.0.0.0]/104 [::1]/128 0.0.0.0/0
 No
 Default (0)
 Default (+)
 Ipv4
12. root@tkj:/etc/bind#Service postf ix restart
13. root@tkj:/etc/bind#service courier-pop restart
14. root@tkj:/etc/bind#service courier-imap restart
15. root@tkj:/etc/bind#service bind9 restart
16. root@tkj:/etc/bind#telnet localhost 25
 mail from: tkj@lati han.com
 rcpt to: kasipah@lati han.com
 data
 (masukan pesan dan diakhiri dengan .)
 Quit
17. root@tkj:/etc/bind#telnet localhost 110
 user kasipah
 pass (masukan password yang dibuat saat adduser)
 stat
 retr 1
18. root@tkj:/etc/bind#cd /etc/apache2/sites- available/
19. root@tkj:/etc/apache2/sites- available#cp 000-default.conf webmail.conf
20. root@tkj:/etc/apache2/sites- available#nano webmail.com
 …
 ServerName mail.lati han.com

 ServerAdmin webmaster@lati han.com
 DocumentRoot /usr/share/squirrelmail
21. root@tkj:/etc/apache2/sites- available#a2ensite webmail.conf
22. root@tkj:/etc/apache2/sites- available#service apache2 restart
23. root@tkj:/etc/apache2/sites- available#w3m mail.lati han.com

 FTP (pakai FILEZILLA)


1. #apt-get install proft pd
 standalone
2. #nano /etc/proft pd/proft pd.conf
 ServerName lati han.com
 .....
 DefaultRoot ~
3. #/etc/init.d/proft pd restart
4. #adduser user
5. #telnet localhost 21
6. #ft p
 open
 lati han.com
 user
 password
7. buka ft p://lati han.com
8. test ft p menggunakan FileZilla
 SSH (pakai PUTTY)
1. #apt-get install openssh-server
2. #dpkg –l openssh-server
(jika sudah ada huruf ii maka sudah terinstal)
3. #ssh lati han@localhost
4. #cd /etc/ssh
5. #nano sshd_confi g
 …
 port 22 (SSH)
 port 23 (Telnet)
 …
6. #service ssh restart
7. #ssh lati han@localhost –p 23

You might also like