Click Technology

Linux, Windows, Mac it's all good

iptables and Deluge..

September5

Deluge is a torrent client for Linux. It’s cool because, as well as being well laid out, it also does magnet links for downloads. From a command window, install it with this command..

sudo apt-get install deluge

Next, we need to adjust the ports used by Deluge. Go CTRL + p to open the ‘P’roperties page. Click Network.

Uncheck the “Use random ports” boxes in bot Incoming and Outgoing channels sections.

Enter a value range in the ports boxes. The port values here can be anything you like in the 50,000 to 64,000 value range. Let’s say we chose 55055 to 55065. Enter these two values in the From and To boxes for both incoming and outgoing port numbers.

Once that’s done, you need to configure your firewall. If you’re using iptables, you’ll need to open some ports to get it working. Here’s the comand list to get you working…

sudo iptables -A INPUT -p tcp -m tcp --dport 55055:55065 -m state --state NEW -j ACCEPT
sudo iptables -A INPUT -p udp -m udp --dport 55055:55065 -m state --state NEW -j ACCEPT
sudo iptables -A OUTPUT -p tcp -m tcp --sport 55055:55065 -m state --state NEW -j ACCEPT
sudo iptables -A OUTPUT -p udp -m udp --sport 55055:55065 -m state --state NEW -j ACCEPT

The commands above allow tcp and udp in and out to the port range chosen, as required. Once that’s done, Deluge should work perfectly.

Nice.

posted under Linux Tips

Email will not be published

Website example

Your Comment:

This is my website for short blog posts and interesting materials that are noteworthy or have some handy-tip value.