You could man iptables. You could install shorewall and use that. Or you could do what I do.
I install firestarter. On kde I do kdesu firestarter &. On Gnome you can just use the shortcut in the menu because by default it does gksu firestarter.
Go through the wizard.
Once done, go to the policy tab and right click the bottom box and choose to add rule. In the drop down click bit torrent. The Ktorrent default tcp/ip port of 6881 is there, but you can add the udp too (think it's 4444, check in Ktorrent preferences.)
Once doing that you can close Firestarter and not worry about seeing it again. Some folks like to have it run on startup (by default, not only does the GUI not start but without tinkering with its scripts it doesn't start successfully with the system).
It doesn't matter though. Firestarter has made its adjustments to the iptables netfilter firewall rules and your torrents should work properly.
I open kdesu firestarter & and in the preferences put a check in ICMP filtering. Makes ShieldsUp! happy.
|