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: 26,953
Blog Entries: 54

Rep: Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732
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: KirraMail Live Email Server
Posts: 1,276

Rep: Reputation: 61
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


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