LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   open azereus port 6881 (https://www.linuxquestions.org/questions/linux-security-4/open-azereus-port-6881-a-261995/)

demmylls 12-02-2004 10:53 PM

open azereus port 6881
 
i'm using fedora core 3

how to open tcp port 6881 for azerues at my FC3 so that i can allows ppl to download..

i have redirected this port to my pc at my router.


how to do that to open this port?

Capt_Caveman 12-03-2004 12:06 AM

As root:

iptables -I INPUT -p tcp --dport 6881 -j ACCEPT

robebe 12-16-2004 08:16 PM

Quote:

As root:

iptables -I INPUT -p tcp --dport 6881 -j ACCEPT
Best Regards and Happy Holidays

How do you make this change permanent..???

Even tought I did this as a root I still get an error related to NAT while testing the port in the Azureus Config. Wizard. How do you chek if the port is really open..???

Thank you very much.

Capt_Caveman 12-16-2004 11:01 PM

To make iptables changes persistant on a Redhat system do: service iptables save

To check if the port is indeed open, do a port scan from outside the LAN or just use one of the free online portscans from sygate or grc.com. Also make sure that the torrent app is up with netstat -pantu

The above iptables rule applies only to a non-NAT stand-alone system. If you are behind a nat firewall, you need to forward the azureus ports to the internal box (IP x.x.x.x), like this:
Code:

iptables -t nat -A PREROUTING -i <external_interface> -p tcp --dport 6881 -j DNAT --to-destination x.x.x.x
iptables -I FORWARD -i <external_interface> -o <internal_interface> -p tcp --dport 6881 -j ACCEPT

May also need:
iptables -I FORWARD -i <internal_interface> -o <external_interface> -j ACCEPT



All times are GMT -5. The time now is 03:51 PM.