# up to 5 Bit-torrent connections
/sbin/iptables -A INPUT -p tcp -m state --state NEW --dport 6881:6886
-j ACCEPT
Your comment suggests you're trying to limit your BitTorrent client to
only accepting 5 incoming connections at any one time. Is that the case?
If it is:
- There'll be no limit on the number of outgoing connections
- It'll allow your client to accept incoming connections on 5 port
numbers, but you can have more than one computer connected to your
client on the same port at the same time; so this'll allow connections
to 5 ports, but won't limit the actual number of connections.
It will be needed for BitTorrent to work properly though since your
INPUT policy is DROP. Just want to check you realise that it won't limit
the number of connections (there are ways to do in iptables if that's
what you wanted).
Rgds,
-Steve
-
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html