LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2007, 07:56 AM   #1
mistersnorfles
Member
 
Registered: Aug 2007
Distribution: Gentoo 2007.0
Posts: 51

Rep: Reputation: 15
Iptables - Allowing BitTorrent & aMule Traffic


I am trying to get bittorrent and amule working with iptables.

currently I have the following in my input chain

Code:
iptables -A INPUT -p tcp -m tcp --dport 6881:6889 -j ACCEPT 
iptables -A INPUT -p tcp -m tcp --dport 6969 -j ACCEPT


and in the output chain:

Code:
iptables -A OUTPUT -p tcp -m tcp --dport 6881:6889 -j ACCEPT
Both outgoing and incoming related/established are allowed, and everything else gets dropped and logged...

What do I need to add to this to make bittorrent work? I have been getting short-lived, sporadic connections, that only allow downloading (at very low speed) and do not upload at all.

As far as amule - I can connect, but always get lowID connections. what do I need to do?

Thanks,
Mr Snorfles
 
Old 08-15-2007, 03:40 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If it gets logged like you say, what characteristics do the dropped packets share?
 
Old 08-20-2007, 09:08 AM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Could you post your iptables script for us to look at, this will help us to get an idea of the rules that are already in place, you may have a stray rule somewhere that might be stopping traffic passing through.
 
  


Reply

Tags
amule, bittorrent, firewall, iptables


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
allowing traffic in some ports igordonin Linux - Networking 10 12-11-2006 08:46 AM
Apache & aMule, xMule, Bittorrent orvtech.com Linux - Software 3 02-27-2005 02:26 PM
iptables allowing all LAN traffic tebucky Linux - Security 1 11-04-2004 11:27 AM
IPtables & Bittorrent robot5x Linux - Security 8 09-14-2004 03:53 PM
allowing bittorrent through an ipchains firewall chucky88 Linux - Security 1 04-15-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:20 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