Tuesday 4 December 2007

Setting Router's Firewall

Assalamualaikum,
Bittorrent become a very popular especially transferring @ downloading a very large files. But to make sure the connection your Bittorrent Client receive is clear, means you set your firewall so that the port your client use is allowed is, most of the time hard to configure, especially if you are using unpopular router or your router has complicated setting like D-Link. So here I want to maybe give a little help on how to setting your router’s Firewall. so you can download your Bittorrent faster.

I just want to point out one that for this tutorial, I use Windows XP SP2 and my Bittorrent Client is uTorrent. You can use any Bittorrent client as long as your Bittorrent Client use only one port (Azureus, Bitcomet). You can find it more on advantage and how to configure uTorrent here.


************************************************************************************************
The Router
I think it better if we understand more about router and what it do.

It well known if you want to share your internet connection, the easiest way is to buy a router. . The router will enables you to share your internet connection using only one IP-Address i.e. using one internet connection. Router will monitor all computers connected to it. In other words, it acts like small server, which is why it has its own IP-Address.

Depend on price, the router you buy normally only have a ‘basic’ setting to administer your network and internet connection. One of miss concept about the router is that, if you have 2 computers connected to the router and your internet connection is 2000kbps (~200KBps), each of you don’t necessary will have 1000kbps. It doesn’t divide your connection evenly. So you still capable to download at full speed even if 4 computers connected to your router, providing all the others don’t use internet at all. It like ‘1st come 1st serve’ concept. If your friend is using the entire upload speed, you will have trouble connected to internet. That why it important to make sure, if you share internet, you set your Bittorrent client or other P2P client accordingly.

Most router in the market are build-in firewall to protect your computer, but at the same time it make your Bittorrent and other P2P software like Kazaa and Limewire have slow download speed. It because the build-in firewall in your, as default, block unknown port. (Port 80 is normally should not be block by your router, Port 80 is use to surf internet). In this tutorial I want to show you how to open the port, so you can download faster, not only in download speed, but also the time needed to reach that speed.


************************************************************************************************
The 1st Step: Change to static IP

I recommend using set your IP to static instead automatic (default setting in Windows XP) because;
1. Your computer will connect faster to your router.
2. You’ll find later it easier to configure your Firewall setting (in your router) if you have more than one computer connect to your router.

The first thing to do before we begin is to know your router’s IP address. Easiest way is to look at manual, but unfortunately not all routers is supply with that info. To find out yourself, go to START – Run and type cdm. It will open the command prompt. After that you type ipconfig and press Enter, the following information will appear.



From here you know that only Local Area Connection 2 is connected to the router (it because I have 3 LAN-connection) and have an IP address of 192.168.0.111. The value of default gateway is actually your router address (192.168.0.10). To make sure you got the right IP, try type that numbers in your web browser (Firefox, Internet Explorer etc) and it should lead you to your router configuration page.

**Normal default setting for the router IP-Address is end with *.1, for example 192.168.0.1 or maybe 192.168.2.1. In my case I change my router IP-Address (you don’t have to do so). I explain why in NOTE at the end of this tutorial.

Now you can set your computer’s IP address. Go to control panel - Network Connections. Search for connected Local Area Connection (as above example, it should be Local Area Connection 2), then right click – Properties; choose Internet Protocol(TCP/IP). Its will look like this:



You can set your IP-address the same as before (192.168.0.111 in this example) or you can set your own number. Of course not just any number. In the example above, the valid IP-address range usually any number from 192.168.0.1 to 192.168.0.199. But you cannot choose 192.168.0.10 as your IP-address! (your IP-Address cannot be the same as router!!! ) So if your router is 192.166.4.1, you can normally choose from 192.166.4.2 -192.166.4.199.

But it easier if you just use this formula, 192.168.0.XX or 192.168.0.1XX, where the numbers is your router IP-address and the X or XX is any number from. Just remember your IP-address cannot same as your router.

*You don’t have to do this step to other computer connected to the router YET. Go to 2nd step first.


************************************************************************************************
The 2nd Step: Configure your Router Firewall

For DSL users, it very common having a router, but setting the router maybe a bit too difficult, especially for newbie. Because there are lot of different router in the market, and every single of them have different type of menu and setting, it not possible for me to cover all of them, but in my experience, the router’s setting almost the same, even when the menu is different. So if you familiar with the configuration, you will find your way after that.

Before we start, there are 2 things you have to decide
1. The port you want to assign to your and other computers. Normally for Bittorrent, the port between 40000 – 65000 is a good choice.
2. IP-address corresponding to the port, as the one port is only for one computer (that why it easier to use Bittorrent Client which use only one port) Remember the port cannot be shared!!!. You have to put other port for other computer.

Example:
Computer ::: IP-ADDRESS ::: PORT

Your Router ::: 192.168.0.1 ::: -
Your Computer ::: 192.168.0.10 ::: 65000
Computer 1 ::: 192.168.0.20 ::: 60000
Computer 2 ::: 192.168.0.30 ::: 55000
Computer 3 ::: 192.168.0.40 ::: 50000

Computer 1, 2 & 3 are computers connected to your router. Notice that I assigned the IP-addresses that easy to remember. I recommended if you leave some space (interval 10 for example) between each IP-addresses, as I have experience it caused problem later, somehow. But normally it should be no problem.
Just as reminder, until this moment I do not apply the 1st step to other computer YET. That will be done later.

Now we begin to configure the router. I have experience in configuring the router from D-Link, Netgear and Fritz!box. Although the menu is totally different, but the step is always the same, put the IP-addresses and the port for that particular IP-address (computer).

I list some of useful link for here (you should go to your router’s manufacturer website to get help):-
D-Link Router:- http://support.dlink.com/faq
Netgear:- http://kbserver.netgear.com/main.asp
Useful Link:- http://www.portforward.com/default.htm (Go here if you can find it on your router’s manufacturer website)

But you use a rare and unique router, or you find the tutorial from the website is hard to understand, don’t worry, there still hope…

For this tutorial, I using my router configuration as reference (I’m using Fritz!box 2070 – German)

Browse into your router’s menu. (to do so, type your router IP-address on your web browser). Try to find a setting/option that enables you to put your IP-address & your port. The name of the option should be different. (for example, in D-Link the option is under the name, Virtual server)



After you put all the IP-addresses and their ports, you can now begin to setting other computer following the 1st step (Change to static IP). After you change others computer’s IP-Adresses, test the setting by browse the internet.

After that you must set your Bittorrent client to receive information from this Port. (You can find how in this article, only for uTorrent)
Example (from above):- for Computer 2 which has IP-Address 192.168.0.33, the correct port is 55000.

*You can do the 2nd step to configure port for other application like eDonkey, Limewire and mIRC. Just remember, you have to assign different port than above, because the port can be use only for one application at a time
Example (from above):- To configure port for Limewire for Computer 2 (192.168.0.33), your can choice port like 45000 or maybe 20000.



NOTE:-
*As you notice my router-IP-address is not end with *.1. I change my router’s IP-address because I connected my router to other router so we can share files even though we using two different router with different internet connection. As a basic law in setting the IP-address in network is IP-ADDRESS CANNOT BE THE SAME, no matter if it IP-address for computer or router, it have to be different!

No comments: