Ads 468x60px

.

Minggu, 01 Desember 2013

Paket 3


Tutorial cara cepat dan mudah Paket 3 UKK TKJ

~# nano /etc/network/interfaces
auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
                address 200.100.4.65
                netmask 255.255.255.224

auto eth1:0
iface eth1:0 inet static
                address 200.100.4.66
                netmask 255.255.255.224

auto eth1:1
iface eth1:1 inet static
                address 200.100.4.67
                netmask 255.255.255.224

~# /etc/init.d/networking restart <- Wajib supaya bisa di update

~# nano /etc/apt/sources.list
deb http://kambing.ui.ac.id/ubuntu/ precise-proposed main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-security main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise main restricted universe multiverse

~# apt-get update && apt-get install bind9 apache2 -y && cd /etc/bind && cp db.local sekolah && cp db.127 200 && nano named.conf
zone "sekolah.sch.id"{
                type master;
                file "/etc/bind/sekolah";
};

zone "4.100.200.in-addr.arpa"{                        <- IP di balik "etc : 200.100.4.65 jadi 4.100.200"
                type master;
                file "/etc/bind/200";
};

~# nano sekolah
@            IN            NS          sekolah.sch.id.
@            IN            A             200.100.4.65
ns            IN            A             200.100.4.65
www       IN            A             200.100.4.66
mail        IN            A             200.100.4.67
@            IN            MX 40    mail.sekolah.sch.id.            <- MX 40 = 40 Hanya nilai bisa di ubah

~# nano 200
@            IN            NS          ns.
65           IN            PTR        sekolah.sch.id.
66           IN            PTR        www.sekolah.sch.id.
67           IN            PTR        mail.sekolah.sch.id.
~# apt-get install postfix courier-imap courier-pop -y && maildirmake /etc/skel/Maildir && adduser juri
1 <- password user juri
1 <- Password user juri, Kemudian enter,enter,enter,enter, sampai bertemu pilihan Y/N
Y
~# adduser siswa
1 <- password user siswa
1 <- Password user siswa, Kemudian enter,enter,enter,enter, sampai bertemu pilihan Y/N
Y

~# nano /etc/postfix/main.cf
home_mailbox = Maildir/                    <- isi di paling bawah

~# dpkg-reconfigure postfix
General Type of Mail Configuration                                    : Internet Site
System Mail Name                                                                  : sekolah.sch.id
Root and postmaster mail recipient                                     : (leave it blank)
Other destination to accept...                                                : (leave it as it was, just OK)
Force synchronous updates...                                              : No
Local Networks                                                                        : 0.0.0.0/0 (tambahkan di paling belakang)
Use Procmail for local deliver                                               : No
Mailbox size limit (bytes)                                                        : 0
Local address extension character                                      : +
Internet protocols to use                                                         : ipv4

~# apt-get install squirrelmail -y && nano /etc/apache2/apache.conf
include "/etc/squirrelmail/apache.conf"           <- isi di paling bawah

~# nano /etc/squirrelmail/apache.conf
<VirtualHost *:80>                                               <- Isi di paling bawah                      
  DocumentRoot /usr/share/squirrelmail                                             
  ServerName mail.sekolah.sch.id                                               
</VirtualHost>

~# nano /etc/rc.local
echo "nameserver 200.100.4.65" > /etc/resolv.conf
/etc/init.d/networking restart
/etc/init.d/bind9 restart
/etc/init.d/apache2 restart
/etc/init.d/postfix restart
/etc/init.d/courier-imap restart
/etc/init.d/courier-pop restart

~# /etc/rc.local
~# reboot <-Bila tidak bisa login.

download modulnya di sini !


Reade more >>

Paket 1


Tutorial mudah dan cara cepat menyelesaikan Paket 1 UKK TKJ, silahkan di simak :-)

~# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.100.30
netmask 255.255.255.0
gateway 192.168.100.1

auto eth1
iface eth1 inet static
address 192.168.55.1
netmask 255.255.255.0

~# echo "deb file:///mnt precise main restricted" > /etc/apt/sources.list && mount /dev/sdb1 /mnt && apt-get update && apt-get install squid3 -y && cd /etc/squid3 && cp squid.conf squid.conf.asli && nano squid.conf

ctrl + w http_port 3128
http_port 3128 transparent
ctrl+w visible_hostname localhost
delet # dan ganti localhost menjadi www.sekolah.sch.id
ctrl+w
cache_mgr webmaster
delet # dan ganti webmaster menjadi nama@sekolah.sch.id
ctrl+w
acl to
acl lan src 192.168.55.0/24
acl block dstdomain .yahoo.com .youtube.com
http_access allow lan !block

~# nano /etc/rc.local
masukan di atas "exit 0"
/etc/init.d/networking restart
echo "nameserver 8.8.8.8" > /etc/resolv.conf
iptables -F
iptables -t nat -F
iptables -t nat-A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 80 -j REDIRECT --to-port 3128
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/init.d/squid3 restart

~# /etc/rc.local

download modulnya di sini !
Reade more >>