Cara instalasi Debian server 6.0

ROUTER

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
    auto eth1
    iface ethap1 inet static
        address 192.168.2.1
        netmask 255.255.255.0
        network 192.168.2.0
        broadcast 192.168.2.255
   
nano /etc/sysctl.conf
    hapus tanda # => ip forwat=1

nano /etc/rc.local
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

reboot
/etc/init.d/networking restart


DNS

apt-get install bind9
masukkan dvd1
cd /etc/bind
nano named.conf
    zone "2.168.192.in-addr.arpa"{
        type master;
        file "/etc/bind/ip.db";
    };
    zone "smkn1.sch.id"{
        type master;
        file "/etc/bind/www.db";
    };
touch ip.db www.db
cp db.local ip.db
nano ip.db
   
cp ip.db www.db
nano www.db

nano /etc/resolv.conf
    search smkn1.sch.id
    domain smkn1.sch.id
    nameserver 192.168.2.1

/etc/init.d/networking restart
/etc/init.d/bind9 restart
nslookup ns.smkn1.sch.id



WEB SERVER

apt-get install apache2
nano /var/www/index.html
    ganti kata" yang berwarna putih
/etc/init.d/apache2 restart



SUB DOMAIN

cd /etc/apache2/sites-available
cp default www
nano www
    ServerAdmin webmaster@smkn.sch.id
    ServerName www.smkn1.sch.id
    directory /var/www/www
    document root /var/www/www/>
a2ensites www
cd /var/www
mkdir www
cd www
nano index.html
    <html....bla bla bla...
/etc/init.d/apache2 restart


FTP

apt-get install proftpd
nano /etc/proftpd/proftpd.conf
/etc/init.d/proftpd restart


WEB MAIL

apt-cdrom add

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

pilih 0K !

lalu pilih internet site

lalu masukkan nama domainnya : smkn1.sch.id

ok

pilih yes

maildirmake /etc/skel/Maildir

pico (nano) /etc/postfix/main.cf


tekan page down pada keyboard keakhir baris lalu ketikkan

home_mailbox = Maildir/

dpkg-reconfigure postfix

pilih ok

pilih internet site

tekan enter 3x

pilih NO

nano /etc/apache2/apache.conf

pada akhir baris tulis => include  /etc/squirrelmail/apache.conf


adduser pengirim password buat 2x

pilih Y enter

pico /etc/squirrelmail/apache.conf

beri tanda # alias kemudian cari kalimat userrs will preser

hapus # <VirtualHost *:80>
    <DocumentRoot /usr/share/squirrelmail
    ServerName mail.smkn1.sch.id
    <VirtualHost>

squirrelmail-configure

masukkan 1 2 x lalu domainnya

A , enter courier, enter

R enter Q enter Y enter

/etc/init.d/apache2 restart

/etc/init.d/courier-pop restart

/etc/init.d/postfix restart

/etc/init.d/courier-imap restart

lalu cek di browser


PROXY

masukkan dvd2
apt-cdrom add
apt-get install squid
nano /etc/squid/squid.conf
ctrl + w
    acl CONNECT
        acl lan src 192.168.2.0/24
        acl url dstdomain "/etc/squid/url"
        http_access deny url
        http_access allow lan
        http_access allow all
        http_dport 3128 transparent
        cache_mgr namapeserta@sekolah.sch.id
        cache_mem 16 MB
        visible_hostname www.sekolah.sch.id

ctrl + x => Y enter
cd /etc/squid
nano url
    www.yahoo.com
    www.google.com
squid -z
iptables -t nat -A PREROUTING -s 192.168.2.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128

iptables-save >/etc/iptables
/etc/init.d/squid restart

Postingan populer dari blog ini

Tips menjawab 18 pertanyaan tersulit wawancara pekerjaan

Tips & Trik Mengerjakan Psikotes Gambar Wartegg

SOAL QUIS Kasus Pembayaran Rekening Listrik