Rabu, 19 Oktober 2011

praktek LINUX


Tutorial   



~# Sudo -i
~#pasword
~#ifconfig


TCP IP
~# gedit /etc/network/interfaces


auto eth0
iface eth0 inet static
      address 192.168.1.7
      netmask 255.255.255.0
      network 192.168.1.0
      broadcast 192.168.1.255
      gateway 192.168.1.1
      dns-nameservers 192.168.1.1


auto eth1
iface eth1 inet static
      address 192.168.2.1
      netmask 255.255.255.0
      network 192.168.2.0
      broadcast 192.168.2.255
#     dns-nameservers 192.168.2.

è ~#/etc/init.d/networking restart
DHCP
~# gedit /etc/dhcp3/dhcpd.conf



subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.100 192.168.2.200;
option domain-name-servers 192.168.2.1,192.168.1.1;
option domain-name "tkjkaleng.com";
option routers 192.168.2.1;
option broadcast-address 192.168.2.255;
ddns-update-style none;
default-lease-time 14400;
max-lease-time 72800;
}






è ~#/etc/init.d/dhcp3 restart
router
gedit /etc/sysctl.conf

Haapus tanda pagar pada file” di bawah :

net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1

net.ipv4.ip_forward=1
# stsctl -p
# iptables -t nat -A POSTROUTING -o eth0 -j  MASQUERADE




DNS

cp /etc/bind/db.local /etc/bind/db.server
cp /etc/bind/db.127 /etc/bind/db.254
cp /etc/bind/named.conf.default-zones /etc/bind/named.conf.server

DNS
gedit /etc/bind/db.server

;
; BIND data file for local loopback interface
;
$TTL  604800
@     IN    SOA   tkjkaleng.com. root.tkjkaleng.com. (
                        2           ; Serial
                   604800           ; Refresh
                    86400           ; Retry
                  2419200           ; Expire
                   604800 )   ; Negative Cache TTL
;

@     IN    NS    tkjkaleng.com.
www   IN    A     192.168.2.1
mail  IN    A     192.168.2.1
ftp   IN    A     192.168.2.1

ètruz...

~# gedit /etc/bind/db.254



;
; BIND reverse data file for local loopback interface
;
$TTL  604800
@     IN    SOA   tkjkaleng.com. root.tkjkaleng.com. (
                        1           ; Serial
                   604800           ; Refresh
                    86400           ; Retry
                  2419200           ; Expire
                   604800 )   ; Negative Cache TTL
;
@     IN    NS    tkjkaleng.com.
1     IN    PTR   www.tkjkaleng.com.
1     IN    PTR   ftp.tkjkaleng.com.
1     IN    PTR   mail.tkjkaleng.com.


ètruz...



 gedit /etc/bind/named.conf.server


// prime the server with knowledge of the root servers
zone "." {
      type hint;
      file "/etc/bind/db.root";
};


// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
      type master;
      file "/etc/bind/db.local";
};


zone "127.in-addr.arpa" {
      type master;
      file "/etc/bind/db.127";
};


zone "tkjkaleng.com" {
      type master;
      file "/etc/bind/db.server";
};


zone "1.in-addr.arpa" {
      type master;
      file "/etc/bind/db.254";
};


ètruz...

gedit /etc/bind/named.conf

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local


include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
#include "/etc/bind/named.conf.default-zones";
include "/etc/bind/named.conf.server";




ètruz...

gedit /etc/resolv.conf

# Generated by NetworkManager
search tkjkaleng.com
nameserver 192.168.2.1

Minggu, 16 Oktober 2011

INSTALASI DNS SERVER

# apt-get install bind9

konfigurasi DNS
# pico /etc/bind/named.conf.options
ubah skrip mjd
options {
             directory "/var/cache/bind";
              // If there is a firewall between you and name
             // to talk to,you may need to fix the firewall
            // ports to talk. See http://www.kb.cert.org

          // if your ISP provided one or more IP address
          // nameservers, you probably want to use them
         // Uncomment the following block, and insert
         // the all-0's placeholder

Senin, 10 Oktober 2011

KONFIGURASI DNS Part 4

#vim.tiny /etc/resolv.conf
Ketik :
Search tkj-server.edu
Nameserver 192.168.1.2
# /etc/init.d/bind9 restart
# nslookup www.tkj-server.edu
# nslookup ftp.tkj-server.edu
# nslookup mail.tkj-server.edu

konfigurasi telah berhasil

sekarang coba di cek dgn

# ping www.tkj-server.edu
# ping ftp.tkj-server.edu
# ping mail.tkj-server.edu


ALKHAMDULILLh...
SELAMAT MENCOBA..
n GOOD LUCK..


LOQ GAGAL JOG XALAHNE Q ZA....
HEHEHEHEHEHEHEHEH

KONFIGURASI DNS Part 3

#vim.tiny /etc/bind/named.conf
beri tanda # pada include ke /etc/bind/named.conf.default-zone lalu ketik
Include "/etc/bind/named.conf.server";

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /esr/share/doc.bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, "BEFORE" you customize
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
include "/etc/bind/named.conf.server";
-
-
-
-
-
-
-
-
-
-
-
: wq

save

KONFIGURASI DNS Part 2

#vim.tiny /etc/bind/named.conf.server

edit skrip mjd :

};

// be authoritative for the localhost forward and reverse zones,and for
// broadcast zones as per RFC 1912

zone "localhost" {
             type master ;
             file " /etc/bind/db.local";
};

zone "127.in-addr.arpa" {
             type master ;
             file " /etc/bind/db.127";
};


zone "tkj-server.edu" {
             type master ;
             file " /etc/bind/db.server";
};


zone "2.in-addr.arpa" {
             type master ;
             file " /etc/bind/db.254";
;wq

KONFIGURASI DNS Part 1

# apt-get install bind9
kopikan file berikut
# cp /etc/bind/db.local /etc/bind/db.server
# cp/etc/bind/db.127 /etc/bind/db.2
# cp /etc/bind/named.conf.default-zones /etc/bind/named.conf.server
edit file
# vim.tiny /etc/bind/db.server

ketikkan skrip berikut :
;
; BIND data file for local loopback interface
;
$TTL       684800
@             IN             SDA        tkj-server.edu.  root.tkj-server.edu.   {
                                                             2            : serial
                                                  684800             : Refresh
                                                    86400             : Retry
                                                2419200             : Expire
                                                  604800   }        : Negative Cache TTL
;
@            IN                NS          tkj-server.edu.
www       IN                 A              192.168.1.2
mail         IN                 A              192.168.1.2
ftp           IN                 A              192.168.1.2
-
-
-
-
-
-
-
-
:wq
simpan dg ESC atw wq

vim.tiny /etc/bind/db.2

lalu ketikkan skrip:

;
; BIND reverse data file for local loopback interface
;
$TTL       684800
@             IN             SDA        tkj-server.edu.  root.tkj-server.edu {.
                                                             1            : serial
                                                  684800             : Refresh
                                                    86400             : Retry
                                                2419200             : Expire
                                                  604800  }         : Negative Cache TTL
:
@            IN                NS          tkj-server.edu.
2             IN                 PTR        www.tkj-server.edu.    
2             IN                 PTR        ftp.tkj-server.edu
2             IN                 PTR        mail.tkj-server.edu.
-
-
-
-
-
-
-
-
" /etc/bind/db.254" 15L,  350C

simpan dg ESC

Selasa, 04 Oktober 2011

ROUTER

# pico /etc/sysctl.conf
cari skrip
# net.ipv4.ip_forward=1
aktifkan dg menghilangkan tanda [#] shg mjd
net.ipv4.ip_forward=1
cari skrip
# net.ipv4.conf.default.rp_filter=1
# net.ipv4.conf.all.rp_filter=1
aktifkan dg menghilangkan tanda [#] shg mjd
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1
simpan dg ctrl+o dan keluar dg ctrl+x

aktifkan konfigurasi dg mengetik
# sysctl -p

membuat NAT dg menjalankan IPTables agar request dr LAN bsa dtruzkan k internet
#   iptables   -t   nat   -A   POSTROUTING   -o   eth0   -j  MASQUERADE

stelah itu coba d komputer client yg tersambung ke server dg melakukan ping ke internet atau langsung browsing.
jika sudah bisa tambahkan perintah tsb k file /etc/rc.local agar perintah tsb otomatis dijalankan setiap server start.

INSTALASI DHCP Server

# apt-get install dhcp3-server
# pico /etc/dhcp3/dhcp.conf

ubah script mjd

option domain-name "tkjlengkong.com";
option domain-name-server 192.168.1.1, 192.168.4.1;
option routers 192.168.4.2;
default-lease-time 14400;
ddns-update-style none;
subnet 192.168.4.0 netmask 255.255.255.0 ;
range 192.168.4.100 192.168.4.200 {
default-lease-time 14400;
max-lease-time 172800;
}
ctrl+o stelah tue ctrl+x

#pico /etc/default/dhcp3-server
ubah INTERFACES="eth1"

lakukan restart
# /etc/init.d/dhcp3-server restart

akan muncul
*stopping DHCP server dhcpd3                           [ok]
*Starting DHCP server dhcpd3                            [ok]

PRAKTEK LINUX

KONFIGURASI  TCP/IP
# pico /etc/network/interfaces

#The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
           address 192.168.1.2
           netmask 255.255.255.0
           network 192.168.1.0
           broadcast 192.168.1.255
           gateway 192.168.1.1
           dns-nameservers 192.168.1.1

auto eth1
iface eth1 inet static
           address 192.168.4.1
           netmask 255.255.255.0
           network 192.168.4.0
           broadcast 192.168.4.255
           dns-nameservers 192.168.4.1
           

simpan dg ctrl+o dn kluar dg ctrl+x

Senin, 03 Oktober 2011

shabat akan indah kalau kita dapat menghargai persahatan itu
menghargai dimulai dari diri sendiri untuk sahabat kita
seberapa besar pengorbanan kita untuk sahabat
walaupun hal itu membuat hati kita terluka.........
dari itu mereka akan tahu KITA....
muax gag kant bza spertie dluw gy....jlaninie jja zg da krank....mgha tkdr kant tnjuk'ant muax...shbat thu asssoooooyyyyy bgetzzzzz...........

Selasa, 26 Juli 2011

q kangen m semua yang pernah kita lakukan bersama
mungkinkah itu semua bisa terulang lagi,,,,

Minggu, 01 Mei 2011

bwat cmua sahabat_qu

 qu kangent ma swasana dlu,,,,swasana yang slalu bwat q senang n bahagia,,,,
 sobat.....kapan kita bisa kumpul",ngrumpi,nyanyi" bareng aGie????????????????
smenjak qt pulg PSG qU ngrsa qt dh gag kyAk dlu aGie,,,,mAng qt mch srig  kumpul breg pi sllu da emsi dstyap qta kmpul breg,,,,,qu pgen qt kyak dlu tyap kmpul da snyum n tawa d'Antra qt....
SOBATTTT mga dgan Tlisan nie kta bza breg 'n brstu kyk dlu age,,,,



I WILL ALWAYS MISS_U SOBAT