ciber sulivan

Senin, 21 Oktober 2013

membuat web scara offline dengan debian 6

asalamualaikum wr.wb,,,selamat malam sahabatku semua,,semoga dalam kondisi yang baik,,okeh kali ini sya akan menjelaskan sedikit tentang konfigurasi debian,,,mmmmm postingan ini berawal dari tugas dan saya ambil dari sumber yang terpercaya,,,ya teman saya sendiri,,,okeh langsung terjun
 
 
 
 
KONFIGURASI DEBIAN 6

 

Tahap –tahap Konfigurasi Debian

       Memasang  Ip address………………………………………………………………………………………(2)

       DNS ………………………………………………………………………………………………………………(2)

       Web Server …………………………………………………………………………………………………….(4)

       Ftp ………………………………………………………………………………………………………………(5)

       SAMBA ……..…………………………………………………………………………………………………(6)

       webMail Server (squirrelmail)……………………………………………………………………………(7)

       Mail Server ……………………………………………………………………………………………………(9)

       PROXY ………………………………………………………………………………………………………….(9)

       ROUTING …………………………………………………………………………………………………… (13)

 

 

 

 

 

 

 

 

 

 

 

 

 

1.Memasang Ip address

Perintah –perintah Routing

       nano /etc/network/interfaces

       auto eth0

iface eth0 inet static

                address 192.168.1.1

                netmask 255.255.255.0

                network 192.168.1.0

                broadcast 192.168.1.255

 

(untuk menyimpan “Ctrl+x” lalu “y” lalu “enter”)

2.DNS (domain name server}

Perintah –perintah DNS

       apt-get install bind9

       nano /etc/bind/named.conf.local

 

zone “rabany.zae” {

type master;

file “db.rabany”;

};

 

Zone “192.in-addr.arpa” {

                type master;

                file “db.192”;

};

       cd /etc/bind

       cp db.local /var/cache/bind/db.rabany

       cp db.127 /var/cache/bind/db.192

       cd /var/cache/bind

       nano  db.rabany


Keterangan :

“Localhost” (rabany.zae)

“127.0.0.1” (ganti menjadi IP eth0 “192.168.1.1”

“@” (yang paling bawah dig anti menjadi www)

“AAAA” (menjadi “A” saja)

“: : 1” (ganti dengan IP eth0)

“ftp                                IN            A             192.168.1.1” (tambahkan pada garis paling bawah karna nati akan -  

                                                                                         -mengkonfigurasi ftp).

 

 

       nano db.192


 

“localhost” (menjadi “rabany.zae”)

“1.0.0” (ganti menjadi “1.1.168”)

       nano /etc/resolv.conf

tuliskan

“search rabany.zae”

“nameserver 192.168.1.1”

       service bind9 restart

       nslookup 192.168.1.1

       nslookup www.rabany.zae

       nslookup rabany.zae

3.Web Server

       apt-get install apache2 php5 mysql-server phpmyadmin

       cd /etc/apache2/siets-available/

       cp default web

       nano web

(*:80) “*” (ganti dengan IP eth0)


ServerName www.rabany.zae

ServerAlias rabany.zae

                “Documen Root /var/www/web/

       a2dissite default

       a2ensite web

       cd /var/www

       mkdir web

       cd web/

       nano index.html (tulis didalamnya)

       service apache2 restart

cek di mozila www.rabany.zae

4.Ftp

       apt-get install proftpd

       adduser rabany

       cd /home/rabany

       mkdir sharing

       userdel ftp

       useradd –d /share/ftp

       passwd ftp

       chmod 777 /home/rabany/sharing

       nano /etc/proftpd/proftpd.conf

“isi di garis paling bawah”

<Anonymous /home/rabany/sharing/>

User ftp

</Anonymous>

       service proftpd restart

cek di mozila dengan tulis ftp.rabany.zae

user : rabany             passwd : 12        adress : 192.168.1.1     port :21

5.SAMBA

       apt-get install samba

       adduser

       cd rabany/

       mkdir percobaan

       chmod 777 percobaan/ -R

       smbpasswd –a panjul

       nano /etc/samba/smb.conf

cari share definition (Ctrl+w)

[share]

Cari authentication (Ctrl+w)

Pagar security =uder (dihapus)

Path = /home/rabany/percobaan/

Browseable = yes

Writeable = yes

Valid users = rabany

Admin users = root

       service samba restart

       cek di window explore \\192.168.1.1

6. Mail Server (squirrelmail)

       Insert cd 2

       apt-cdroom add

       apt-get update

       insert cd 1

       apt-get install postfix squirrelmail courier-imap courier-pop courier-base

       local only

       samakan dengan DNS

       enter

       insert cd 2

       pilih no

       enter

       nano /etc/postfix/main.cf

       hostname : smkalmufti.sch.id

                                            #my destinesion

                                            #Mailbox_command

                                            home_mailbox = Maildir/

       cd /etc/skel

       maildirmake Maildir/

       nano /etc/squirrelmail.apache.conf

       sebelum Description: capture-20130609-001800.png

       Sesudah Description: capture-20130609-002049.png

·         squirrelmail-configure

d,courier,s,q

·         adduser

·         password

·         nano /etc/apache2/apache2.conf

sebelum Description: capture-20130609-002529.png       

Sesudah Description: capture-20130609-002631.png

·         service apache2 restart

·         cek mail

·         service postfix restart

 

7.Mail Server

·         dpkg-reconfigure postfix

·         ok

·         Internet Site

·         smkalmufti.sch.id

·         Ok è ok è No

·         Tambah 0.0.0.0/0

·         No è ok è ok èipv4

·         service courier-imap restart

·         service postfix restart

·         telnet smkalmufti.sch.id 25

·         mail from: rabany(contoh)

·         rcpt to: yadh(contoh)

·         data

·         ketikan pesan lalu enter dan diakhiri dengan (.)

·         quit

·         telnet smkalmufti.sch.id 110

·         user rabany

·         pass 1

·         stat

·         retr 1

·         retr 2

 

 

 

 

 

 

 

 

 

 

 

8.PROXY TRANPARENT

·         Isert cd 1

·         apt-get install squid

·         cd /etc/squid

·         cp squid.conf squid.conf.asli

·         nano /etc/squid/squid.conf

·         cari tulisan acl CONNECT

·         dengan cara ctrL+w

                lalu ketikan di bawah acl CONNECT

sebelum Description: capture-20130609-010120.png

sesudah Description: capture-20130609-010437.png

 

 

 

 

 

 

·         cari lagi http_port 3128 transparent

·         hilangkan pagar “#”

·         tuliskan di bawah nya

sebelum  Description: capture-20130609-011316.png

sesudah Description: capture-20130609-011058.png

·         cari lagi cache_mem 8 mb

sebelum  Description: capture-20130609-011706.png

sesudah Description: capture-20130609-011948.png

 

·         cari cache_dir ufs /var/spool/squid 500 16 256

sebelumDescription: capture-20130609-012331.png

sesudah

Description: capture-20130609-012434.png

·         cari cache_mgr  tambahkan “rabany_zae@yadhthea.ko.clok.bless.aww (contoh)

·         cari visible_hostname  tambahkan visible_hostnname www.smkalmufti.sch.id(contoh)

·         ctrl x y enter

·         cd /etc/squid

·         nano blok.txt

edit file blok.txt

·         nano /etc/squid/blok.txt

contoh yang akan di blok www.26.com

·         service squid stop

·         squid –z

·         service squid start

·         nano /etc/rc.local

iptables –A PREROUTING –t nat –p tcp –dport 80 –j REDIRECT –to-port 3128

·         service squid restart

 

 

9.ROUTING

·         nano /etc/network/interfaces

·         nano /etc/resolv.conf

·         nano /etc/sysctl.conf

·         hapus #net ipv4 –forward=1

·         nano /etc/rc.local

·         iptables –t  nat –A POSTROUTING –o eth0 –j MASQUERADE

 

·         KETIKAN DI LUAR

·         Iptables –save > /etc/iptables

·         Eth0 “up command iptables-restore < /etc/iptables”

·         >> /etc/network/interfaces

·         reboot
 
 
demikianlah dari saya,,semoga bermanfaat,,amin

Tidak ada komentar:

Posting Komentar

berkomentarlahn dengan bahasa yang baik