Enkripsi partisi denga DM-Crypt di Ubuntu



Untuk mengamankan file agar tidak di lihat oleh sembarangan orang lain, anda dapat melakukan enkripsi filesystem partisi bersangkutan. Dari beberapa metode enkripsi yang dapat di gunakan, anda dapat menggunakan DM-Crypt ( device-mapper crypto target ).
Sekarang lansung aja kita Pelajari :

1.dalam contoh ini, kita akan menggunakan enkripsi 256-bit AES ( Advanced Encryption Standard ). Pasti jika kernel anda sudah memiliki dukungan untuk me-load module AES.
$ cat /proc/crypto
Name : md5
…..
Dari output diatas terlihat kalau module AES belum diaktifkan. Untuk mengaktifkan module AES, jalankan perintah berikut :
$ sudo modprobe aes
Name : aes
…..
Dari output diatas, dapat terlihat kalau module AES sudah berhasil di-load.
2.Berikutnya instalasikan kedua tools yang akan kita gunakan untuk melakukan enkripsi, yakni dmsetup dan cryptsetup
$ sudo apt-get install dmsetup cryptsetup
3.setelah terinstalasi dengan baik, selanjutnya anda dapat meload module dm-crypt
$ sudo modprobe dm-crypt
4.untuk melihat apakah device-mapper telah dapat mengenali module dm-crypt dan menambahkan crypt sebagai target yang tersedia, jalankan perintah berikut :
$ sudo dmsetup targets
Crypt v1.3.0
……
5.berikutnya, lanjutkan dengan proses enkripsi. Anda perlu melakukan setup block device dan me-mount nya sebagai volume logical yang terenkripsi. Pastikan kalau partisi yang akan dimount dalam kondisi umount dan kosong, sebelum anda mengetikkan perintah berikut :
$ sudo cryptsetup –y create securedata /dev/sda1
Enter Passphrase :
Verify passphrase :
Pada contoh diatas, nama logical volume yang digunakan bernama securedata, dan /dev/sda1 adalah partisi yang akan dienkripsi
6.untuk memastikan kalau logical volume telah berhasil dibuat, anda dapat menjalankan perintah berikut :
$ sudo dmsetup ls
Securedata ( 254, 0 )
7.sekarang, jika anda menjalankan perintah berikut :
$ ls –s /dev/mapper
Total 0
Crw-rw—-1 root root 10, 63 2010-04-26 14:32 control
Crw-rw—-1 root disk 254, 0 2010-04-26 14:35
Securedata
Anda akan melihat kalau device-mapper telah membuat virtual block device di /dev/mapper, yang sudah terenkripsi secara transparan.
8.selanjutnya, buat ext3 filesystem pada virtual block device yang sebelumnya telah dibaut.
$ sudo mkfs.ext3 /dev/mapper/securedata
9.buat mount point didalam direktori /mnt.
$ sudo mount –t ext3 /dev/mapper/securedata /mnt/secure data
10.ubah permission atau hak kepemilikan folder tersebut, agar anda memiliki akses penuh ke partisi yang telah terenkripsi dengan menggunakan username anda. Dalam contoh ini usernamenya adalah kautsar.
$ sudo chown –Rf kautsar.kautsar /mnt/securedata
11.sekarang anda telah memiliki partisi terenkripsi untuk meletakan semua file penting yang anda miliki. Agar partisi tersebut dapat secara otomatis ter-mount setiap kali booting, anda dapat menambahkan parameter berikut dalam file
/etc/fstab
/dev/mapper/securedata /mnt/securedata ext3
Noauto, noatime 0 0

install Webmin di openSUSE


Webmin adalah aplikasi yang dapat digunakan untuk melakukan administrasi system dalam bentuk Web. Keunggulan utama webmin adalah standarisasi.
Oke lansung menuju TKP,sebelum instalasi webmib, install dulu library untuk SSL (perl-Net-SSLeay) menggunakan YAST. Fungsi dari library ini adalah mengaktifkan modus SSL yang lebih aman untuk akses melalui web.instalasi Webmin bisa dilakukan dengan 2 cara melalui file .RPM dan tarball.
File .RPM
1. Download webmin dalam bentuk RPM, lansung aja ke website nya webmin.
2. Setelah download copy ke lokasi install, missal /opt
3. Install Webmin
– buka terminal dan masuk ke lokasi install
– contoh : cd /opt
Rpm –ivh webmin-X.XXX.rpm ( X-XXX ganti dengan versi Webminmu )
File tarball
1. Download webmin dalam bentuk .tar.gz
2. Untar file tersebut ketik perintah : tar zxvf webmin-X.XXX.tar.gz
3. Masuk ke dalam folder hasil tar tersebut ketik : cd /opt/webmin-X.XXX
4. sekarang proses instalasinya, jalankan file setup ( dalam bentuk.sh atau .pl )
./setup.sh
Setelah instalasi selesai, webmin dapat diakses melalui browser dgn URL : http://namakomputer:port atau http://ipaddress:port ( port defaultnya 10000,jika di ubah saat instalasi maka sesuaikan dengan portnya ). Kemudian lakukan perubahan pada file konfigurasi untuk mengaktifkan modus https.
1. Buka file /etc/webmin/miniserv.conf
2. Ganti ssl=0 menjadi ssl=1
3. Restart Webmin ( bisa melalui menu di Webmin )
Sekarang buka kembali Webmin dengan browser dengan mengganti protocol URL menjadi https, misal ( https://namakomputer:port atau https://ipaddress:port ).

1000+ Command for OpenSuse and Suse Linux Enterprise book


Bagi yang ingin memakai Distro OpenSuse tapi tidak mengerti banyak dengan Command-command di linux, sekarang Christopher Negus dan Francois Caen mengeluarkan buku berjudul “SUSE LINUX TOOLBOX” yang dipublish oleh Wiley Publishing, Inc. Buku ini bisa membantu anda dalam menghadapi masalah-masalah Console pada OpenSuse.. Download disini..

Mempercepat Performa Swap File


apa itu Swap ?? Swap merupakan memori backup atau cadangan apabila memori utama sudah kewalahan menangani operasi di kompi kita, kalo di  linux, Swap merupakan partisi yang berbeda untuk selanjutnya juga digunakan sebagai virtual memory dan menyimpan file-file sementara (temporary).
tutorial ini berlaku untuk pengguna windows saja :
  • buka menu RUN, ketikkan MSCONFIG
  • kemudian buka tab SYSTEM.INI, lihat pada “386nh”
  • kemudian klik tombol New ubah namanya menjadi “CONSERVATIVE SWAP FILE USAGE=1″(tanpa tanda kutip)
  • kemudian restart komputer anda
Rasakan perubahannya…

How to sniff or hack someone’s username and password even if it is over an SSL encrypted connection


Introduction
Do you think you’re safe if you type https :// before paypal.com? I hope you’ll think twice before you login from a computer connected to a wireless network after reading this guide. Let’s start at the beginning. Let’s say you have an evil neighbour who wants your paypal credentials. He buys himself a nice laptop with a wireless card and, if you are using a wep encryption, he cracks your wep code (click here to see how). After cracking the key he logs into your network. Maybe you always allowed him to use your network because you thought it can’t do any harm to your computer. You aren’t sharing any folders so what’s the problem? Well, in the next few steps I’m going to describe the problem.
The guide
1. Let’s assume your neighbour uses linux to crack your wep key. After cracking it, he installs ettercap (http://ettercap.sourceforge.net/) on his linux system. If you want to do this at home, I would recommend you to download BackTrack because it already has everything installed. Look at the WEP cracking guide I mentioned above for more info about BackTrack. If you want to install it on your own linux distribution, download the source and install it with the following commands:
$ tar -xzvf ettercap-version.tar.gz
$ make
$ make install
2. After installing, you need to uncomment some code to enable SSL dissection. Open up a terminal window and type “nano /usr/local/etc/etter.conf”, without the quotes. Scroll down using your arrow keys until you find this piece of code:
# if you use iptables:
# redir_command_on = “iptables -t nat -A PREROUTING -i %iface -p tcp –dport %port -j REDIRECT –to-port %rport”
# redir_command_off = “iptables -t nat -D PREROUTING -i %iface -p tcp –dport %port -j REDIRECT –to-port %rport”
You need to uncomment the last two lines.
# if you use iptables:
redir_command_on = “iptables -t nat -A PREROUTING -i %iface -p tcp –dport %port -j REDIRECT –to-port %rport”
redir_command_off = “iptables -t nat -D PREROUTING -i %iface -p tcp –dport %port -j REDIRECT –to-port %rport”
3. Press CTRL+O, press enter to safe the file and then press CTRL+X.
4. Boot Ettercap and click on Sniff > Unified Sniffing > type in your wireless interface and press ok.
5. Press CTRL+S to scan for hosts
6. Go to MITM > ARP poisoning, select sniff remote connections and press ok.
7. Now you (and your neighbour!) can start sniffing! Press start > start sniffing. Walk to another computer on your network and open up paypal or any other site where you need to type in an username/password (gmail, hotmail, digg.com, etc.). All credentials will appear on the computer running Ettercap!
8. When you’re done, don’t just close Ettercap, but go to Start > Stop Sniffing, and then go to MITM > Stop mitm attack(s).
But how does all this stuff work?
Look at the following scheme:
Normally when you type in a password, host 1 (your computer) directly connects to host 2 (your modem or router). But if someone launced Ettercap on your network, host 1 isn’t sending it’s passwords to host 2, but to the Attacking host, the host that’s running Ettercap! The attacking host sends everything to Host 2. This means that host 1 isn’t noticing anything! Exactly the same happens with everything that host 2 is sending. Host 2 doesn’t send packets directly to host 1, but forst to the attacking host.

Daftar Isi