Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 11-22-2012, 04:27 PM   #1
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 617

Rep: Reputation: 142Reputation: 142
port forwarding for bit torrent

Hi, my old FC6 box is becoming unreliable and I am moving its duties to a newer PC running Centos 6.

I have installed the Vuze bit torrent client. I have to open up access to a port to allow the client to operate. When I run "iptables -L" on the old box I see:

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:60666
ACCEPT tcp -- anywhere anywhere tcp dpt:60666
ACCEPT tcp -- anywhere anywhere tcp dpt:irdmi

I remember using a guide at the time which supplied the commands required to achieve the above access to port 60666. I can't remember those commands. Could someone help me out please?

Old 11-22-2012, 04:54 PM   #2
Registered: Mar 2004
Location: .SE
Distribution: Fedora, CentOS, Scientific Linux
Posts: 275

Rep: Reputation: 10
This is an example of what I use as forwarding a port and it seems to work.

iptables -t nat -A PREROUTING -p tcp --dport 11802 -j DNAT --to-destination
iptables -t filter -A FORWARD -p tcp -d --dport 11802 -j ACCEPT

Last edited by Basher52; 11-22-2012 at 04:55 PM.
Old 11-23-2012, 03:57 PM   #3
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 617

Original Poster
Rep: Reputation: 142Reputation: 142
Hi basher, I found the original reference and this did the trick.
/sbin/iptables -I INPUT -p tcp --destination-port 6881:6999 -j ACCEPT

Hit enter. This adds a rule to open TCP ports 6881 through 6999 in your firewall. These ports are required by bittorent and/or Azureus. Type:

/sbin/iptables-save > /etc/sysconfig/iptables

Hit enter. This saves the rule. You must also open udp port 6881 for Azureus. Type:

/sbin/iptables -I INPUT -p udp --destination-port 6881:6881 -j ACCEPT

Hit enter. This adds a rule to open UDP port 6881 in your firewall. Type:

/sbin/iptables-save > /etc/sysconfig/iptables
This is from a very old guide:

I found it was not as easy as that though. You have to open the port on the router also.

Thanks for taking the time to help


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
How to block Bit Torrent and Bit Commet like softwares using Squid mianmajidali Linux - Server 1 01-07-2010 01:28 PM
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 04:36 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
how to install bit torrent? or bit tornado 0o0 Linux - Newbie 6 04-21-2004 11:52 PM
bit torrent Q chivas Linux - Newbie 3 03-20-2004 01:56 AM

All times are GMT -5. The time now is 11:15 AM.

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