May 9, 2007

backtrack2 eth configure

ngegaya dikit padahal ini nyontek lo... thanks to "xatar" ini diambil dari sini
Network Interfaces.
So you have Backtrack running installed on a HDD, you can now configure your cards to use the network. You can also do this exactly the same if you are running the distro from the CD, but your settings will not be saved as the CD is a read only medium. There are plenty of different ways to configure these wired cards and plenty of tools to do it. What I am showing here is the generic Linux commands which should be the same for other distro's.
To turn on your ethernet network card (LAN):
ifconfig eth0 up >>> ini buat ngidupin interface eth0 di komp lo (default down) The eth0 is the name of the card, this could change depending on what hardware you have installed. To get a list of all adapters:
ifconfig -a >>>> melihat seluruh configurasi interface di komp anda This will list all (-a) interfaces.
To get DHCP to assign a network address automatically from the DHCP server:
#dhcpcd eth0 >>> untuk meminta IP dari server DHCP
This will run it only on eth0, if you omitted the interface you would run the DHCP discovery process on all compatible cards.
NOTE: Auditor has a script called 'pump' which will do the same process.
Then check if you have an address:
#ifconfig eth0
You should see an IP address in there somewhere.
If you want a static IP address instead of a dynamic one:
#ifconfig eth0 192.168.1.2
Or whatever IP you want! If you want a variable subnet mask (beyond the scope of this thread!):
#ifconfig eth0 192.168.1.2 netmask 255.255.255.224
To manually add a default gateway:
#route add default gw 192.168.1.1 eth0
Of course you would replace the IP address with your default gateways, also the eth0 interface is not always needed!
To manually assign your DNS servers:
#echo nameserver 192.168.1.1 > /etc/resolv.conf
#echo nameserver 212.135.1.36 >> /etc/resolv.conf
Note that the first line will OVERWRITE (>) the resolv.conf file, the second command will APPEND (>>) 'nameserver 212.135.1.36' onto the end of it!
All of this may have been done for you automatically with DHCP anyway, so to check:
cat /etc/resolv.conf
This will display to you the contents of the /etc/resolv.conf file.
To change your DHCP address if it has already been assigned you need to delete the DHCP file assigned to the card:
rm /etc/dhcpc/dhcpcd-eth0.pid
Although that may change based on the interfaces you have!

sebenernya ini bisa dilakuin disemua distro linux

May 8, 2007

transparent squid 2.6 STABLE* configuration

Judulnya sok keren n sok inggris bgt yaaaaa.... ok keburu diomelin bos nih gw mulai langsung aja yaaaa
adobted from : Rocky-Amos idCoMM

1. Langkah pertama yang harus dilakukan adalah stop atau musnahkan daemon squid asli saat installasi.Kalau menurut saya lebih baik dimusnahkan aja.Agar konfigurasinya lebih mudah.Kalo cuman distop nggak sepenuhnya bisa berjalan dengan baik.
Caranya :
[root@contoh-instal]# /etc/rc.d/init.d/squid stop
[root@contoh-instal]# for a in `rpm -qa | grep squid`; do rpm -e –nodeps $a; done
2. Selanjutnya download squid terserah kamu mau download dari website mana,tapi kalau aku dari sini aja http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE9.tar.gz
Caranya :
[root@contoh-instal]# wget http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE9.tar.gz
Jika kita ingin meletakkan source squid-2.6.STABLE9.tar.gz ke direktory /usr/local/src/ jadi kita terlebih dahulu masuk dalam direktory tersebut.
Caranya :
[root@contoh-instal]# cd /usr/local/src/
3. Setelah didownload Ekstrak source squid-2.6.STABLE9.tar.gz
Caranya :
[root@contoh-instal]# tar -zxvf squid-2.6.STABLE9. tar.gz
[root@contoh-instal]# cd squid-2.6.STABLE9
4. Kemudian kompilasi dan install squid yang udah di ekstrak tadi.
[root@contoh-instal]# ./configure –enable-carp –with-pthreads –enable-storeio=diskd,ufs –enable-removal-policies=heap –enable-icmp –enable-snmp –enable-arp-acl –enable-htcp –enable-forw-via-db –enable-leakfinder –enable-truncate –enable-underscores –enable-stacktraces –enable-cache-digests –enable-delay-pools –enable-dlmalloc –enable-linux-netfilter –prefix=/squid
[root@contoh-instal]# make all ( perintah untuk kompilasi squid )
[root@contoh-instal]# make install ( perintah untuk menjalankan install squid )
5. Tahap selanjutnya setelah aku install squid selesai, masuk dalam tahap meng-edit konfigurasi ke dalam file squid.conf
[root@contoh-instal]# cd /squid/etc/
Untuk memudahkan dalam meng-edit konfigurasi file squid.conf bisa kitamendownload sourcenya dari website mas danangyanto.File squid.conf dari installasi sebelumnya kita move untuk backup yangmungkin bisa digunakan jika kita memerlukan source yang aslinya.jadi selengkapnya.
[root@contoh-instal]# mv squid.conf squid.conf.asli
[root@contoh-instal]#wget http://danangyanto.web.id/download/squid.conf
untuk meng-edit bisa menggunakan perintah vi ( nama file )
[root@contoh-instal]# vi squid.conf
Lalu simpan file dengan cara tekan Esc, Shift + ; , wq! Enter.
Tambahan dari tutorial yang biasa digunakan:
Lakukan juga pengeditan :
ftp_user name@domain-anda.com
dns_nameservers IP-Address-DNS-ISP-Anda
acl user src 192.168.0.0 [IP network]/255.255.255.0 [masking network]
(ip192.168.0.0 adalah ranges ip address client kita mulai 192.168.0.0 sampai 192.168.0.255)
script untuk menjalankan Banner Filter dan Porn Filter : redirect_program /usr/local/apache/htdocs
/bannerfilter/ redirector.pl
acl porn url_regex “/usr/local/squid/etc/porn.txt”
http_access deny porn
“Jika anda tidak menginginkan Banner Filter atau Porn Filter berjalan, maka pada awal script Banner Filter atau Porn Filter dalam file squid.conf.hanny harus di beri tanda ” # ” :
#redirect_program /usr/local/apache/htdocs
/bannerfilter/
redirector.pl
#acl porn url_regex “/usr/local/squid/etc /porn.txt”
#http_access deny porn >>>> abis itu lo bikin porn.txt di directory /usr/local/squid/etc
inget ini
setting d squid2.6 **** itu agak beda sama yang versi sebelumnya
http_port 3128 ### to define the squid listening port ====| http_port 3128 transparent ### to config the transparent proxy ====| ==> ini dulu
http_port 3128 ==> ini yang sekarang
ini juga jgn lagi pake httpd_accel ini sekarang dah ganti jadi http port 3128 transparent >>> 3128 transparent adalah script yg ngebolehin proxy diakses semua org lewat port 3128. save squid.conf lalu jalankan squid semoga membantu kalo bnyk yg salah di tegor yaaa edit dah tgl 8 juni 07 di coment t0m ci :D

May 7, 2007

ternyata

gila ketauan bgt dah gobloknya gw.. nginstall2 aplikasi di linux aja blom lancar2 juga.. terakhir gw nginstall metasploit aja gak becus.. aduwwww gimana donk caranya... akhirnya gw dikasih tau.. klo lom lancar mending sekarang pake cd backtrack2 aja yang bisa di download di sini BTW upgrade firefox dari firefox 1.5.0.7 ke firefox 2.0.0.3 gimana sih di linux? hehehe jadul bgt dah nanya nya

April 16, 2007

Proxy knapa nihhhh

nih hari mulai pake proxy settingan ndiri... (squid 2.5/stable) sumpah tadinya gw blajar kuat2 aja pake komp pentium 4 RAM 256.. tapi pas gw terapin buat di kantor yg clientnya bnyk bgt... kok jadi K.O. yaaa malah diping aja intermitten payh nih... mana resource memorynya abis lagi .. si squid sampe makan 99,5 % dari memory gw.. ada yg tau gmn caranya. biar tuh komputer kuat lagi... apa aja setting yg perlu n apa yg gak perlu. user gw anggep aja 300 pc. pentium 4 1,8 ghz,256 MB