Christian Christmann wrote:
> Hi,
>
> I use Debian sarge with iptables v1.2.9. What I'm
> trying to do is to bind the ports 6882-6889 to my
> bittorrent programm called btdownloadcurses in order
> to increase the download rate.
> In google I figured out that these ports must be
> mapped to the application using iptables rules.
> Unfortunately, I could find any information
> how this rule must look like.
>
> Could you give me a hint.
>
> Are the iptables rules the only changes I have to
> do or are further steps required to have bittorrent
> working with the aforementioned ports?
>
> Thank you for your answer.
>
> Regards,
>
> Christian
Hi,
I assume that your firewall blocks everything, so in general, you will have
to "punch holes" by "opening" the specific ports. You can use an iptables
rule like
iptables -A INPUT -p tcp --dport 6882 -j ACCEPT
etc. or a port range:
iptables -A INPUT -p tcp --dport 6882:6889 -j ACCEPT
You will have to place this rule *in front of* all rules that specify any
sort of drop, reject etc.
If you actually want to use ports 6882 through 6889 and leave out 6881, you
should give the --minport parameter to btdownloadcurses, see manpage: by
default, the minport is 6881.
Good luck,
Robert
--
"Dieser Satz enthält exakt trei Feehler."
Douglas R. Hofstadter, Metamagicum
|