Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Friday, September 16, 2011

How to Make Routers Using RouterOS

MikroTik RouterOS ™ is an operating system and which can be used to make computers even become a reliable network routers, covering the full range of features for network and wireless.

As usual to install an operating system, we must first set the first boot to CDROM, then we RouterOS its CD input. And the computer will direct booting to the CD.

1. Install the Mikrotik OS

- Follow instructions, use the next-next syndrome and default
- Install the main package, much better all the way packet marking (mark)
- After all the packages marked for install then press "I"
- Old Install ga normally until 15 minutes, more meaningful if it fails, repeat the initial step
- Once installed wrong, the PC restarts the login display will appear

2. Basic setting mikrotik

The initial steps of all steps is setting mikrotik ip configuration. It is intended that Mikrotik can be in remote and with Winbox and allows us to perform a variety of configurations.

- Login as the admin default password degan ga have to be filled immediately enter. Replace it with the ip address and interface that will be used to remotely while.

3. Setting by using the text mode.
Let's start with the assumption that the install was successful.

1. Install -> OK
2. Setting eth1 IP 222.124.xxx.xxx (from ISP), the command :
ip address add address 222.124.xxx.xxx netmask 255.255.255.xxx interface ether1
This IP is the public IP / IP existing Internet connection
3. Setting IP eth2 192.168.1.254, the command :
ip address add address 192.168.1.254 netmask 255.255.255.0 interface ether2
Local IP is your IP.

Now do a ping to and from another computer, after connect proceed to the next step, if not repeat from step No. 2.

4. Gateway Settings, command :
ip route add gateway = 222.124.xxx.xxx (from ISP)
5. Settings Primary DNS, command :
ip dns set primary-dns = 203.130.208.18 (from ISP)
6. Setting Secondary DNS, command :
ip dns set secondary-dns = 202.134.0.155 (from ISP)
7. Setting Routing masquerade to eth1, command :
ip firewall nat add chain = srcnat action = masquerade out-interface = ether1
For the last to do a test ping to the Gateway / to google.com, or if no reply then connect your Mikrotik dah ready to use. Alhamdulillah connect.
hopefully we can help ....
================================================== =======================
Actually there are other ways to configure the Mikrotik Router OS, namely through Winbox. However, because the pictures so I sangheuk bayaknya to post them. But what's the app because you can download it here.
Expresikan your ability as well as possible, probably within you are immortal-hidden talent. OK .. zzZzzzzz
================================================== =======================

Monday, July 4, 2011

Setting IP address Static di Ubuntu Server

Berikut adalah langkah-langkah untuk setting ip address static di ubuntu server 7.10 :
Untuk setting ip address sebenarnya kita juga bisa melakukannya di proses penginstallan ubuntu server 7.10. Akan tetapi apabila kita ingin merubahnya sewaktu-waktu ini bisa dilakukan dengan cara sebagai berikut

1.  Lihat dulu settingan ip address server kita dengan perintah ifconfig.

root@proxy-server:# ifconfig
eth0                       link encap:Ethernet  HWaddr 00:50:bf:5f:38:99         
                              net addr:192.168.10.130  Bcast:192.168.10.255  Mask:255.255.255.128  
                              inet6 addr: fe80::250:bfff:fe5f:3899/64 Scope:Link         
                              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1         
                              RX packets:16798307 errors:0 dropped:0 overruns:0 frame:0         
                              TX packets:18981324 errors:0 dropped:0 overruns:0 carrier:0         
                              collisions:0 txqueuelen:1000         
                              RX bytes:1224188667 (1.2 GB)  TX bytes:3304575481 (3.3 GB)        
                              Interrupt:21 Base address:0xd800

lo                          Link encap:Local Loopback         
                             inet addr:127.0.0.1  Mask:255.0.0.0         
                             inet6 addr: ::1/128 Scope:Host     
                             UP LOOPBACK RUNNING  MTU:16436  Metric:1    
                             RX packets:238 errors:0 dropped:0 overruns:0 frame:0     
                             TX packets:238 errors:0 dropped:0 overruns:0 carrier:0  
                             collisions:0 txqueuelen:0   
                             RX bytes:28677 (28.6 KB)  TX bytes:28677 (28.6 KB)

eth0 itu menandakan bahwa settingan ip address kita berada di eth0 (Lan Card 1) kalo misalnya kita menggunakan 2 Lan Card, maka akan ada eth0 dan eth1. Di ubuntu, interface yang terdeteksi dimulai dari eth0 dan seterusnya. Misal eth0 (Untuk Lan Card 1), eth1 (Untuk Lan Card 2) dan seterusnya.
baris yang tebal miring dan bergaris bawah di atas adalah settingan ip address kita. Disana terlihat settingannya :
                             ip address             : 192.168.10.130
                             netmask                : 255.255.255.128
                             broadcast             : 192.168.10.255

2. Untuk mengganti ip address tersebut kita edit file configurasi yang terletak di /etc/network/interface
     Untuk mengedit isi suatu file atau konfigurasi kita gunakan perintah vim

root@proxy-server:# vim  /etc/network/interfaces

 berikut adalah isi dari file configurasi ip address :

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static       
                   address 192.168.10.130                           --> ini merupakan ip address kita
                   netmask 255.255.255.128                        --> ini netmask nya
                   network 192.168.10.128                            --> ini network nya
                   broadcast 192.168.10.255                        --> ini broadcast nya
                   gateway 192.168.10.129                           --> ini gateway nya
                   # dns-* options are implemented by the resolvconf package, if installed       
                  dns-nameservers 222.124.204.34      --> ini dns servernya, digunakan apabila server kita ingin terkoneksi dengan internet

Untuk bisa mengedit file tersebut kita tekan dulu tombol Insert di keyboard, setelah itu baru kita bisa mengeditnya. Setelah selesai mengedit, tekan tombol Esc di keyboard untuk berhenti menulis atau mengedit. Kemudian ketikan :wq dan tekan Enter.
Penjelasan untuk :wq
- w adalah write   --> jadi disini kita akan menyimpan hasil setingan kita, atau istilahnya itu adalah sama dengan save
- q adalah quit      --> digunakan untuk keluar dari konfigurasi atau perintah vim tadi.
jadi apabila kita menuliskan bersamaan :wq berati kita menyimpah konfigurasi sekaligus keluar dari perintah vim
Namun apabila kita tidak mau menyimpan perubahan yang kita lakukan. Maka kita cukup ketikan :q!
Ingat harus di tambahkan dengan tanda seru (!)

3. Kemudian kita tinggal merestart service network interface tadi dengan perintah /etc/init.d/networking restart

root@proxy-server:# /etc/init.d/networking restart 
* Reconfiguring network interfaces...                                         
   ssh stop/waiting
   ssh start/running, process 2400                                                                           [ OK ]

Apabila sudah ada keterangan [ OK ], berati setingan kita sudah benar.
untuk melihat perubahannya kita gunakan perintaha apa? tau ..?

Sip bener, kita gunukan perintah yang tadi.

root@proxy-server:# ifconfig
eth0                  link encap:Ethernet  HWaddr 00:50:bf:5f:38:99         
                         inet addr:192.168.10.130  Bcast:192.168.10.255  Mask:255.255.255.128         
                         inet6 addr: fe80::250:bfff:fe5f:3899/64 Scope:Link         
                         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1         
                         RX packets:16798307 errors:0 dropped:0 overruns:0 frame:0         
                         TX packets:18981324 errors:0 dropped:0 overruns:0 carrier:0         
                         collisions:0 txqueuelen:1000         
                         RX bytes:1224188667 (1.2 GB)  TX bytes:3304575481 (3.3 GB)        
                         Interrupt:21 Base address:0xd800

lo                      Link encap:Local Loopback         
                         inet addr:127.0.0.1  Mask:255.0.0.0         
                         inet6 addr: ::1/128 Scope:Host     
                         UP LOOPBACK RUNNING  MTU:16436  Metric:1    
                         RX packets:238 errors:0 dropped:0 overruns:0 frame:0     
                         TX packets:238 errors:0 dropped:0 overruns:0 carrier:0  
                         collisions:0 txqueuelen:0   
                         RX bytes:28677 (28.6 KB)  TX bytes:28677 (28.6 KB)

Apabila ip addressnya sudah berubah sesuai dengan hasil konfigurasi kita tadi. Maka kita sudah berhasil mengubah ip address nya.
Mudah-mudahan yang mempraktekannya berhasil

Sumber :
Diri saya sendiri (Pengalaman)

Sunday, July 3, 2011

Rebecca Black tops Twitter trends for the first half of 2011

As Twitter this week hit and exceeded its 200-million-tweets-per-day milestone, the social network revealed the most popular topics to circle the microblogs during the first half of the year.
Every five days, around a billion tweets are catapulted around the interwebs.
The billions of 140-character posts contain "[e]verything about every topic imaginable," said Twitter, "whether it's a unique bird's-eye view of the Shuttle launch as seen from an airplane window or cheers of support for soccer teams in this year's Champions League tournament."
During the first half of the year, however, a particularly large portion of tweets have been about teenage viral sensation and "Friday" singer Rebecca Black.
Britney Spears's album Femme Fatale has captured the ears and fingers of Tweeps, as has former Two and a Half Men star Charlie Sheen.
On a more serious note, Twitterers used their online clout to disseminate news articles and opinions about the AH1N1 virus, former Egyptian President Mubarak, and Libyan political leader Gadafi.
Tears and grief were shared around the world on the social networking site as Twitterers learned of the May 11 earthquake and tsunami that devastated Japan, leading the terms "#prayforjapan" and "Fukushima" become some of the most tweeted topics during the first half of the year.
Every day, as "the world writes the equivalent of a 10 million-page book in Tweets," Twitter is keeping tabs on the most popular topics around the globe.
The following terms are the most popular trending topics on Twitter for the first half of 2011, divided into the two most popular categories:
World events/News
  1. AH1N1 - Swine Flu
  2. Mubarak - former Egyptian President
  3. Easter - Christian holiday
  4. Cairo - capital of Egypt
  5. #prayforjapan - sentiment following the March earthquake and tsunami
  6. Chernobyl - site of nuclear disaster in 1986
  7. Libia/Libya - site of an ongoing civil war
  8. Fukushima - Japanese nuclear power plant
  9. William & Kate - Newly named Duke and Dutchess of Cambridge
  10. Gadafi - Libyan political leader

Pop culture
  1. Rebecca Black - pop singer
  2. Femme Fatale - newly-released Britney Spears album
  3. Charlie Sheen - actor
  4. #tigerblood - hashtag popularized by Charlie Sheen
  5. Nate Dogg - rapper
  6. Anderson Silva - Brazilian mixed martial artist
  7. Tom & Jerry - famous cartoon
  8. Mumford & Sons - British rock band
  9. Bieber alert - referring to artist Justin Bieber
  10. Queen Gaga - referring to artist Lady Gaga

Friday, July 1, 2011

Cara Membersihkan Cache Proxy Squid

Seiring waktu, cache yang disimpan dalam proxy squid server sudah terlalu banyak dan ini perlu dibersihkan atau mungkin saja cache-nya rusak, karena jika ini dibiarkan maka kecepatan browsing akan terganggu dan bisa dikatakan melambat. Lalu bagaimana cara meng-clear cache proxy squid?

Squid yang saya install menggunakan Distro Linux Ubuntu sehingga command yang digunakan sesuai dengan apa yang ada di ubuntu. Untuk Distro Linux lain bisa disesuaikan commandnya.

1. Stop proses SQUID yang sedang berjalan
admin@proxy:~# sudo /etc/init.d/squid stop
atau
admin@proxy:~# sudo squid -k shutdown
2. Bersihkan semua direktori swap proxy
Biasanya disesuaikan dengan settingan pada squidnya masing-masing, misal untuk settingan
squid saya semua direktori swap ditempatkan di: /var/spool/squid

jadi untuk menghapus semua file dan direktori swap tersebut maka kita bisa menggunakan command;
admin@proxy:~# sudo rm -fdR /var/spool/squid/*
tunggu beberapa saat dan biarkan sampai proses clearing selesai.
3. Membangun kembali direktori swap yang baru

setelah kita membersihkan direktori swap, jangan lupa kita untuk membangun kembali yang baru agar PROXY kita dapat berjalan kembali seperti semula.

admin@proxy:~#chown proxy.proxy /var/spool/squid
admin@proxy:~# sudo squid -z
4. Menjalankan kembali Proxy kita
admin@proxy:~# sudo /etc/init.d/squid start
Itu yang dapat saya sampaikan, dan itu juga berdasarkan pangalaman saya. Apabila ada masalah atau pertanyaan sialahkan isi comment dibawah. Terimakasih.

Setting DHCP Ubuntu Server 7.10

Tahap Installasi dan Konfigurasi
Baiklah langsung saja, untuk mempersingkat waktu kita mulai saja acara perkawinannya. Eh.. kok malah kawin sih...

Maksunya kita mulai saja langkah-langkahnya...
Pertama, Siapkan makanan atau cemilan ke, biar gak boring coba deh sambil dengerin musik.
He...

Kedua, Nah ini dia.. misalkan kita sudah memiliki ubuntu yang sudah di install. Untuk installasi ubuntunya sudah saya jelaskan di postingan sebelumnya.

1. Mount dulu terlebih dulu CD ubuntunya dengan perinta:
admin@proxy:~$ sudo apt-cdroom add
2. Install dhcp3 yang tadinya belum ada melalui CD ubuntu, dengan perintah.
admin@proxy:~$ sudo apt-get install dhcp3-server
3. Tunggu sampai proses selesai, kemudian rubah konfigurasi file dhcp3-server pada direktori /etc/default/ dengan menjalankan perintah :
admin@projas~# sudo vim /etc/default/dhcp3-server
Cari baris yang berisi INTERFACES="?” kemudian rubah menjadi :
INTERFACES="eth0" (atau tergantung Ethernet mana yang akan anda gunakan, tetapi jika hanya terdapat 1 ethernet maka secara default ketikkan eth0)
 

4. Tahapan selanjutnya adalah merubah file dhcpd.conf yang terdapat pada direktori /etc/dhcp3, dengan menjalankan perintah berikut :
admin@proxy:~$ sudo vim /etc/dhcp3/dhcpd.conf
Cari baris perintah :


# option definitions common to all supported networks
option domain-name ?example.org?;
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;

Kemudian rubah menjadi :


# option definitions common to all supported networks?
#option domain-name ?example.org?;
#option domain-name-servers ns1.example.org, ns2.example.org;
#default-lease-time 600;
#max-lease-time 7200;

Kemudian cari lagi baris perintah berikut :


# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name ?internal.example.org?;
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}

Dan rubah menjadi :
5. Setelah semua komfigurasi tadi selesai, anda tinggal merestart dhcp-server tersebut dengan perintah :
admin@projas~# sudo /etc/init.d/dhcp3-server restart

6. Kita tinggal setting di komputer client dan tes dengan merubah ip address di client dengan DHCP.


Itulah mungkin yang bisa saya sampaikan, mudah mudahan membantu yah.... Saya sudah mencobanya dan berhasil :D . Mudah mudahan yang lain juga berhasi. Terimakasih, apabila ada pertanyaan silahkan isi comment di bawah.

Install Ubuntu 7.10 Server (Gutsy Gibbon)

Hay, now I will explain how to install Ubuntu 7.10 on your computer. To shorten the time, we just start the installation process.
Download ISO Ubuntu 7.10 from Ubuntu Gutsy Gibbon server CD, available here: http://releases.ubuntu.com/7.10/ubuntu-7.10-server-i386.iso
1. In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100 and the gateway 192.168.0.1. These settings might differ for you, so you have to replace them where appropriate.

2. Insert your Ubuntu install CD into your system and boot from it. Select Install to the hard disk

3. The installation starts, and first you have to choose your language: 

4. Then select your location:  


5. Choose a keyboard layout (you will be asked to press a few keys, and the installer will try to detect your keyboard layout based on the keys you pressed): 



6. The installer checks the installation CD, your hardware, and configures the network with DHCP if there is a DHCP server in the network:  




7. Enter the hostname. In this example, my system is called server1.example.com, so I enter server1
Now you have to partition your hard disk. For simplicity's sake I will create one big partition (with the mount point /) and a little swap partition so I select Guided - use entire disk (of course, the partitioning is totally up to you - if you like, you can create more than just one big partition, and you can also use LVM):


8. Select the disk that you want to partition: 

9. When you're finished, hit Yes when you're asked Write the changes to disks?:  

10. Afterwards, your new partitions are being created and formatted: 

11. Configure your system's clock. Normally UTC is a good choice:  

12. Create a user, for example the user Administrator with the user name administrator (don't use the user name admin as it is a reserved name on Gutsy Gibbon):




13. Now the base system is being installed:  



14. We need a DNS, mail, and LAMP server, but nevertheless I don't select any of them now because I like to have full control over what gets installed on my system. We will install the needed packages manually later on. The only item I select here is OpenSSH server so that I can immediately connect to the system with an SSH client such as PuTTY after the installation has finished:

15. The installation continues:  


16. The GRUB boot loader gets installed: 

17. The base system installation is now finished. Remove the installation CD from the CD drive and hit Continue to reboot the system:
After the computer is restarted, log in using a user that you created. That was the installation process, hopefully can help you. if you have any questions or problem can contact me by filling out the comments below. Thanks for your attention.



    Membuat Router Menggunakan Mikrotik Router OS

    Baiklah, dipostingan yang dulu saya sudah menjelaskan cara-cara konfigurasi di Mikortik RouterOS. Dan sekarang saya akan menjelaskan bagaimana cara menginstall dari awal dan setting langsung konek ke internet.
    MikroTik RouterOS™ adalah sistem operasi dan yang dapat digunakan untuk menjadikan komputer manjadi router network yang handal, mencakup berbagai fitur lengkap untuk network dan wireless.

    Seperti biasa untuk menginstall sebuah sistem operasi, kita harus setting dulu boot pertamanya ke CDROM, setelah itu kita masukan CD Mikrotik RouterOS nya. Dan komputer akan langsung membooting ke CD.

    1. Install Mikrotik OS
    – Ikuti petunjuk yang ada, gunakan syndrom next-next dan default
    – Install paket2 utama, lebih baiknya semua packet dengan cara menandainya (mark)
    – Setelah semua paket ditandai maka untuk menginstallnya tekan "I"
    – Lama Install normalnya ga sampe 15 menit, kalo lebih berarti gagal, ulangi ke step awal
    – Setelah diinstall beres, PC restart akan muncul tampilan login
    2. Setting dasar mikrotik
    Langkah awal dari semua langkah konfigurasi mikrotik adalah setting ip. Hal ini bertujuan agar mikrotik bisa di remote dan dengan winbox dan memudahkan kita untuk melakukan berbagai macam konfigurasi.
    – Login sebagai admin degan default password ga usah diisi langsung enter. Gantilah dengan ip address anda dan interface yg akan digunakan untuk meremote sementara.
    3. Settingan dengan menggunakan mode text.
    Mari kita mulai dengan asumsi proses install sudah berhasil.
    1. Install --> OK
    2. Setting IP eth1 222.124.xxx.xxx (dari ISP), perintah :
    ip address add address 222.124.xxx.xxx netmask 255.255.255.xxx interface ether1
    IP tersebut adalah IP public / IP yang yang ada koneksi Internet
    3. Setting IP eth2 192.168.1.254, perintah :
    ip address add address 192.168.1.254 netmask 255.255.255.0 interface ether2
    IP tersebut adalah IP Local anda.
    Sekarang lakukan ping ke dan dari komputer lain, setelah konek lanjutkan ke langkah berikutnya, kalo belum ulangi dari langkah no 2.
    4. Setting Gateway
    perintah :
    ip route add gateway=222.124.xxx.xxx (dari ISP)
    5. Setting Primary DNS
    perintah :
    ip dns set primary-dns=203.130.208.18 (dari ISP)
    6. Setting Secondary DNS
    perintah :
    ip dns set secondary-dns=202.134.0.155 (dari ISP)
    7. Setting Routing masquerade ke eth1
    perintah :
    ip firewall nat add chain=srcnat action=masquerade out-interface=ether1
    Untuk terakhir lakukan test ping ke Gateway / ke google.com, bila konek atau ada reply maka Mikrotik anda dah siap di gunakan. Alhamdulillah konek.
    mudah-mudahan bisa membantu....
    ======================================================================
    Sebenarnya masih ada cara lain untuk konfigurasi di Mikrotik Router OS, yaitu melalui winbox. Akan tetapi karena bayaknya gambar jadi saya sangheuk untuk mempostingnya. Tapi gak app karena kalian bisa mendownloadnya di sini.
    Expresikan kemampuan kalian dengan sebaik mungkin, mungkin saja di dalam diri kalian ada baka-bakat yang terpendam. OK.. zzZzzzzz
    ======================================================================

    Wednesday, June 29, 2011

    Redirect Router Mikrotik Ke Proxy Server

    Duh sebenarnya saya malu nih mosting artikel ini, karna saya belum bisa membuat Proxy Server. Terapi saya hanya menjelaskan tentang cara meredirekannya saja. Mungkin Sebentar lagi saya juga akan bisa membuat server Proxy, Amien. Ya udah deh... kita mulai saja caranya, pasti dari tadi dah gak sabarkan, he.. Ya udah deh, ini dia caranya :

    Pastikan sudah ada server Proxynya, he... ya dah pasti ada yah, kan mu nyeting itu.
    [admin@projas] > ip firewall nat add chain=dstnat in-interface=local src-address=!192.168.17.5 protocol=tcp dst-port 80 action=dst-nat to-addresses=192.168.17.5 to-ports=3128
    Keterangannya : 192.168.17.5 adalah IP address server Proxy. Dan kenapa kok di depannya pake tanda (!), ini kalo gak salah karena ada 2 network. Hel.. maaf yah.. kalo misalkan salah. Maklum baru networkergadungan.

    Trus yang kedua untuk tujuan server Proxy tersebut, caranya :

    [admin@projas] > ip firewall nat add chain=srcnat out-interface=local src-address=192.168.17.0/24 antion=src-nat to-addresses=192.168.1.1 to-ports=0-65535

    Keterangannya : 192.168.17.0/24 adalah network tujuan Proxy tersebut, dan 192.168.17.1 adalah IP address router.

    Kemudian lihat setingan tersebut, dengan cara :

    [admin@projas] > ip firewall nat print
    0  chain=dstnat in-interface=local src-address=!192.168.17.5 protocol=tcp dst-port 80 action=dst-nat to-addresses=192.168.17.5 to-ports=3128
    1 chain=srcnat out-interface=local src-address=192.168.17.0/24 antion=src-nat to-addresses=192.168.1.1 to-ports=0-65535
    Apabila setingan tersebut sudah ada di Mikrotik anda maka setingan sudah benar. Terima kasih sudah membacanya yah... maaf kalo misalkan gak jalan. Da aku mah sudah jalan. he....
    Sampai jumpa di postingan yang lain yah... trus kunjungi blog saya ini yah.....