View previous topic :: View next topic |
Author |
Message |
kreon28 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 08 Jul 2006 Posts: 165
|
Posted: Wed Aug 09, 2006 12:16 pm Post subject: NAT Problem |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
frostschutz Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9097703434bddef6e5b49c.png)
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Wed Aug 09, 2006 1:32 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
JohnDoe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 15 Dec 2003 Posts: 96 Location: Lisbon, Portugal
|
Posted: Wed Aug 09, 2006 6:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kreon28 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 08 Jul 2006 Posts: 165
|
Posted: Thu Aug 10, 2006 8:44 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jure1873 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 09 Feb 2006 Posts: 183
|
Posted: Thu Aug 10, 2006 9:20 am Post subject: |
|
|
then you should have port forwarding set up on your router |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kreon28 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 08 Jul 2006 Posts: 165
|
Posted: Thu Aug 10, 2006 11:23 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Monkeh Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/158504026146c5220a4feda.png)
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Thu Aug 10, 2006 12:40 pm Post subject: |
|
|
It probably uses UPnP under XP. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
frostschutz Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9097703434bddef6e5b49c.png)
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Thu Aug 10, 2006 1:00 pm Post subject: |
|
|
Azureus can use UPnP too |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jure1873 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 09 Feb 2006 Posts: 183
|
Posted: Thu Aug 10, 2006 2:32 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|