SlideShare a Scribd company logo
26 Januari 2012                                        EXIT

INTERFAC
                  ROUTING   PROXY   DHCP   DNS       MAIL
    E




                  KONFIGURASI DEBIAN 5      Debian Lenny
INTERFACE
      Konfigurasi Debian 5 (Lenny)
                                                        Konfigurasi NIC

                                                                                     # nano /etc/network/interfaces

      # The loopback network interface
      auto lo
      iface lo inet loopback
      # The primary network interface
      auto eth0
      iface eth0 inet static
           address 192.168.4.118
           netmask 255.255.255.0
           network 192.168.4.0
           broadcast 192.168.4.255
           gateway 192.168.4.1
           # dns-* options are implemented by the resolvconf package, if installed
           dns-nameservers 192.168.18.81
           dns-search syaif.edu
      auto eth1
      iface eth1 inet static
           address 192.168.18.81
           netmask 255.255.255.0
           network 192.168.18.0
           broadcast 192.168.18.255


     N    Tambahkan settingan seperti contoh di atas pada konfigurasi NIC anda.



KKTKJ Smk Kelas XII                                                                                       Ahmad Syaifudin
ROUTING
      Konfigurasi Debian 5 (Lenny)
                                                   Konfigurasi Router

                                                                                             # nano /etc/rc.local
      ========                                                                               # nano /etc/sysctl.conf
      • rc.local                                                                             # nano /etc/resolv.conf
      ========
      iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
      iptables -t nat -A PREROUTING -s 192.168.18.0/24 -p tcp --dport 80 -j REDIRECT --to-ports 3128
      echo "1" > /proc/sys/net/ipv4/ip_forward
      ==========
      • sysctl.conf
      ==========
      net.ipv4.ip_forward = 1 (hilangkan tanda pagarnya)
      ==========
      • resolv.conf
      ==========
      search syaif.edu
      nameserver 192.168.18.81
      nameserver 192.168.4.1




     N    Tambahkan settingan seperti contoh di atas pada konfigurasi PC-Router anda.



KKTKJ Smk Kelas XII                                                                                              Ahmad Syaifudin
PROXY
      Konfigurasi Debian 5 (Lenny)
                                                          Konfigurasi Proxy

                                                                                   # apt-get install squid
      # Squid normally listens to port 3128                                        # nano /etc/squid/squid.conf
                                                                                      (Ctrl+w)  http_port 3128
      http_port 3128 transparent
                                                                                      (Ctrl+w)  acl connect
                                                                                      (Ctrl+w)  and finally deny
      acl CONNECT method CONNECT
      acl situs dstdomain "/etc/squid/situs"                                       # nano /etc/squid/situs
      acl lan src 192.168.18.0/24
      no_cache deny situs
      http_acces deny situs
      http_access allow lan
      cache_mgr saif@syaif.edu
      visible_hostname www.syaif.edu

      # And finally deny all other access to this proxy
      #http_access deny all

      =======
      File situs
      =======
      Masukkan alamat yang ingin di blokir di file situs




     N    “situs” dapar diganti apa saja, “dstdomain” dapat diganti “url_regex”.



KKTKJ Smk Kelas XII                                                                                     Ahmad Syaifudin
DHCP
      Konfigurasi Debian 5 (Lenny)
                                                         Konfigurasi DHCP
                                                                                  # apt-get install dhcp3-server
                                                                                  # nano /etc/dhcp/dhcpd.conf
      # A slightly different configuration for an internal subnet.
      subnet 192.168.18.0 netmask 255.255.255.0 {
          range 192.168.18.100 192.168.18.120;
          option domain-name-servers 192.168.18.81;
          option domain-name “syaif.edu";
          option routers 192.168.18.81;
          option broadcast-address 192.168.18.255;
          default-lease-time 600;
          max-lease-time 7200;
      }




     N       Range dapat diisi sesuai keinginan kita, tergantung jumlah client.



KKTKJ Smk Kelas XII                                                                                   Ahmad Syaifudin
DNS
      Konfigurasi Debian 5 (Lenny)
                                                      Konfigurasi DNS                                          Halaman 1

                                                                                              # apt-get install bind9
      ===========                                                                             # nano /etc/bind/named.conf
      • named.conf
      ===========
      zone "syaif.edu" {
          type master;
          file "db.syaif";
      };

      zone "192.in-addr.arpa" {
          type master;
          file "db.192";
      };




     N    Setting DNS anda seperti settingan di atas, untuk mengedit tampilan di (#nano /var/www/index.html)



KKTKJ Smk Kelas XII                                                                                              Ahmad Syaifudin
DNS
      Konfigurasi Debian 5 (Lenny)
                                                       Konfigurasi DNS                                      Halaman 2

                                                               * copy db.127 di /etc/bind ke /var/cache/bind/db.192
      ==========                                               * copy db.local di /etc/bind ke /var/cache/bind/db.syaif
      • db.smkitsi                                             # nano /var/cache/bind/db.syaif
      ==========                                               # nano /var/cache/bind/db.192
      ;                                                        * Pengujian (#nslookup syaif.edu)
      ; BIND data file for local loopback interface                =======
      ;                                                            • db.192
      $TTL 604800                                                  =======
      @     IN    SOA syaif.edu. root.syaif.edu. (                 ;
                         2           ; Serial                      ; BIND reverse data file for local loopback interface
                      604800         ; Refresh                     ;
                       86400         ; Retry                       $TTL 604800
                     2419200         ; Expire                      @     IN    SOA syaif.edu. root.syaif.edu. (
                      604800 )       ; Negative Cache TTL                            1             ; Serial
      ;                                                                           604800           ; Refresh
      @              IN     NS syaif.edu.                                          86400           ; Retry
      @              IN A          192.168.18.81                                 2419200           ; Expire
      www            IN A          192.168.18.81                                  604800 )         ; Negative Cache TTL
      mail           IN A          192.168.18.81                   ;
                                                                   @     IN    NS syaif.edu.
                                                                   81.18.168 IN        PTR www.syaif.edu.
                                                                   81.18.168 IN        PTR mail.syaif.edu.



     N    Setting DNS anda seperti settingan di atas, dan perhatikan pemakaian tanda titik setelah URL.



KKTKJ Smk Kelas XII                                                                                             Ahmad Syaifudin
MAIL
      Konfigurasi Debian 5 (Lenny)
                                                   Konfigurasi Mail Server                                Halaman 1

                                                                                  # apt-get install postfix
      =======                                                                     # apt-get install dovecot-imapd
      • Postfix                                                                   # apt-get install courier-imap
      =======                                                                     # apt-get install courier-pop
      Ok  Internet Site  syaif.edu                                              # apt-get install squirrelmail
      ===================                                                         # apt-get install apache2
      • Courier-imap courier-pop                                                  # nano /etc/apache2/apache2.conf
      ====================                                                        # nano /etc/squirrelmail/apache.conf
      No                                                                          # maildirmake /etc/skel/Maildir
      ============                                              ===========
      • Apache2.conf                                            • Apache.conf
      ============                                              ===========
      # Include the virtual host configurations:                # users will prefer a simple URL like
      Include /etc/apache2/sites-enabled                        http://webmail.example.com
      Include /etc/squirrelmail/apache.conf                     #<VirtualHost 1.2.3.4>
                                                                # DocumentRoot /usr/share/squirrelmail
                                                                # ServerName webmail.example.com
                                                                #</VirtualHost>
                                                                <VirtualHost *:80>
                                                                DocumentRoot /usr/share/squirrelmail
                                                                ServerName mail.syaif.edu
                                                                </VirtualHost>



     N    Setting Mail Server anda seperti settingan di atas.



KKTKJ Smk Kelas XII                                                                                          Ahmad Syaifudin
MAIL
      Konfigurasi Debian 5 (Lenny)
                                                 Konfigurasi Mail Server                                         Halaman 2

                                                                                                # dpkg-reconfigure postfix
      ======================                                                                    # nano /etc/postfix/main.cf
      dpkg-reconfigure postfix                                                                  # adduser admin
      ======================
      Ok  Internet Site  smkitsi.edu  biarkan kosong  tambahkan (,192.168.18.81/24)  No  tambahkan
      (,192.168.18.81/24)  No  0  +  ipv4

      ========
      • main.cf
      ========
      inet_interfaces = all
      inet_protocols = ipv4
      home_mailbox = Maildir/




     N    Setting Mail Server anda seperti settingan di atas, admin dapat diganti nama anda alias terserah.



KKTKJ Smk Kelas XII                                                                                                  Ahmad Syaifudin

More Related Content

PDF
Configure, Pack and Distribute: An RPM Creation Workshop
Novell
 
PDF
Software Packaging with RPM
Schalk Cronjé
 
PPTX
BIND DNS Configuration Red Hat 5
Cheri Amour Calicdan
 
PDF
DNS Server Configuration
chacheng oo
 
PDF
Linux network configuration
Mario Tabuada Mussio
 
PDF
Debian Packaging
Javier Carranza
 
PPT
Building a Linux IPv6 DNS Server Project review PPT v3.0 First review
Hari
 
PPT
Linux Networking Commands
tmavroidis
 
Configure, Pack and Distribute: An RPM Creation Workshop
Novell
 
Software Packaging with RPM
Schalk Cronjé
 
BIND DNS Configuration Red Hat 5
Cheri Amour Calicdan
 
DNS Server Configuration
chacheng oo
 
Linux network configuration
Mario Tabuada Mussio
 
Debian Packaging
Javier Carranza
 
Building a Linux IPv6 DNS Server Project review PPT v3.0 First review
Hari
 
Linux Networking Commands
tmavroidis
 

What's hot (20)

PPT
Dns
muh kemal
 
PDF
Install oracle11gr2 rhel5
Edouard Anderson
 
DOCX
Installing lemp with ssl and varnish on Debian 9
عطاءالمنعم اثیل شیخ
 
PDF
Bundling Packages and Deploying Applications with RPM
Alexander Shopov
 
PPT
101 3.3 perform basic file management
Acácio Oliveira
 
PPT
101 3.3 perform basic file management
Acácio Oliveira
 
PPT
3.3 perform basic file management
Acácio Oliveira
 
PDF
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
PDF
Implementing DNS in Samba PDC
Jalpa Soni
 
ODT
RHCE FINAL Questions and Answers
Radien software
 
PPT
NFS and Oracle
Kyle Hailey
 
PDF
Keeping DNS server up-and-running with “runit
Men and Mice
 
PPT
101 2.4 use debian package management
Acácio Oliveira
 
PPTX
SquirrelMail for webmail
Aryman Gautam
 
ODP
RPM: Speed up your deploy
fcrippa
 
PPTX
Collaborate vdb performance
Kyle Hailey
 
PDF
Tópicos - LVS Instalacao Slack11
Luiz Arthur
 
DOC
Unix Basics For Testers
nitin lakhanpal
 
PPT
101 2.1 design hard disk layout
Acácio Oliveira
 
PDF
Rac on NFS
mengjiagou
 
Install oracle11gr2 rhel5
Edouard Anderson
 
Installing lemp with ssl and varnish on Debian 9
عطاءالمنعم اثیل شیخ
 
Bundling Packages and Deploying Applications with RPM
Alexander Shopov
 
101 3.3 perform basic file management
Acácio Oliveira
 
101 3.3 perform basic file management
Acácio Oliveira
 
3.3 perform basic file management
Acácio Oliveira
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
Implementing DNS in Samba PDC
Jalpa Soni
 
RHCE FINAL Questions and Answers
Radien software
 
NFS and Oracle
Kyle Hailey
 
Keeping DNS server up-and-running with “runit
Men and Mice
 
101 2.4 use debian package management
Acácio Oliveira
 
SquirrelMail for webmail
Aryman Gautam
 
RPM: Speed up your deploy
fcrippa
 
Collaborate vdb performance
Kyle Hailey
 
Tópicos - LVS Instalacao Slack11
Luiz Arthur
 
Unix Basics For Testers
nitin lakhanpal
 
101 2.1 design hard disk layout
Acácio Oliveira
 
Rac on NFS
mengjiagou
 
Ad

Viewers also liked (20)

PPTX
Materi 1 TKJ - Membangun PC Router
Walid Umar
 
PPTX
Cara mengkonfigurasi router
risky_kartika
 
PPT
Jaringan komputerwan
Hermansu Herman
 
PDF
konfig routing paling cepat
Belajar Konfig
 
PPT
Riset akuntansi
doniefendi
 
PPTX
Hardware pada osi layer
tukiman47
 
PDF
UNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOP
Amit Midha
 
ODP
1 introduction of OOAD
Manish Chaurasia
 
PPTX
Hardware komputer dalam Sistem Informasi Manajemen
Nailuredha Hermanto
 
PPT
Ooad overview
Dr. C.V. Suresh Babu
 
PPTX
Mikrotik ppt
044249
 
PDF
Important tips on Router and SMTP mail routing
jayeshpar2006
 
PPTX
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
amiteshg
 
PPTX
Introduction to router
Farhan Galib
 
PDF
WAN SDN meet Segment Routing
APNIC
 
PPSX
RIP - Routing Information Protocol
selvakumar_b1985
 
PDF
MikroTik Firewall : Securing your Router with Port Knocking
Akbar Azwir, MM, PMP, PMI-SP, PSM I, CISSP
 
PPTX
Routing Information Protocol
Kashif Latif
 
PPT
Presentation on router
Iqra university islamabad
 
PPTX
Routers and Routing Configuration
yasir1122
 
Materi 1 TKJ - Membangun PC Router
Walid Umar
 
Cara mengkonfigurasi router
risky_kartika
 
Jaringan komputerwan
Hermansu Herman
 
konfig routing paling cepat
Belajar Konfig
 
Riset akuntansi
doniefendi
 
Hardware pada osi layer
tukiman47
 
UNDERSTANDING OOAD AND DESIGN PATTERNS USING UML AND JAVA-TRAINING WORKSHOP
Amit Midha
 
1 introduction of OOAD
Manish Chaurasia
 
Hardware komputer dalam Sistem Informasi Manajemen
Nailuredha Hermanto
 
Ooad overview
Dr. C.V. Suresh Babu
 
Mikrotik ppt
044249
 
Important tips on Router and SMTP mail routing
jayeshpar2006
 
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
amiteshg
 
Introduction to router
Farhan Galib
 
WAN SDN meet Segment Routing
APNIC
 
RIP - Routing Information Protocol
selvakumar_b1985
 
MikroTik Firewall : Securing your Router with Port Knocking
Akbar Azwir, MM, PMP, PMI-SP, PSM I, CISSP
 
Routing Information Protocol
Kashif Latif
 
Presentation on router
Iqra university islamabad
 
Routers and Routing Configuration
yasir1122
 
Ad

Similar to Ahmad-debian (20)

PDF
Modul server debian 5
UNISKA, SMK Telkom Banjarbaru
 
PDF
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Edureka!
 
PPTX
15 Setup BIND 9
Hameda Hurmat
 
PPTX
DNS Configuration
Vinod Gour
 
PDF
Web Server Free Bsd
Kwanchai Charoennet
 
PDF
Hands on Virtualization with Ganeti
OSCON Byrum
 
PDF
2015.10.05 Updated > Network Device Development - Part 1: Switch
Cheng-Yi Yu
 
PDF
Configuration of BIND DNS Server On CentOS 8
Kaan Aslandağ
 
PDF
Tutorial CentOS 5 untuk Webhosting
Beni Krisbiantoro
 
PPTX
Big Data in Container; Hadoop Spark in Docker and Mesos
Heiko Loewe
 
DOC
Modul quick debserver
Slamet Achwandy
 
PPT
Oreilly Webcast 01 19 10
Sean Hull
 
PDF
Implementation of DNS Anycast - a case study
A. S. M. Shamim Reza
 
PPTX
Network configuration
engshemachi
 
PDF
Advanced DNS/DHCP for Novell eDirectory Environments
Novell
 
PPTX
High performance content hosting
Aleksey Korzun
 
PDF
Getting Started with Redis
Daniel Ku
 
DOCX
Cisco asa dhcp services
IT Tech
 
PPSX
Linux04 dns 2
Jainul Musani
 
PPT
Razor, the Provisioning Toolbox - PuppetConf 2014
Puppet
 
Modul server debian 5
UNISKA, SMK Telkom Banjarbaru
 
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Edureka!
 
15 Setup BIND 9
Hameda Hurmat
 
DNS Configuration
Vinod Gour
 
Web Server Free Bsd
Kwanchai Charoennet
 
Hands on Virtualization with Ganeti
OSCON Byrum
 
2015.10.05 Updated > Network Device Development - Part 1: Switch
Cheng-Yi Yu
 
Configuration of BIND DNS Server On CentOS 8
Kaan Aslandağ
 
Tutorial CentOS 5 untuk Webhosting
Beni Krisbiantoro
 
Big Data in Container; Hadoop Spark in Docker and Mesos
Heiko Loewe
 
Modul quick debserver
Slamet Achwandy
 
Oreilly Webcast 01 19 10
Sean Hull
 
Implementation of DNS Anycast - a case study
A. S. M. Shamim Reza
 
Network configuration
engshemachi
 
Advanced DNS/DHCP for Novell eDirectory Environments
Novell
 
High performance content hosting
Aleksey Korzun
 
Getting Started with Redis
Daniel Ku
 
Cisco asa dhcp services
IT Tech
 
Linux04 dns 2
Jainul Musani
 
Razor, the Provisioning Toolbox - PuppetConf 2014
Puppet
 

Recently uploaded (20)

PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Software Development Methodologies in 2025
KodekX
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
The Future of Artificial Intelligence (AI)
Mukul
 

Ahmad-debian

  • 1. 26 Januari 2012 EXIT INTERFAC ROUTING PROXY DHCP DNS MAIL E KONFIGURASI DEBIAN 5 Debian Lenny
  • 2. INTERFACE Konfigurasi Debian 5 (Lenny) Konfigurasi NIC # nano /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.4.118 netmask 255.255.255.0 network 192.168.4.0 broadcast 192.168.4.255 gateway 192.168.4.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.18.81 dns-search syaif.edu auto eth1 iface eth1 inet static address 192.168.18.81 netmask 255.255.255.0 network 192.168.18.0 broadcast 192.168.18.255 N Tambahkan settingan seperti contoh di atas pada konfigurasi NIC anda. KKTKJ Smk Kelas XII Ahmad Syaifudin
  • 3. ROUTING Konfigurasi Debian 5 (Lenny) Konfigurasi Router # nano /etc/rc.local ======== # nano /etc/sysctl.conf • rc.local # nano /etc/resolv.conf ======== iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -t nat -A PREROUTING -s 192.168.18.0/24 -p tcp --dport 80 -j REDIRECT --to-ports 3128 echo "1" > /proc/sys/net/ipv4/ip_forward ========== • sysctl.conf ========== net.ipv4.ip_forward = 1 (hilangkan tanda pagarnya) ========== • resolv.conf ========== search syaif.edu nameserver 192.168.18.81 nameserver 192.168.4.1 N Tambahkan settingan seperti contoh di atas pada konfigurasi PC-Router anda. KKTKJ Smk Kelas XII Ahmad Syaifudin
  • 4. PROXY Konfigurasi Debian 5 (Lenny) Konfigurasi Proxy # apt-get install squid # Squid normally listens to port 3128 # nano /etc/squid/squid.conf (Ctrl+w)  http_port 3128 http_port 3128 transparent (Ctrl+w)  acl connect (Ctrl+w)  and finally deny acl CONNECT method CONNECT acl situs dstdomain "/etc/squid/situs" # nano /etc/squid/situs acl lan src 192.168.18.0/24 no_cache deny situs http_acces deny situs http_access allow lan cache_mgr [email protected] visible_hostname www.syaif.edu # And finally deny all other access to this proxy #http_access deny all ======= File situs ======= Masukkan alamat yang ingin di blokir di file situs N “situs” dapar diganti apa saja, “dstdomain” dapat diganti “url_regex”. KKTKJ Smk Kelas XII Ahmad Syaifudin
  • 5. DHCP Konfigurasi Debian 5 (Lenny) Konfigurasi DHCP # apt-get install dhcp3-server # nano /etc/dhcp/dhcpd.conf # A slightly different configuration for an internal subnet. subnet 192.168.18.0 netmask 255.255.255.0 { range 192.168.18.100 192.168.18.120; option domain-name-servers 192.168.18.81; option domain-name “syaif.edu"; option routers 192.168.18.81; option broadcast-address 192.168.18.255; default-lease-time 600; max-lease-time 7200; } N Range dapat diisi sesuai keinginan kita, tergantung jumlah client. KKTKJ Smk Kelas XII Ahmad Syaifudin
  • 6. DNS Konfigurasi Debian 5 (Lenny) Konfigurasi DNS Halaman 1 # apt-get install bind9 =========== # nano /etc/bind/named.conf • named.conf =========== zone "syaif.edu" { type master; file "db.syaif"; }; zone "192.in-addr.arpa" { type master; file "db.192"; }; N Setting DNS anda seperti settingan di atas, untuk mengedit tampilan di (#nano /var/www/index.html) KKTKJ Smk Kelas XII Ahmad Syaifudin
  • 7. DNS Konfigurasi Debian 5 (Lenny) Konfigurasi DNS Halaman 2 * copy db.127 di /etc/bind ke /var/cache/bind/db.192 ========== * copy db.local di /etc/bind ke /var/cache/bind/db.syaif • db.smkitsi # nano /var/cache/bind/db.syaif ========== # nano /var/cache/bind/db.192 ; * Pengujian (#nslookup syaif.edu) ; BIND data file for local loopback interface ======= ; • db.192 $TTL 604800 ======= @ IN SOA syaif.edu. root.syaif.edu. ( ; 2 ; Serial ; BIND reverse data file for local loopback interface 604800 ; Refresh ; 86400 ; Retry $TTL 604800 2419200 ; Expire @ IN SOA syaif.edu. root.syaif.edu. ( 604800 ) ; Negative Cache TTL 1 ; Serial ; 604800 ; Refresh @ IN NS syaif.edu. 86400 ; Retry @ IN A 192.168.18.81 2419200 ; Expire www IN A 192.168.18.81 604800 ) ; Negative Cache TTL mail IN A 192.168.18.81 ; @ IN NS syaif.edu. 81.18.168 IN PTR www.syaif.edu. 81.18.168 IN PTR mail.syaif.edu. N Setting DNS anda seperti settingan di atas, dan perhatikan pemakaian tanda titik setelah URL. KKTKJ Smk Kelas XII Ahmad Syaifudin
  • 8. MAIL Konfigurasi Debian 5 (Lenny) Konfigurasi Mail Server Halaman 1 # apt-get install postfix ======= # apt-get install dovecot-imapd • Postfix # apt-get install courier-imap ======= # apt-get install courier-pop Ok  Internet Site  syaif.edu # apt-get install squirrelmail =================== # apt-get install apache2 • Courier-imap courier-pop # nano /etc/apache2/apache2.conf ==================== # nano /etc/squirrelmail/apache.conf No # maildirmake /etc/skel/Maildir ============ =========== • Apache2.conf • Apache.conf ============ =========== # Include the virtual host configurations: # users will prefer a simple URL like Include /etc/apache2/sites-enabled http://webmail.example.com Include /etc/squirrelmail/apache.conf #<VirtualHost 1.2.3.4> # DocumentRoot /usr/share/squirrelmail # ServerName webmail.example.com #</VirtualHost> <VirtualHost *:80> DocumentRoot /usr/share/squirrelmail ServerName mail.syaif.edu </VirtualHost> N Setting Mail Server anda seperti settingan di atas. KKTKJ Smk Kelas XII Ahmad Syaifudin
  • 9. MAIL Konfigurasi Debian 5 (Lenny) Konfigurasi Mail Server Halaman 2 # dpkg-reconfigure postfix ====================== # nano /etc/postfix/main.cf dpkg-reconfigure postfix # adduser admin ====================== Ok  Internet Site  smkitsi.edu  biarkan kosong  tambahkan (,192.168.18.81/24)  No  tambahkan (,192.168.18.81/24)  No  0  +  ipv4 ======== • main.cf ======== inet_interfaces = all inet_protocols = ipv4 home_mailbox = Maildir/ N Setting Mail Server anda seperti settingan di atas, admin dapat diganti nama anda alias terserah. KKTKJ Smk Kelas XII Ahmad Syaifudin