LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-15-2004, 11:02 AM   #1
dareino
Member
 
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82

Rep: Reputation: 15
Open ports


Hello....I am new to Slackware and could use some help...I currently have Slackware connected directly to "net.. All works fine..I also have an XP box behind that is running and accessing the "net fine too....I am having a problem trying to open a port for Bit Torrent that runs on the XP box. I am running NAT. Bit Torrrent runs ok but I get the Yellow Sad face indicating a NAT problem. So I need to open a port on the Linux side ,right?
I tried this command from another post but it does not work...
iptables -A OUTPUT -j ACCEPT -p udp --dport 6881 -i ethX...

root@server:/etc/rc.d# iptables -A OUTPUT -j ACCEPT -p udp --dport 6881 -i eth0
iptables v1.2.8: Can't use -i with OUTPUT

Try `iptables -h' or 'iptables --help' for more information.
root@server:/etc/rc.d#


I actually think I need to open the TCP port instead but get errors. Also where do I run this command? Hope this is enough info,,,,
thxs all
dareino
 
Old 03-15-2004, 12:16 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I haven't used bit torrent, but you'll likely have to
also open the incoming port, and the forwarding
with ESTABLISHED ...


Cheers,
Tink
 
Old 03-15-2004, 03:56 PM   #3
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
you don't have to open any port for that action,because bittorrent will open the port 6881.6882 etc.
while it is running.
 
Old 03-15-2004, 10:58 PM   #4
dareino
Member
 
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82

Original Poster
Rep: Reputation: 15
Moonloader- then why does my d/l stink and why does Azureus report that I have a NAT problem. Before I installed Linux as my gateway, Azures kicked butt, now its alot slower....so theres nothing I can do?
thxs
dareino
 
Old 03-15-2004, 11:29 PM   #5
dareino
Member
 
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82

Original Poster
Rep: Reputation: 15
ok, I found some useful info on another site...I ran this comand and VOLA, the NAT prob went away.
iptables -t nat -I PREROUTING -p tcp --dport 6881:6889 -j DNAT --to-destination <host>
So where do I add this , the rc.firewall script or since I ran it I dont need to add it to a script?
dareino
 
Old 03-16-2004, 01:47 AM   #6
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
Yes, just put it into a file that is executed on boot. rc.local or throw it in with the rest of your iptable rules.
 
Old 03-16-2004, 08:37 AM   #7
questone
LQ Newbie
 
Registered: Mar 2004
Location: Oshkosh, WI U.S.A.
Distribution: Mandrake 10.0
Posts: 17

Rep: Reputation: 0
Good info here. A get the concept but I am "lost intranslation"

Quote:
ok, I found some useful info on another site...I ran this comand and VOLA, the NAT prob went away.
iptables -t nat -I PREROUTING -p tcp --dport 6881:6889 -j DNAT --to-destination <host>
dareino
I execute that as such:
[steve@localhost steve]$ su
Password:
[root@localhost steve]# iptables -t nat -I PREROUTING -p tcp --dport 6881:6889 -j DNAT --to-destination <host>
bash: syntax error near unexpected token `newline'
[root@localhost steve]

And this is what I get. obviously im entering somthing wron but I don't know what.

2nd: If I get this to work how do I...

Quote:
Yes, just put it into a file that is executed on boot. rc.local or throw it in with the rest of your iptable rules.
I understand why I need to do that but I don't know how. I've on been using linux for a few days so details are helpful. Thanks
 
Old 03-16-2004, 11:53 AM   #8
dareino
Member
 
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82

Original Poster
Rep: Reputation: 15
I actually ran it this way: iptables -t nat -I PREROUTING -p tcp --dport 6881:6889 -j DNAT --to- 192.168.0.2
hope this helps
dareino
 
Old 03-16-2004, 01:53 PM   #9
questone
LQ Newbie
 
Registered: Mar 2004
Location: Oshkosh, WI U.S.A.
Distribution: Mandrake 10.0
Posts: 17

Rep: Reputation: 0
Thanks,
Azureus has given me the green light so to speak and so I am going to leave well enough alone at this point .

questone
 
  


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
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
open ports on linksys, i have ssh open but thats it PlatinumRik Linux - Security 1 07-07-2005 10:38 AM
Open ports! WWMPCDD Linux - Networking 6 10-28-2004 09:29 PM
How to open ports? kaboom Linux - Networking 1 01-05-2004 05:23 PM
open ports nakkaya Linux - General 2 02-05-2003 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:29 AM.

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