LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2007, 12:56 PM   #1
Lerocknock
Member
 
Registered: May 2007
Posts: 30

Rep: Reputation: 15
I dont know how to port forward


Ive been trying to get fix the firewalled/natted problem on bittorrent for a long time and I dont know how yet. I use fedora core 6 and Im not sure if I have to put something in my iptables file or what. I dont have a router so I think its my firewall that fedora uses. Can someone tell me how to quickly and easily fix this so I can use bittorrent or azureus with no nat/firewall problem. I think I just need to forward the port but dont know how to do this Im a new to linux Ive been trying so many things I searched google and everything is complicated just to do forward a port. thanks for any help.

Last edited by Lerocknock; 06-05-2007 at 01:04 PM.
 
Old 06-05-2007, 02:52 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do you have just one computer, or is the Fedora 6 computer sharing its internet connection?

If you only have one computer, then you don't use NAT. You do need to open the port in the firewall that you need to use.

The "quick and easy" way to do it is using Fedora's GUI firewall config program.
system-config-securitylevel

Last edited by jschiwal; 06-05-2007 at 02:57 PM.
 
Old 06-05-2007, 03:06 PM   #3
Lerocknock
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
yes just 1 computer. I think disabling the whole firewall is a bad idea but your right would be a quick and fast way but I prefer to just forward the port if thats really all I have to do. I also no the port number if that helps. Any way I can just forward the port to accept connections on the firewall?
Do you know how I can do this and do I do it on the iptables file?
thanks.
 
Old 06-05-2007, 03:11 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I didn't suggest disabling the firewall. I suggested opening the particular port you want to use. Otherwise it will be blocked for inbound connections. You use NAT if you want that port to be forwarded to a different computer on the LAN. In other words, the destination IP address is Translated to that of the other computer. Since you don't have another computer, you don't need to do that. If you did have a 2nd computer that you wanted to use for bittorrent, the port that bit torrent uses would need to be opened in the second computer's firewall as well.

Last edited by jschiwal; 06-05-2007 at 03:14 PM.
 
Old 06-05-2007, 03:24 PM   #5
Lerocknock
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
your right sorry. Can you give me an example of what I should put in the customize section. I put 6888 in the other under customization section is this right?

Last edited by Lerocknock; 06-05-2007 at 03:30 PM.
 
Old 06-05-2007, 05:40 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I use SuSE, so mine might be different. If there is a selector for either tcp or udp, then just enter the port number. If not, you may need to enter 6888/TCP or 6888/UDP. I'm sure that you can find documentation on your system for the "system-config-securitylevel" program.

There may be one tcp port and another udp port you need to open. Check the README file or help for the torrent client.

Another thing to check is if access to the client is controlled by xinetd. Look in /etc/xinetd.d/ for a file with torrent in the name. I doubt if that is the case in this case (pun intended), but it is possible. Some software packages will install a file in /etc/xinetd.d/, and you may simply need to change the line that turns the service off. One example is samba swat, for configuring the samba server through a web interface (on localhost:901).

On second thought, some bittorrent clients (like ktorrent) have a web interface you can use. This feature may need to be enabled before you can use it. This would be more useful if you set up a media pc box and you normally access it remotely.

Last edited by jschiwal; 06-05-2007 at 05:42 PM.
 
Old 06-05-2007, 07:48 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by Lerocknock
your right sorry. Can you give me an example of what I should put in the customize section. I put 6888 in the other under customization section is this right?
I powered up an old laptop that I have Fedora Core installed on.

In the system-config-security program, Click on the "Firewall Options" tab. Click on "Other Ports" and then enter the port number. There is a drop down box to select either TCP or UDP. Refer to documentation for the torrent program on what port number should be open and whether to use tcp or udp..

For some protocols, both tcp and udp are listed but only one is actually used. An example of this would be microsoft-ds. Only 445/TCP is used.
 
Old 06-07-2007, 07:48 PM   #8
Lerocknock
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
I did that and nothing changed. It still says probably firewall/natted. I put it for tcp and udp. Is there something Im missing here?
I also tried with the utorrent on wine and it says Error! Port 52657 does not appear to be open.
 
Old 06-08-2007, 06:12 AM   #9
UK MAdMaN
Member
 
Registered: Jul 2004
Location: Manchester, England
Distribution: Gentoo
Posts: 211

Rep: Reputation: 30
Are you using a router or a modem (jschiwal worded it a little incorrectly)? If a router, you'll need to forward the port on the router. If you're in a university dorm, you'll need to talk to the network admin about setting up the university's firewall for you.
 
Old 06-08-2007, 06:18 PM   #10
Lerocknock
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
no Im not using a router Im just using fedora core 6. Im starting to think its my firewall I have to configure?

Last edited by Lerocknock; 06-08-2007 at 06:21 PM.
 
Old 09-13-2007, 06:27 PM   #11
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

This is a worthwhile read...http://firewall-jay.sourceforge.net/faq.php
 
  


Reply



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 port forward talusog Linux - Newbie 5 03-28-2007 01:57 AM
A way to forward an IP/Port to another system's IP/Port astroboy5714 Linux - Networking 6 01-26-2004 05:45 PM
port forward help please indy317 Linux - Networking 2 07-18-2003 02:21 PM
Port forward help please hanxuerui Linux - Networking 6 05-05-2003 01:20 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration