Port forwarding: how many ports to forward?

General support for problems installing or using Deluge
Post Reply
ray

Port forwarding: how many ports to forward?

Post by ray »

I am using deluge for about one week(on Ubuntu) and I find it extremely useful. Thanks a lot to the developers for their excellent work.

My question is, how many ports do I need to forward from the router, currently I have forwarded only one port but I am confused. I googled a lot but it only resulted in increased confusion.

thanks in advance.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Port forwarding: how many ports to forward?

Post by johnnyg »

it depends if you're telling deluge to use a single port or a range.
Preferences->Network will have the port range you're telling deluge to use for incoming connections (this is what you want to forward).
you can make deluge only use one port but the start and end ports of the range being the same (i.e. 54678 - 54678)
Make sure you forward both tcp and udp (udp is used for DHT).
ray

Re: Port forwarding: how many ports to forward?

Post by ray »

johnnyg wrote:it depends if you're telling deluge to use a single port or a range.
Should I tell deluge to use more than one port or is a single port enough?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Port forwarding: how many ports to forward?

Post by johnnyg »

single port is fine, range is only useful if you have several applications that want to use the same port (or port range).
negge
Member
Member
Posts: 32
Joined: Tue Jul 29, 2008 5:35 am

Re: Port forwarding: how many ports to forward?

Post by negge »

One port is perfectly enough, more is just an unnecessary security risk.
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: Port forwarding: how many ports to forward?

Post by andar »

negge wrote:One port is perfectly enough, more is just an unnecessary security risk.
How so?

libtorrent will only ever use one port in the range and will only try another if the one selected is unavailable.
loki
Moderator
Moderator
Posts: 787
Joined: Tue Dec 04, 2007 3:27 pm
Location: MI, USA

Re: Port forwarding: how many ports to forward?

Post by loki »

I think meaning if you set a port range in the router/firewall it could pose a greater risk versus if it was just a single port.
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: Port forwarding: how many ports to forward?

Post by andar »

loki wrote:I think meaning if you set a port range in the router/firewall it could pose a greater risk versus if it was just a single port.
If there is nothing listening on those forwarded ports it wouldn't matter.. The connection would just be dropped.
negge
Member
Member
Posts: 32
Joined: Tue Jul 29, 2008 5:35 am

Re: Port forwarding: how many ports to forward?

Post by negge »

loki wrote:I think meaning if you set a port range in the router/firewall it could pose a greater risk versus if it was just a single port.
That's what I meant.
Post Reply