Archive

Archive for May 25, 2009

ARP PoiSoning MenGgaGalkan DownLoadku…hix3.

May 25, 2009 danphi Leave a comment

Allo Broo..

Gw lagi rajin-rajinnya neh blogging…hehe.. Gw kesel bgt kemaren malem,coz da yg maen2 ARP poisoning yg ganggu jaringan bgt…hix3. Gw kena imbasnya,lagi asik2 download,eeeehh jadi keputus gara2 da yg spoofing punya gw,padahal tinggal dikit tuh downloadan gw..hix3. Mungkin da yg blom tau yak apa seh ARP..Gw cm mau sharing dikit aja,ne gw ambil dari wiki..hehehe..

ARP adalah singkatan dari Address Resolution Protocol yang dalam istilah komputer networking nya adalah sebuah metode untuk menemukan suatu host pada sebuah jaringan yang menterjemahkan sebuah logical address ( IP = internet Protocol )  kedalam sebuah Hardware Address atau lebih dikenal dengan MAC ( Media Access Control ) Address untuk mendukung  komunikasi di dalam sebuah jaringan. Jadi dengan adanya protocol tersebut setiap Hardware yang ada dalam sebuah jaringan (Ethernet Card) dapat berkomunikasi satu sama lain.

Nah,ntu  penjelasan singkat ttg ARP..Lha trus apa ARP poisoning??

ARP poisoning atau lebih keren disebut dengan ARP spoofing adalah sebuah teknik  penyerangan jaringan yang digunakan untuk mengacaukan jaringan atau sebuah routing didalam jaringan.  Nah,trus orang yang melakukan ARP  spoofing dapat mengintip data frame dalam sebuah jaringan, memanipulasi traffic, atau memberhentikan traffic atau routing. Biasanya seh orang yg nglakuin ARP Spoofing pingin tau tentang komputer kita,misalnya password VPN kita ato pesan2 yg kita kirim di jaringan…

Masih bingung neh gw ilustrasiin..hehehe

picture1

Nah, Gambar diatas ngejelasin gmn ARP Spoofer bekerja..Jadi gini,pertama-tama ada hubungan komunikasi antara Client POP dan POP server,Kemudian datang attacker yg melakukan Spoofing untuk menipu Client POP,cara yg dilakukan adalah dengan Teknik ARP Spoofing yg telah gw jelasin tadi,si Attacker membuat dirinya seolah-olah menjadi POP server yaitu dengan memanipulasi MAC addressnya menjadi sama dengan MAC address POP server.. Nah,kalo udah kyak gini si ClientPOP tidak akan menyadari bahwa sebenernya dia tidak berkomunikasi dengan POP server melainkan dengan Attacker yg menyamar menjadi POP server.. Gmn??bahaya bgt bukan??

Lalu gimana neh caranya mencegah atau usaha apa yang bisa dilakukan agar tidak terpengaruh ARP poisoning ini?

salah satu caranya adalah dengan men set arp static pada komputer
Kalo di windows loe ketikin di Command Promt kayak gini neh :

arp  -s  10.14.200.1  00-00-cd-25-fe-e0 –> mac sesuai IP nya

Kalo loe pake Linux,coabain di konsolemu kyak gini :

arp -s  10.14.200.1  00:00:cd:25:fe:e0

jika banyak host yang mau di set di linux bisa dengan cara membuat file list  ether dan IP :

/home/ethers

10.14.200.1  00-00-cd-25-fe-e0

10.14.200.67  00-1f-d0-52-a0-2f

10.14.200.30  00-1d-92-f5-02-51

kemudian loe jalanin perintah kyak gni :

arp -f /etc/ethers

Nah,gitu bro cara yg gw pakai buat nyegah ARP poisoning ke gw..Selama carantu ampuh seh masih gw pakai,tapi kalo cara yg laen gw blom tau bro..hehehe..:))

Mungkin ada beberapa tools pendukung buat tau da ARP poisoning or ga:
1. arpwatch
2. tcpdump
3.wireshark

Source : http://www.en.wikipedia.org/wiki/ARP_poisoning

MAC address Allowing in Squid FreeBSD 7

May 25, 2009 danphi Leave a comment

Allo Prenz…

gw mau sharing2 pengalaman gw neh..kali ini gw lagi demen ma yg namanya FreeBSD…q oprek2 lah tuh freeBSD..Nah,kale ini gw pingin nyoba share ilmu neh tentang konfigurasi acces list untuk Squid di FreeBSD 7…hehe.

Gw pingin nyoba buat access list berdasarkan MAC address komputer..jadi yg bisa ngenet nglewatin proxy gw,harus mendaftarkan MAC address mereka..hehehe..

Okeh..langsung saja..sebenernya cm di tambahin dikit aja di settingan squid.conf-nya..

1. Loe harus install dulu FreeBSDnya tentunya…hehehe.:))

2. Loe install Squidnya..caranya lewat ports aja..(FreeBSD it so sexy…:)))

#cd /usr/ports/www/squid/

#make install clean

Nah,loe jangan mpe lupa tu pilih yg SQUID_ARP_ACL soalnya ntu yg akan kita pakai ntar..okey..

3. Klo udah,silahkan loe edit file squid.conf yg ada di /usr/local/etc/squid/

#pico /usr/local/etc/squid/squid.conf

4. Kalo udah loe tambahin deh kek gini buat masing-masing MAC address yg bisa ngenet nglewatin proxy..Misalnya neh kyak gni :

acl lokal1 arp 00:0b:6a:7b:51:b7  #danphi
acl lokal2 arp 00:1D:72:20:87:b4  #Bayu
acl lokal3 arp 00:1a:4d:80:02:5d  #Udin
acl lokal4 arp 00:30:18:a7:6b:04  #sompil

http_access allow lokal1
never_direct allow lokal1
http_access allow lokal2
never_direct allow lokal2
http_access allow lokal3
never_direct allow lokal3
http_access allow lokal4
never_direct allow lokal4

5. Penjelasannya kek gini :

acl <nama_acl> arp MAC ADDRESS

http_access allow <nama_acl>

6. Kalo udah loe restart deh squid loe atau loe reboot aja server kamu…hehehe.

#/usr/local/etc/rc.d/squid restart

#squid -k reconfigure

#reboot

Nah sekarang loe cobain deh browsing menggunakan MAC addres yg telah di-add di acl pasti bisa jalan..sedangkan MAC address yg tidak ada di acl tidak akan bisa browsing…

Gampang bukan caranya…selamat mencoba…hehe2

SaVing YouR FreeBSD from BruteForce Attacks

May 25, 2009 danphi Leave a comment

Allow Bro…

Now, I will sharing my experience about FreeBSD…I talk about The BruteForce attack..

While this often once I get the bruteforce attacks to ssh and ftp service to almost all internet servers. I find the rather good tools to prevent this attack, it is called Bruteblock.

Bruteblock allows system administrators to block various bruteforce attacks on UNIX Service. The program analyzes the system work the system log and add the IP address of attacker ipfw2 to the table, so that effectively block them.

IP addresses are automatically removed from the table after a certain time period that has been set. Bruteblock use regular expressions to parse logs, which provide the flexibility to operate it can be used almost all the service network.

Okey,,I will explain the installation of BruteBlock. The installation it so easy..Check it out!!

1. I am using ports for installation of BruteBlock

#cd /usr/ports/security/bruteblock
#make install clean

2. Add the following lines in /etc/rc.conf so that bruteblock can directly boot while running

bruteblockd_enable=”YES”
bruteblockd_table=”1″
bruteblockd_flags=”-s 5″

3. Edit file /etc/syslog.conf

Change this line :

auth.info;authpriv.info                                /var/log/auth.log

to be

auth.info;authpriv.info                         |exec /usr/local/sbin/bruteblock -f /usr/local/etc/bruteblock/ssh.conf

4. Restart Syslogd

#/etc/rc.d/syslogd restart

5. Running the bruteblock application with this command :

#/usr/local/etc/rc.d/bruteblockd.sh start

6. Add in the ipfw settings for IP-IP memblock who enter in by bruteblock

#ipfw add 400 deny ip from me to table\(1\)
#ipfw add 410 deny ip from table\(1\) to me

7. To change the settings for each service that is protected, eg I will change the settings for ssh in /usr/local/etc/bruteblock/ssh.conf

regexp          = sshd.*Illegal user \S+ from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
regexp1         = sshd.*Failed password for (?:illegal user )?\S+ from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})

# Number of failed login attempts within time before we block
max_count       = 4

# Time in seconds in which all failed login attempts must occur
within_time     = 60

# Time in seconds to block ip in firewall

# 10 minutes
reset_ip       = 600

# IPFW table number to add “bad” hosts
ipfw2_table_no = 1

we can only apply for another service, eg ftp. we only need to change in the regexp. adjusted to the format of the log servicenya.

Okey…the installation is complete..You can try in your machine..

Source : http://samm.kiev.ua/bruteblock/