LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

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

Rep: Reputation: 40
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?

Thanks
 
Old 11-22-2012, 04:54 PM   #2
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 231

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

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

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

Original Poster
Rep: Reputation: 40
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:

http://www.vmaxx.net/techinfo/UNIX/l...an.htm#Azureus

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
 
  


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
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 07:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration