Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-15-2004, 12:02 PM
|
#1
|
Member
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82
Rep:
|
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
|
|
|
03-15-2004, 01:16 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
I haven't used bit torrent, but you'll likely have to
also open the incoming port, and the forwarding
with ESTABLISHED ...
Cheers,
Tink
|
|
|
03-15-2004, 04:56 PM
|
#3
|
Member
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229
Rep:
|
you don't have to open any port for that action,because bittorrent will open the port 6881.6882 etc.
while it is running.
|
|
|
03-15-2004, 11:58 PM
|
#4
|
Member
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82
Original Poster
Rep:
|
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
|
|
|
03-16-2004, 12:29 AM
|
#5
|
Member
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82
Original Poster
Rep:
|
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
|
|
|
03-16-2004, 02:47 AM
|
#6
|
Member
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394
Rep:
|
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.
|
|
|
03-16-2004, 09:37 AM
|
#7
|
LQ Newbie
Registered: Mar 2004
Location: Oshkosh, WI U.S.A.
Distribution: Mandrake 10.0
Posts: 17
Rep:
|
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
|
|
|
03-16-2004, 12:53 PM
|
#8
|
Member
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82
Original Poster
Rep:
|
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
|
|
|
03-16-2004, 02:53 PM
|
#9
|
LQ Newbie
Registered: Mar 2004
Location: Oshkosh, WI U.S.A.
Distribution: Mandrake 10.0
Posts: 17
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|