Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NAT Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kreon28
Apprentice
Apprentice


Joined: 08 Jul 2006
Posts: 165

PostPosted: Wed Aug 09, 2006 12:16 pm    Post subject: NAT Problem Reply with quote

Hi,

I tkink I've got NAT Problem - my azureus says.
Well, I did:
Code:

iptables -A INPUT -p tcp -i eth0 --dport 6681 -m state --state NEW -j ACCEPT

and
Code:
iptables -A INPUT -p tcp --destination-port 6881:6999 -j ACCEPT


and that
Code:
 iptables -A OUTPUT -p tcp --source-port 6881:6999 -j ACCEPT


After testing NAT in azureus it is still nothing.
I don't know what's going on..

P.S Iptables doesn't write any errors
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Wed Aug 09, 2006 1:32 pm    Post subject: Reply with quote

These iptables rules may not contain errors, but they do not make sense either way. ACCEPT rules are incomplete and have an effect only if you're otherwise dropping them anyway. What you're looking for is probably port forwarding / DNAT.
Back to top
View user's profile Send private message
JohnDoe
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2003
Posts: 96
Location: Lisbon, Portugal

PostPosted: Wed Aug 09, 2006 6:17 pm    Post subject: Reply with quote

In the continuation of the previous post you probably need something like this

Code:
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 6681 -j DNAT --to-destination <machine_ip>:6681
iptables -t nat -A PREROUTING -i eth0 -p udp -m udp --dport 6681 -j DNAT --to-destination <machine_ip>:6681

<machine_ip> is obviously the ip of the machine running Azureus.
I tried to adapt the rest of the configuration to what you stated so it should work. I haven't used Azureus for a (long) while but as far as I remember it used to work correctly.
Back to top
View user's profile Send private message
kreon28
Apprentice
Apprentice


Joined: 08 Jul 2006
Posts: 165

PostPosted: Thu Aug 10, 2006 8:44 am    Post subject: Reply with quote

JohnDoe wrote:
In the continuation of the previous post you probably need something like this

Code:
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 6681 -j DNAT --to-destination <machine_ip>:6681
iptables -t nat -A PREROUTING -i eth0 -p udp -m udp --dport 6681 -j DNAT --to-destination <machine_ip>:6681

<machine_ip> is obviously the ip of the machine running Azureus.
I tried to adapt the rest of the configuration to what you stated so it should work. I haven't used Azureus for a (long) while but as far as I remember it used to work correctly.


Hmm, still nothing. Maybe we're working with wrong idea.
I think I didn't describe the situation.
My computer is connected to router and router is working with ADSL modem.

P.S I read Azureus Wiki and also tried to change the ports from 6681 to 52525 but that changed nothing.
Back to top
View user's profile Send private message
jure1873
Apprentice
Apprentice


Joined: 09 Feb 2006
Posts: 183

PostPosted: Thu Aug 10, 2006 9:20 am    Post subject: Reply with quote

then you should have port forwarding set up on your router
Back to top
View user's profile Send private message
kreon28
Apprentice
Apprentice


Joined: 08 Jul 2006
Posts: 165

PostPosted: Thu Aug 10, 2006 11:23 am    Post subject: Reply with quote

jure1873 wrote:
then you should have port forwarding set up on your router


Hmm, is it necessery? Under XP, other torrent client - BitComet works perfectly.
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Thu Aug 10, 2006 12:40 pm    Post subject: Reply with quote

It probably uses UPnP under XP.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Thu Aug 10, 2006 1:00 pm    Post subject: Reply with quote

Azureus can use UPnP too
Back to top
View user's profile Send private message
jure1873
Apprentice
Apprentice


Joined: 09 Feb 2006
Posts: 183

PostPosted: Thu Aug 10, 2006 2:32 pm    Post subject: Reply with quote

Try to check if you can access that port from the internet on a site like grc shields up and if you can't then set up port forwarding on your router on a high port (those around 6889 can get blocked by your isp) and then test with grc shields up again. Oh and I think upnp is evil, especially under windows.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum