LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2007, 12:00 PM   #1
*CLI>
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Rep: Reputation: 0
Azureus NAT issue / Setup = internet>gentoo>pc with azureus


This is my very first post to a Linux forum, which shows just how new I am to the penguin family.

The issue I am having is that Azureus, which is located on an Windows box on my network is having an issue with NAT. It used to not have this problem when I was terminating my cable internet connection with a Linksys router, and was able to jump in and open ports at will. But now that I have managed to set up a Gentoo box as a replacement for the Linksys, Azureus is having issues with NAT. I would guess that the problem has something to do with IPTABLES.

I have tried reading up a little bit on IPTABLES settings, but I dont seem to catching on quickly enough to allow me to quench my thirst for bit torrents.

Any help would be appreciated.
 
Old 07-25-2007, 12:27 PM   #2
gloriant
Member
 
Registered: Sep 2004
Distribution: Debian{Woody,Sarge,Etch}, UbuntuLTS6.06, SuSE{6.2,8.0}
Posts: 42

Rep: Reputation: 16
your linksys router probably had your windows machine as default nat destination causing all (outside)ports of the linksys router to be forwarded to the windows machine (thus putting your windows machine directly accessible, not so good).

So now you're having a linux firewall machine as router in between ?

You're wanting let's say port 6859 on the outside of your router to be forwarded to the same port of your windows machine (change it in your azureus preferences, or get it there what your machine is trying to use).

I'm not using iptable (anymore) but I guess you could be helping yourself googling for "port forwarding" iptable

I guess this (no guarantee) will help you:
Code:
# Azureus Port
portnr=6859
# ip-address of your windows machine.  
# Get it by Start->run->cmd
#   and execute "ipconfig" 
windows=192.168.0.101

insidedev=eth0
outsidedev=eth1

iptables -A PREROUTING -t nat -i ${outsidedev} -p tcp --dport ${portnr} -j DNAT --to ${windows}:${portnr}
iptables -A INPUT -p tcp -m state --state NEW --dport ${portnr} -i ${outsidedev} -j ACCEPT
info found on http://www.debian-administration.org/articles/73
 
Old 07-25-2007, 08:40 PM   #3
*CLI>
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
WOW. That was quite easy Gloriant. Thanks for the quick response. Might as well take advantage of you quick response with an appended question.

I set the -d ip address as my public ip that I get from my cable provider and the table setup works. BUT the IP is dynamic. Is there a way to set the table with a dynamic statement? Or will just leaving out the -d and leaving it as -i eth0 work?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Azureus / NAT - problems Ayabara Linux - Networking 2 01-22-2006 03:38 PM
Azureus and NAT error :( Peleus Linux - Software 1 11-08-2005 08:53 AM
Azureus Nat problems Hockeyfan Linux - Software 1 10-11-2005 08:29 AM
Azureus NAT Error... deac0ncho Mandriva 5 10-02-2005 05:11 AM
Azureus +firewall: UDP-discovery drop packetsport 8008 alt_http What is Azureus doing Emmanuel_uk Linux - Networking 0 08-31-2005 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration