this post was submitted on 31 May 2024
20 points (95.5% liked)

Linux

48287 readers
637 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

os: xubuntu 24.04

firewall: ufw

torrent program: transmission

On transmission I opened port 51401

On a terminal I executed sudo ufw allow 51401, which opens both tcp and udp ports for both ipv4 and ipv6. This is called forwarding, right?

I'm following https://github.com/transmission/transmission/blob/main/docs/Port-Forwarding-Guide.md but apparently I still don't get it

ETA: thanks for your input, issue has been solved

top 10 comments
sorted by: hot top controversial new old
[–] just_another_person@lemmy.world 16 points 5 months ago (2 children)

No, you need to forward from your router as well.

Internet -> router -> machine -> firewall

You've only allowed the firewall on this machine to allow that port through. Forward that port from your router to your machine's IP and port as well.

[–] merompetehla@lemmy.ml 3 points 5 months ago (1 children)

turns out this was the right answer all along

[–] just_another_person@lemmy.world 1 points 5 months ago

Well, at least you got it working.

[–] merompetehla@lemmy.ml 1 points 5 months ago (2 children)

then how come I've always torrented without editing the router?

I've used privoxy, can that be the reason?

[–] forbiddenlake@lemmy.world 13 points 5 months ago

You can still torrent without forwarding a port, for example by only making outgoing connections. But that may limit your speed, and figuring out forwarding should help.

[–] just_another_person@lemmy.world 10 points 5 months ago (1 children)

Your client may have set a UPnP request that your router respects...hard to say. You didn't post any router config info, so it's hard to say what your environment looks like or was previously working. UPnP is frowned upon for security reasons, so it's best to just forward if in doubt.

[–] merompetehla@lemmy.ml 2 points 5 months ago (1 children)

I was still figuring out the right commands but thanks for your input

[–] frankfurt_schoolgirl@hexbear.net 3 points 5 months ago

It seems like that port needs to be accessible from the public Internet. Your local computer probably has at least one more firewall between it and the Internet, running on your router. You need to also forward the port on your router, which is what it says in the second half of the guide.

[–] deadbeef79000@lemmy.nz -1 points 5 months ago

Check if your ISP uses CGNAT for IPv4. If so, then you're out of luck and IPv4 pretty forwarding will never work.

See if your router has an external IP in the CGNAT 100.64.0.0/10 range.

If you have IPv6 you can add a firewall rule to your router to allow the forwarding port through and at least have other IPv6 peers connect.