Tiga Menit Setup SQUID

1. Install Squid dengan perintah

[root@gede ~]# yum -y install squid

2. Melihat Configurasi Squid yang terinstall

[root@gede ~]# vi /etc/squid/squid.conf

3. Tampilan Configurasi Squid

WELCOME TO SQUID 2.6.STABLE13


# —————————-

#

# This is the default Squid configuration file. You may wish

# to look at the Squid home page (http://www.squid-cache.org/)

# for the FAQ and other documentation. Dst………………………..!!!!!

4. Tambahkan http_access” di bawah “http_access allow manager localhost” atau Search “ http access “

Exs : http_access allow gede(bisa di ganti dengan nama apa saja )

– #Default:

# http_access deny all

#

#Recommended minimum configuration:

#

# Only allow cachemgr access from localhost

http_access allow manager localhost

“http_access allow gede”

5. Tambahkan “ acl “ dibawah “acl to_localhost dst 127.0.0.0/8 “

Atau Search “acl “

Exs : acl gede src 203.84.137.0/26 ( isi IP Klien )

#Recommended minimum configuration:

acl all src 0.0.0.0/0.0.0.0

acl manager proto cache_object

acl localhost src 127.0.0.1/255.255.255.255

acl to_localhost dst 127.0.0.0/8

acl gede src 203.84.137.0/26

6.Tambahkan “ visible_hostname “ search “unique_hostname”

Exs : visible_hostname localhost

#acl macaddress arp 09:00:2b:23:45:67

#Default:

# none

“visible_hostname localhost”

# TAG: unique_hostname

# If you want to have multiple machines with the same

# ‘visible_hostname’ you must give each machine a different

# ‘unique_hostname’ so forwarding loops can be detected.

7. IP Tables matikan dengan perintah :

~~ /etc/init.d/iptables stop

~~ chkconfig iptables off

8. Test Squid dengan perintah : tail -f /var/log/squid/access.log

=================== Beres dachhhh =======================

Disusun

NOC Channel-11 Bali

( Gede/Codar )


Install MRTG di Linux

- INSTALL MRTG FOR LINUX
Buat para Network admin bingung, gak tahu siapa yang abisin bandwidth kamu… disini saya memberikan sedikit artikel
tentang MRTG, yang saya adopsi dari beberapa sumber. mungkin bisa membantu cari tahu siapa yang ngabisin
bandwith kamu
Dengan berbagai metode kita dapat mengukur besar keluar-masuknya data tiap komputer dalam jaringan kita. Salah
satu cara yang sederhana dan mudah dikerjakan adalah dengan menggunakan iptables dan MRTG. Iptables hanya
digunakan untuk menghitung besar data yang masuk untuk tiap-tiap komputer dalam jaringan, dan hasilnya ditampilkan
dengan menggunakan MRTG Read the rest of this entry »

CONFIGURASI OSPF PADA PC LINUX

Untuk mengconfigurasi OSPF pada pc linux langkah yang harus di lakukan :

1. Install Quagga dengan perintah “ yum install quangga “

root@noc2 ~]# yum install quagga

2. Untuk melihat configurasi Quagga dengan perintah “cd /etc/quagga “

Lanjutkan dengan menekan “ls –al”

[root@gede ~]# cd /etc/quagga

[root@gede quagga]# ls -al


3. Mengaktifkan ospf dengan perintah :

- /etc/init.d/ospfd start

- /etc/init.d/zebra start

- [root@gede quagga]# /etc/init.d/ospfd start

Starting ospfd: [ OK ]

- [root@gede quagga]# /etc/init.d/zebra start

Starting zebra: Nothing to flush.

[ OK ]

4. Untuk dapat login ke routing protokol, kita dapat menggunakan aplikasi Telnet

Misal :

- [root@gede quagga]# telnet localhost ospfd

- [root@gede quagga]# telnet localhost zebra

5. Restart OSPF dengan perintah “/etc/init.d/ospfd restart”

[root@gede quagga]# /etc/init.d/ospfd restart

6. Mengconfigurasi IP pada ZEBRA dengan perintah “ telnet localhost zebra “

[root@gede ~]# telnet localhost zebra

***User Access Verification

***Password:

7. Untuk login kita gunakan password awalnya zebra (tanpa petik dua, sesuai dengan konfigurasi).

Sehingga muncul :

User Access Verification

Password:

Router>

8. Masuk ke privillages berikutnya dengan perintah “end” dengan psw “zebra”

Router> en

Password:

9. Untuk melihat configurasi di dalam ospf dengan perintah “ sh run “

Router# sh run

Current configuration:

!

hostname Router

password zebra

enable password zebra

!

interface eth0

ipv6 nd suppress-ra

!

interface eth1

ipv6 nd suppress-ra

!

interface lo

!

ip forwarding

!

line vty

!

end

11. Masuk ke mode configurasi dengan perintah “conf t”

Router# conf t

Setting IP di OSPF di eth0 dengan perintah “ interface eth0 “

Router(config)# interface eth0

Router(config-if)# ip address 203.84.137.55/26

Untuk menyimpan configurasi dengan perintah “ wr “

Router(config-if)# wr

12. Lanjutkan setting IP di eth1 dengan perintah “ interface eth1 “

Router(config)# interface eth1

Router(config-if)# ip address 10.200.1.2/29

13. Mengkonfigurasi OSPF dengan perintah “telnet localhost ospf” psdw = zebra

[root@gede ~]# telnet localhost ospfd

User Access Verification

Password:

14. Untuk login kita gunakan password awalnya zebra (tanpa petik dua, sesuai dengan konfigurasi).

Sehingga muncul :

Password:

ospfd>

15. Masuk ke privillages berikutnya dengan perintah “en” dengan psw “zebra”

ospfd> en

16. Masuk ke mode configurasi dengan perintah “conf t”

ospfd# conf t

17. Setting network OSPF dengan perintahrouter ospf”

ospfd(config)# router ospf

18. Setting IP network OSPF dengan perintah ne

ospfd(config-router)# network 10.200.1.0/29 area 0.0.0.0

19. Untuk menyimpan configurasi dengan perintah “ wr “

ospfd(config-router)# wr

by,

NOC CHANNEL-11 Bali

(Darmawan/Codar – Dian/Penyu

CONFIGURASI ROUTER BGP PADA PC LINUX

BORDER GATEWAY PROTOCOL ( BGP )

NOC Cakralintas Jimbaran memiliki kantor cabang NOC di Denpasar, Router-A dan Router-B harus terhubung dengan menggunakan routing BGP agar dapat melakukan pertukaran informasi routing antar jaringan.

Router-A AS Number : 65535

IP Router-A : 10.1.1.1 255.255.255.0

IP Loopback Router-A : 11.1.1.1 255.255.255.0

Networks : 10.0.0.0 & 11.0.0.0

Router-B AS Number : 65534

IP Router-B : 10.1.1.2 255.255.255.0

IP Loopback Router-B : 12.1.1.2 255.255.255.0

Networks : 10.0.0.0 & 12.0.0.0

Untuk mengconfigurasi router BGP pada pc linux langkah yang harus di lakukan


1. Install Quagga dengan perintah “ yum install quangga “

root@noc2 ~]# yum install quagga

2. Untuk melihat configurasi Quagga dengan perintah “cd /etc/quagga “

Lanjutkan dengan menekan “ls –al”

[root@gede ~]# cd /etc/quagga

[root@gede quagga]# ls -al

3. Mengaktifkan ospf dengan perintah :

- /etc/init.d/bgpd start

- /etc/init.d/zebra start

- [root@gede quagga]# /etc/init.d/ospfd start

Starting bgpd: [ OK ]

- [root@gede quagga]# /etc/init.d/zebra start

Starting zebra: Nothing to flush.

[ OK ]

4. Untuk dapat login ke routing protokol, kita dapat menggunakan aplikasi Telnet

Misal :

- [root@gede quagga]# telnet localhost bgpd

- [root@gede quagga]# telnet localhost zebra

root@gede quagga]# mv bgpd.conf.sample bgpd.conf (menghapus Sample bgp)

[root@gede quagga]# /etc/init.d/bgpd start (mengaktifkan BGP)

Starting bgpd: [ OK ]

1. Setting IP Eth0 di Zebra dengan perintah :

Mengconfigurasi IP pada ZEBRA dengan perintah “ telnet localhost zebra “

[root@gede ~]# telnet localhost zebra

***User Access Verification

***Password:

2. Masuk ke privillages berikutnya dengan perintah “end” dengan psw “zebra”

Router> en

Password:

3. Masuk ke mode configurasi dengan perintah “conf t”

Router# conf t

4. Setting IP di OSPF di eth0 dengan perintah “ interface eth0 “

Router(config)# interface eth0

Router(config-if)# ip address 10.1.1.2/8

5. Setting IP loopback

Router(config-if)# int lo

Router(config-if)# ip address 12.1.1.2/8

6. Untuk menyimpan configurasi dengan perintah “ wr “

Router(config-if)# wr

Cnfiguration saved to /etc/quagga/zebra.conf Router(config-if)# ctrl

7. Router# sh run

Current configuration:

!

hostname Router

password zebra

enable password zebra

!

interface eth0

ip address 10.1.1.2/8

ipv6 nd suppress-ra

!

interface eth1

ipv6 nd suppress-ra

!

interface lo

ip address 12.1.1.2/8

!

ip forwarding

!

SETTING IP ROUTER BGP >>> ROUTER A

1. Mengconfigurasi IP pada router BGP dengan perintah

[root@gede ~]# telnet localhost bgpd

User Access Verification

Password:

2. Untuk login kita gunakan password awalnya zebra (tanpa petik dua, sesuai dengan konfigurasi).

Sehingga muncul :

- Password:

bgpd>

3. Masuk ke mode privileged

bgpd> en

4. Masuk ke mode global konfigurasi

bgpd# conf t

5. Setting AS router BGP

bgpd(config)# router bgp 65534

6. Sebelumnya sudah ada AS router seperti dibawah ini :

BGP is already running; AS is 7675

7. Delate AS router tersebut :

bgpd(config)# no ip bgp 7675

% [BGP] Unknown command: no ip bgp 7675

8. Setting ulang kembali AS router BGP A

bgpd(config)# router bgp 65534

9. Setting network router BGP A

bgpd(config-router)# netw 10.0.0.0

bgpd(config-router)# netw 12.0.0.0

10. Simpan configurasi

bgpd(config-router)# wr

11. bgpd(config-router)#Ctrl z

12. Setting IP Neighbor BGP router A

bgpd# conf t

bgpd(config)# router bgp 65534

bgpd(config-router)# nei 10.1.1.1 remote-as 65535

13. Simpan configurasi

bgpd(config-router)# wr

14. Melihat konfigurasi yg sudah dibuat

bgpd(config-router)# sh run

Current configuration:

!

hostname bgpd

password zebra

log stdout

!

router bgp 65534

bgp router-id 12.1.1.2

network 10.0.0.0/8

network 12.0.0.0/8

neighbor 10.1.1.1 remote-as 65535

!

line vty

!

end

=============================================================

15. bgpd(config-router)# ctrlz

16. Melihat konfigurasi yg sudah dibuat di router BGP

bgpd# sh ip bgp

BGP table version is 0, local router ID is 12.1.1.2

Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,

r RIB-failure, S Stale, R Removed

Origin codes: i – IGP, e – EGP, ? – incomplete

Network Next Hop Metric LocPrf Weight Path

* 10.0.0.0 10.1.1.1 0 0 65535 i

*> 0.0.0.0 0 32768 i

*> 11.0.0.0 10.1.1.1 0 0 65535 i

*> 12.0.0.0 0.0.0.0 0 32768 i

Total number of prefixes 3

17. bgpd# exit

Connection closed by foreign host.

18. [root@gede ~]# ping 10.1.1.1

PING 10.1.1.1 (10.1.1.1) 56(84) bytes of data.

64 bytes from 10.1.1.1: icmp_seq=1 ttl=64 time=0.344 ms

64 bytes from 10.1.1.1: icmp_seq=2 ttl=64 time=0.119 ms

64 bytes from 10.1.1.1: icmp_seq=3 ttl=64 time=0.288 ms

SETTING IP ROUTER BGP >>> ROUTER B

1. Mengconfigurasi IP pada router BGP dengan perintah

[root@gede ~]# telnet localhost bgpd

User Access Verification

Password:

2. Untuk login kita gunakan password awalnya zebra (tanpa petik dua, sesuai dengan konfigurasi).

Sehingga muncul :

- Password:

bgpd>

3. Masuk ke mode privileged

bgpd> en

4. Masuk ke mode global konfigurasi

bgpd# conf t

5. Setting AS router BGP

bgpd(config)# router bgp 65535

6. Sebelumnya sudah ada AS router seperti dibawah ini :

BGP is already running; AS is 7676

7. Delate AS router tersebut :

bgpd(config)# no ip bgp 7676

% [BGP] Unknown command: no ip bgp 7675

8. Setting ulang kembali AS router BGP B

bgpd(config)# router bgp 65535

9. Setting network router BGP B

bgpd(config-router)# netw 10.0.0.0

bgpd(config-router)# netw 11.0.0.0

10. Simpan configurasi

bgpd(config-router)# wr

11. bgpd(config-router)#Ctrl z

12. Setting IP Neighbor BGP router B

bgpd# conf t

bgpd(config)# router bgp 65535

bgpd(config-router)# nei 10.1.1.2 remote-as 65534

13. Simpan configurasi

bgpd(config-router)# wr

14. Melihat konfigurasi yg sudah dibuat

bgpd(config-router)# sh run

Current configuration:

!

hostname bgpd

password zebra

log stdout

!

router bgp 65535

bgp router-id 12.1.1.1

network 10.0.0.0/8

network 11.0.0.0/8

neighbor 10.1.1.2 remote-as 65534

!

line vty

!

end

=============================================================

15. bgpd(config-router)# ctrlz

16. Melihat konfigurasi yg sudah dibuat di router BGP

bgpd# sh ip bgp

BGP table version is 0, local router ID is 12.1.1.1

Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,

r RIB-failure, S Stale, R Removed

Origin codes: i – IGP, e – EGP, ? – incomplete

Network Next Hop Metric LocPrf Weight Path

* 10.0.0.0 10.1.1.1 0 0 65535 i

*> 0.0.0.0 0 32768 i

*> 11.0.0.0 10.1.1.1 0 0 65535 i

*> 12.0.0.0 0.0.0.0 0 32768 i

Total number of prefixes 3

17. bgpd# exit

Connection closed by foreign host.

18.root@gede ~]# ping 10.1.1.2

PING 10.1.1.2 (10.1.1.2) 56(84) bytes of data.

64 bytes from 10.1.1.2: icmp_seq=1 ttl=64 time=0.034 ms

64 bytes from 10.1.1.2: icmp_seq=2 ttl=64 time=0.018 ms

64 bytes from 10.1.1.2: icmp_seq=3 ttl=64 time=0.018 ms

===================Selamat Mencoba=======================

Disusun oleh,

Darmawan/Codar

NOC CHANNEL-11 BALI

Installasi Quagga

Quagga adalah sebuah software aplikasi yang digunakan untuk
aplikasi routing protokol.
Bagian quagga ada beberapa macam:
1. Zebra – merupakan bagian penghubung antara linux kernel dengan aplikasi routing protokol.
2. Routing Daemon – merupakan aplikasi pengatur routing protokol.
Misal: ospfd adalah daemon yang mengatur routing protocol OSPF, ripd adalah daemon yang mengatur routing protokol RIP

Perintah Quagga mirip dengan perintah yang ada di CISCO router.
Untuk installasi : Read the rest of this entry »

Installasi Squid di Fedora Core 6

Installasi Squid di Fedora Core 6

Filed under: linux

note :
Saya membuat tutorial baru tentang squid di ubuntu + delay pools. silahkan liat di potingan saya ttg Instalasi squid + delay pools di Ubuntu 6.10.

Disini saya akan coba menjelaskan bgmn cara menginstall dan meng-configure Squid sebagai Transparent Proxy. Squid sangat membutuhkan memory yang cukup besar. Maksud saya disini adalah semakin besar memory yg kita punya makin baik.. bukan berarti bila kita mempunyai memory yg kecil tidak bisa melakukan penginstallan Squid, hanya performance dari squid kita akan melambat saja. Read the rest of this entry »

Setting DHCP Server Pada PC Linux

Kita bingung gimana cara cepat setting jaringan secara automatic tanpa perlu disetting ip per clien. Di windows kita mengenal software tambahan agar bisa berjalannya dhcp server ini. Linux menawarkan 1 paket dalam OSnya. buat apa pakai windows yang ngak costumize. Nah berikut ini langkah – langkahnya : Read the rest of this entry »

ARTICLE OSPF (Open Shortest Path First)

OSPF itu apa….???
OSPF merupakan sebuah routing protokol berjenis IGP yang hanya dapat bekerja dalam jaringan internal suatu ogranisasi atau perusahaan. Jaringan internal maksudnya adalah jaringan di mana Anda masih memiliki hak untuk menggunakan, mengatur, dan memodifikasinya. Atau dengan kata lain, Anda masih memiliki hak administrasi terhadap jaringan tersebut. Jika Anda sudah tidak memiliki hak untuk menggunakan dan mengaturnya, maka jaringan tersebut dapat dikategorikan sebagai jaringan eksternal. Read the rest of this entry »

INSTALASI CBQ (Class-Based Queueing)

INSTALASI CBQ (Class-Based Queueing)
Ada banyak cara untuk membuat shapper CBQ, anda bisa membuat dengan cbq.init

Persiapan untuk config CBQ.init
Download CBQ.init
[root@probiotik iptables-1.2.9]#wget http://heanet.dl.sourceforge.net/sourceforge/cbqinit/cbq.init-v0.7.1
[root@probiotik iptables-1.2.9]#mv cbq.init-v0.7.1 /sbin/
[root@probiotik iptables-1.2.9]#chmod 755 cbq.init-v0.7.1
Read the rest of this entry »

INSTALASI HTB (Hierachical Token Bucket)

Ada banyak cara untuk membuat shapper htb, anda bisa membuat secara manual dengan command tc
atau anda bisa mengunakan htb.init. Kebetulan saya menggunakan htb.init :)

Persiapan untuk config htb.init
Download htb.init
[root@probiotik iptables-1.2.9]#wget http://keihanna.dl.sourceforge.net/sourceforge/htbinit/htb.init-v0.8.4
[root@probiotik iptables-1.2.9]#mv htb.init-v0.8.4 /sbin/
[root@probiotik iptables-1.2.9]#chmod 755 htb.init-v0.8.4
Read the rest of this entry »

« Older entries