Thursday, 24 September 2015

Anything that executed inside # sign

Wednesday, 23 September 2015

Debug type

  • Event
    • for example: debug ip dhcp server events
  • Packet
    • for example: debug ip dhcp server packet

Study tentang TACACS+

Fakta

1. Kamu bisa melakukan AAA dengan TACACS+ atau RADIUS.
2. Jika kamu melakukan AAA dengan TACACS+ konfigurasi ada di 2 sisi. Di sisi raspberry pi sebagai tacacs+ server dan di sisi router sebagai tacacs+ client.
3. Tacacs tidak bisa di running jika konfigurasi (di file /etc/tacacs+) masih syntax error
4. Sebelum belajar tacacs ada baiknya belajar username secret local database(database di dalam router) disini.
5. Tacacs dan local database berbeda cara pandang so be aware.

1. Di sisi Raspberry Pi:

1. $ sudo apt-get install tacacs+
2. $ sudo nano /etc/tacacs+/tacacs_plus.conf
3. Tambah user profile:
user = cisco {
default service = permit
login = cleartext class
}
4. exit keluar dari  line
5. $ service tacacs_plus restart; every time configuration has change, restart.

2. Di sisi router

1. aaa new-model
2. aaa authentication login group tacacs+ enable
3. tacacs server host 192.168.1.2 key testing123
4. test aaa group tacacs+ cisco class legacy


Viewing
Note that: after you assign aaa authori
pi@raspberrypi /var/log $ sudo tail -f /var/log/tac_plus.acct
Wed Sep 23 17:38:53 2015        192.168.1.1     cisco   tty8    192.168.1.16   start    task_id=203     timezone=UTC    service=shell   start_time=1443029265
Wed Sep 23 17:39:23 2015        192.168.1.1     cisco   tty8    192.168.1.16   stop     task_id=203     timezone=UTC    service=shell   start_time=1443029265  disc-cause=1     disc-cause-ext=9        pre-session-time=4      elapsed_time=31stop_time=1443029296
Wed Sep 23 17:39:36 2015        192.168.1.1     cisco   tty8    192.168.1.16   start    task_id=204     timezone=UTC    service=shell   start_time=1443029309

Ayo buat user yang tidak memilki permit
user = aloha {
login = cleartext butbut
}
User ini dipastikan tidak bisa memasukan username dan password.

Ayo kemudian tambahkan command cmd


Troubleshooting script steps:
1. Pertama cek apakah user tersebut masuk kedalam sebuah/suatu group?
2. Cek 

IP version 4

Header-header IP
1. Version  = 4
2. Header length = 20 bytes
3. Differentiated service field: 0xc0
4. Total length: 121
5. Identification: 0xd242
6. Flags: 0x00
7. Fragment offset: 0
8. Time to live: 255
9. Protocol: TCP(6)
10. Header checksum: 0x651a
11. Source: 192.168.1.1
12. Destination: 192.168.1.16
[Source GeoIP: Unknown]
[Destination GeoIP: Unknown]



ARP

1. If arp dont receive reply, it means there is a layer 2 network problem.
2. If arp receive reply, that is same with router gateway mac address, it mean there is a proxy arp happening.

To view arp table in windows:
1. arp -a (with administrative right)

To view arp table in router:
1. show ip arp

Tuesday, 22 September 2015

192.168.1.0/28

Facts:192.168.1.0/28
1. Lebih enak pakai prefix
2. Untuk mencari host i.e. jumlah ukuran blok kedepan
3. Untuk mencari jumlah subnet ke belakang
4. Untuk mencari jumlah

Proxy

On behalf.
1. Web Proxy
2. Arp proxy
3.