Hacking Azureus and My OpenWRT router


                                AZUREUS AND OPENWRT

The following problem has been bugging for the past two days . I have  been using  bittornado for  my torrent needs ever since I was in to torrents. Bittornado is curses base and I tried Azureus which is java base for a while but I didn’t really tinker with  it that much . Anyways ,I have a router in between my computer and my cable modem . I have OPENWRT White Russian on it.  It’s really nice to have  a little bit of something  in between you and  wild net outside ..

My home computer network looks like this :

  • Debian Sid on a Pentium 3 500mhz
  • Linksys WRT54G ver 2.2 i think
  • Openwrt on the Linksys

I was trying Azureus and I notice that It keeps telling me that my Router is not set up right . I always get a either a DHT firewalled or NAT firewalled status on the lower status bar .I went about googling for solutions :

        1. I sshd to my router and added the ff line in my /etc/firewall.user:                                                                           iptables -t nat -A prerouting_rule -i $WAN -p tcp –dport 6880:6990 -j DNAT –to
          iptables        -A forwarding_rule -i $WAN -p tcp –dport 10000 -d -j ACCEPT
          iptables -t nat -A prerouting_rule -i $WAN -p udp –dport 6880:6990 -j DNAT –to
          iptables        -A forwarding_rule -i $WAN -p udp –dport 10000 -d -j ACCEPT
        2. I reloaded the firewall after that by :   #/etc/init.d/S45firewall restart
        3. however that didn’t work ,so ;I tried changing /etc/config/firewall    ,this file is used by NBD’s qos-scripts and according to the info I googled supposedly makes it easy to change the nat behaviour ..
          I added this line:   forward:dport=6880-69990:

            All this suppose to setup my my portforwarding , this supposedly forwards all incoming connections to my routers ports 6880-6990 to my computers port 10000. .
I tried to look at my computers netstat output but all I can see was that my port 10000 is open and when I used shields-up to probe my port 6880-6990 ,it was also open but still no NAT success with Azureus..

I also noticed that the netstat output shows that there are tcp6 and udp6 ports that are open . I didn’t know that I was using anything that has to do with ipv6 .. So I googled my friend google ..hehehehe .. and I came across this forum for redhat users … It suggested there to turn off aliases for ipv6 in /etc/modutils/aliases . That took care of the ipv6 problem when I rebooted no more ipv6 ports opened but i still have no nat for Azureus ..

I finally got a working /etc/firewall.user line that worked .after so many hours of tweaking . I read somewhere that azureus or bittorrent for that matter doesn’t like the usual ports opened coz some isp’s are blocking this ,so I thought about it.. Maybe just change the dport to something else and don’t change the forwarding rule to another port .

So my final rule that got me is this :

iptables -t nat -A prerouting_rule -i $WAN -p tcp –dport 60881 -j DNAT –to
iptables        -A forwarding_rule -i $WAN -p tcp -d -j ACCEPT
iptables -t nat -A prerouting_rule -i $WAN -p udp –dport 60881 -j DNAT –to
iptables        -A forwarding_rule -i $WAN -p udp -d -j ACCEPT

That dport flag on the prerouting rule is arbitrary .. You can change it to anything . After this I reloaded the firewall and to make sure ,I rebooted the router and also my computer ..
I also change the port settings on Azureus and voila! Magic! My azureus is going green eversince ..

A few pointers ,give it a little while if at startup its yellow .. it takes a while for it to change ..Also,there are some torrents out there that is bad ,meaning  ,there is no seeds and tracker site is down ,So if you run into this then it’s not really you thats the problem . Also, I don’t have to say this but if you’re torrenting you must be prepared to give,i mean don’t try to be a leech.. or you’ll get what’s coming to you ..

I hope this helps all those Azureus users out there. Coz ,this has got me some lost hours of sleep!


Nba Finals, dud!

I did not watch the game last nite and I wasn’t that disappointed that i didn’t get to watch that game .

I read the news in CNNSI and I was a little bit thrilled by the outcome,Miami lost. Revenge for the Detroit fans! heheheheh!

Anyway,the Nba finals is boring ..The news of a high tech satellite guided bomb blowing away a terrorist is much much better fare for me yesterday! hehhehe

Can you believe the way Zarqawi looked in the picture after his safe house was hit by 500 lb bomb ,and that was 2 500 lb by the way!

Mura mag g make-up-an nya g butang sa lungon! heheheh!

Kinsa naman sunod ana nila! Is Zarqawi number 3 ni Bin Laden .. sunod na number 2 then number 1 ..

Sus,lipaya ni tito george uy! gapugong pugong ra jud sya sa iya kalipay gahapon sa tv! hehhehe!

sure ko ba! nig talikod ato mu ambak2 to cya! hehehehe!

What Happened!

What happened to My Fave team the Pistons! Wa nako kaila nila.. I’ve always love the old pistons that wins games with their defense .

I can never forget the way they demolish the LA Lakers 2 years ago!That was one of the best all time .. It just proves the old abasketball adage that Offense wins games but Defense Wins Championships! Sadly this is how it all ends for my pistons!

My prediction to win it all  Dallas! oh how sweet Dirks Stroke is ..nobody ,as in nobody can stop dirk ..as for Shaq …hehehe ..i duno ,maybe the two will neutralize each other ..

Well see .. who will win ,,finesse or power? I go with finesse ..basketball aint suppose to be all about the Slam but how you kiss that layup in the glass or shoot that floater that beats all the shoot blockers! heheh ..ok
enuf meandering!

So long Pistons! for now  i’m cheering for the MAvericks! YOOOHOHO!

I am Ralph

Hi! My name is Ralph Bacolod. I’m from the Philippines. I wrote this blog to show my love for Linux.

I first heard of linux back in 1998. I was new to the web then. I was hooked the very first time I surfed the web. But I was dismayed that I was using a very poor OS . Who hasn’t experience the dreaded BSOD (Blue Screen Of Death).

That got me started in my quest. Surely there is something better than this.

I found linux!

My first linux was Redhat. It was easy to install .The hard part was repartitioning the hard disk. This was two years ago. I installed redhat on the computer at work. I got the cd from a guy in our local LUG.

This past weeks got me kinda busy. I was busy surfing the web. I was looking for a cheap laptop I could install linux on. I finally bought one from ebay .I got it for $229. It’s a IBM Thinkpad 770x. I haven’t gotten my hands on it yet. It’s still in the post office. I’m gonna pick it up this monday..

Before this laptop,I was basically squatting for my linux experience. I installed Debian on my girls PC and also my sisters PC.

I also bought books so that I could learn more about linux.