About

Pages

Rabu, 15 Mei 2013

Seting Debian Linux




Anggi Pujiono
Tkj 2012/2013
Smk Muhammadiyah Sumpiuh
Sumpiuh, Banyumas, Jawa Tengah
Vertical Scroll:  LANGKAH-LANGLAH KONFIGURASI DEBIAN SERVER
= nano /etc/network/interfaces
            auto lo eth0 eth0:1 eth0:2 etho:3
            iface lo inet loopback
            allow hotplug eth0
            iface eth0 inet static
                            address 192.168.1.5
                            network 192.168.1.0
                            netmask 255.255.255.0
                            broadcast 192.168.1.255
            iface eth0:1 inet static
                            address 192.168.1.6
                            network 192.168.1.0
                            netmask 255.255.255.0
                            broadcast 192.168.1.255
            iface eth0:2 inet static   
                            address 192.168.1.7
                            network 192.168.1.0
                            netmask 255.255.255.0
                            broadcast 192.168.1.255
            iface eth0:3 inet static
                            address 192.168.1.8
                            network 192.168.1.0
                            netmask 255.255.255.0
                            broadcast 192.168.1.255
= ctrl+o / ctrl+x
= /etc/init.d/networking restart
= apt-get install bind9 apache2
= /etc/init.d/bind9 stop
= cp /etc/bind/named.conf /etc/bind/named.conf.bak
= cp /etc/bind/db.local /etc/bind/forward



= nano /etc/bind/named.conf
            zone “smkmuh.sch.id” {
                            type master;
                            file “/etc/bind/forward”;
   };
= nano /etc/bind/forward
            smkmuh.sch.id.                in            soa         ns.smkmmuh.sch.id.      oji.smkmuh.sch.id (
                                                                                                                                            1281045109
                                                                                                                                            10800
                                                                                                                                            3600
                                                                                                                                            604800
                                                                                                                                            34800
            smkmuh.sch.id.                                IN           NS                          ns.smkmuh.sch.id.
            smkmuh.sch.id.                                IN           A                             192.168.1.6
            ns.smkmuh.sch.id.          IN           A                             192.168.1.5
            mx.smkmuh.sch.id.        IN           A                             192.168.1.7
            ftp.smkmuh.sch.id.         IN           A                             192.168.1.8
            www.smkmuh.sch.id.    IN           CNAME                                smkmuh.sch.id.
            mail.smkmuh.sch.id.      IN           CNAME                                mx.smkmuh.sch.id.
            smkmuh.sch.id.                                IN           MX                         20 mx.smkmuh.sch.id.
= ctrl+o / ctrl+x
= nano /etc/hosts
   -tambahkan di baris yang ketiga-
            192.168.1.5         oji.smkmuh.sch.id oji
            192.168.1.6         www.smkmuh.sch.id
= nano /etc/resolv.conf
            Search smkmuh.sch.id
            Nameserver 192.168.1.5
= nano /home/oji/index.html
            SELAMAT DATANG DI WEBSIT WWW.ANGGIPUJIONO.COM







= nano /etc/apache2/apache2.conf
            <VirtualHost 192.168.1.6>
                            DocumentRoot “/home/oji”
                            ServerName www.smkmuh.sch.id
            </VirtualHost>

            <VirtualHost 192.168.1.7>
                            DocumentRoot “/usr/share/squirrelmail”
                            ServerName mail.smkmuh.sch.id
            </VirtualHost>
= /etc/init.d/bind9 restart
= /etc/init.d/apache2 restart
= dig mail.smkmuh.sch.id
= apt-get install lynx
= apt-get remove exim4-base

= apt-get install postfix courier-imap courier-pop courier-authdaemon squirrelmail
= nano /etc/postfix/main.cf
            myhostname = mail.smkmuh.sch.id
            # mailbox_comand = procmail –a “SEXTENSION”
            -tambahkan pada baris paling bawah-
                            Home_mailbox = Maildir/
= maildirmake /etc/skel/Maildir
= adduser oji
= adduser iiy
= /etc/init.d/courier-imap restart
= /etc/init.d/courier-pop restart
= /etc/init.d/courier-authdaemon restart
= /etc/init.d/postfix restart
= /etc/init.d/apache2 restart
= cp /etc/squirrelmail/config.php /et/squirrelmail/config.bak
= nano /etc/squirrelmail/config.php
    -untuk mengetahui baris keberapa tekan ctrl+c-
            $domain = ‘smkmuh.sch.id’ ----------------------- baris 118
            $smtpserverAddress = ‘mail.smkmuh.sch.id ---baris 146
            $simapServerAddress = ‘mail.smkmuh.sch.id’ -------baris 202
            $imap_server_type = ‘courier’ ---------------------------baris 231
= lynx mail.smkmuh.sch.id

SETING ROUTER
= nano etc/network/interfaces
            auto lo
            iface lo inet loopback
            allow hotplug eth0
            auto eth0
            iface eth0 inet static
                            address 172.16.1.28
                            network 172.16.1.0
                            netmask 255.255.255.0
                            broadcast 172.16.1.255
                            gateway 172.16.1.100
            dns-nameserver 192.168.1.5
            dns-search smkmuh.sch.id
            auto eth1
            iface eth1 inet static
                            address 192.168.1.29
                            network 192.168.1.0
                            netmask 255.255.255.0
                            broadcast 192.168..255
                            gateway 192.168.1.100
= /etc/init.d/networking restart
= nano /etc/rc.local
   -TAMBAHKAN PADA BARIS SEBELUM EXIT-0 PADA BARIS PALING BAWAH-
            Iptables –t nat –A POSTROUTING –o eth1 –j MASQUERADE
= shutdown –r now
= nano /etc/resolv.conf
            nameserver 192.168.1.5
            nameserver 202…….. ip internet/modem
=nano /etc/sysctl.conf
   -hilangkan tanda pagar pada
            #
            #
            #
            #net.ipv4.ip_forward = 1
= /etc/init.d/networking restart



= nano /etc/network/option
            Ip_forward = yes
            Spoofprotect = yes
            Syncokies = no
= /etc/init.d/networking restart

= shutdown –r now
= iptables –t nat –L
= iptables –t nat –L –xvn
= iptables –t nat  -n –L
= cat /proc/sys/net/ipv4/ip_forward
= echo 1 > /proc/sys/net/ipv4/ip_forward
= apt-get install dhcp3-server

= nano /etc/dhcp3/dhcpd.conf  < -----atau------> nano /etc/dhcp/dhcpd.conf
            subnet 172.16.1.0            netmask 255.255.255.0 {
                            range 172.16.1.90 172.16.1.100;
                            option domain-name-servers 192.168q.1.5;
                            option domain-name smkmuh.sch.id;
                            option routers 172.16.1.28;
                            option broadcast-address 172.16.1.255;
                            defaulf-lease-time 6000;
                            max-lease-time 7000;
   }
= /etc/init.d/dhcp3-server restart <------atau-----> /etc/init.d/isc-dhcp3-server restart

Debian Squeze
Debian leny
           












SETING PROXY

= apt-get install sqid
= nano /etc/squid/squid.conf
= tekan tombol ctrl+w untuk mencari tulisan http_port 3128 tambahkan pada tulisan itu menjadi http_port 3128 transparent lalu isikan di bawahnya:
        
         cache_mem 16 mb
         cache_mgr admin@smkmuh.sch.id
         visible_hostname proxy.smkmuh.sch.id
= cari tulisan “aclconnect”
         tambahkan tulisan ini di bawahnya:

         acl url dstdomain “/etc/squid/url”
         acl key url_regex –i “/etc/squid/key”
         http_access deny url
         http_access deny key
         acl lan src 192.168.1.0/24
         http_access allow lan
         http_access allow all
= cari tulisan http_access deny all pada file squid terdapat 2 tulisan tersebut,lalu tambahkan tulisan iti tanda (#) pagar.

= nano /etc/squid/url
         .facebook.com
         .twitter.com

= nano /etc/squid/key
         porn
         sex

= /etc/init.d/squid restart
= iptables –t nat –a PREROUTING –p tcp –dport 80 –I eth0 –j REDIRECT –to-port 3128


SETING MANUAL PROXY PADA CLIENT

= Pada Mozilla Firefox Atau Internet Explorer Atau Opera Mini:

         * Klik Tool/Alat,
         * Pilih Options,
         * Pilih Advance,
         * Pilih Network,
         * Pilih Seting,
         * Pilih Manual Configuration.

= Isi Pada Http Proxy
        
         Http Proxy 192.168.1.29 Port 3128    ---------------------àIp Address Eth1





















SETING FTP

= cd /home/oji ------------------------oji adalah nama domain pada computer
= apt-get install proftpd
= mkdir share
= userdel ftp
= useradd –d /share/ ftp
= passwd ftp
= cd share/
= mkdir ini adalah direktori dari ftp server
= nano /etc/proftpd/proftpd.conf
         <Anonymous /home/oji/share/>
         User ftp
         </Anonymous>
= /etc/init.d/proftpd restart
= nano /etc/postfix/main.cf
   Tambahkan jika belym ada atau cukup ubah saja pada baris berikut
        
         realyhost = smtp.smkmuh.sch.id
         mailbox_comand =
         home_mailbox = Maildir/
= /etc/init.d/postfix restart
= ftp localhost
= masukan nama localhost “ ftp “ lalu enter
   Masukan password “ ftp “ lalu enter
= ls
= bye







SETING NTP
= apt-get install ntp ntpdate
= nano /etc/ntp.conf
         server 127.127.1.0
         fudge 127.127.1.0 stratum 10
         restrict 172.16.1.0 mask 255.255.255.0 nomodify notrap
         server 192.168.1.10
= /etc/init.d/ntp restart
= ntp –p
= ntpdate 127.0.0.1

SETING VPN

= apt-get install pptpd
=nano /etc/pptpd.conf
         localip 192.168.1.10
         remotelip 172.16.1.50-56 172.16.1.254
= nano /etc/ppp/chap-secrets
         vpn1            pptpd       vpn123            *
         vpn2            pptpd       vpn123            *
= /etc/init.d/ppp/pptpd restart
= nano /etc/ppp/pptpd-options
         noipx
         mru 1490
         mtu 1490
= /etc/init.d/pptpd restart


Anggi Pujiono
Tkj 2012/2013
Smk Muhammadiyah Sumpiuh
Sumpiuh, Banyumas, Jawa Tengah

0 komentar:

Posting Komentar

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More