LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Iptables - Allowing BitTorrent & aMule Traffic (https://www.linuxquestions.org/questions/linux-networking-3/iptables-allowing-bittorrent-and-amule-traffic-577251/)

mistersnorfles 08-15-2007 07:56 AM

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

unSpawn 08-15-2007 03:40 PM

If it gets logged like you say, what characteristics do the dropped packets share?

fotoguy 08-20-2007 09:08 AM

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.


All times are GMT -5. The time now is 03:35 PM.