Viewing a single comment thread. View all comments

[deleted] wrote (edited )

2

NEOalquimista OP wrote (edited )

FEDORA FIREWALL

The default and active zone is "FedoraWorkstation"

$ sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-port=51413/tcp

$ sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-port=51413/udp

$ sudo firewall-cmd --list-ports

1025-65535/udp 1025-65535/tcp 51413/tcp 51413/udp

After setting these ports, I ran "sudo firewall-cmd --reload" and rebooted the PC. The entries were still there afterwards, so I proceeded to the Cable Modem.

CABLE MODEM SETTINGS:

Enabled Firewall (was disabled, which means port forwarding would have no effect) and configured Port Forwarding to my static local IP (setup through DHCP address reservation in router), port 51413. Then I rebooted the modem.

ROUTER SETTINGS:

After making my local IP static through DHCP settings, I went to "Virtual Servers", which is equivalent to port forwarding, and I created a new entry, adding the static IP, the Transmission port and both protocols (UDP and TCP). I then rebooted the router.

TRANSMISSION

Went to Transmission settings, "Network" tab, clicked to test if port was open, but it said it was still closed.

NOTE: I also connected directly to the Cable Modem (bypassing the router) while the modem had the proper port forwarding set. No effect either. The same cable modem from the same ISP configured on a Windows machine at my workplace managed to open the port. That's why I think Fedora's firewall might not be properly configured.

3

[deleted] wrote (edited )

1

NEOalquimista OP wrote

Yes, I run Fedora 26. Is it working with other distros? I just installed Ubuntu so I can test that, but it will have to wait a few hours. I have to go to my shitty capitalist work (which I expect to quit not long from now, haha). I'll try what you said.

3

NEOalquimista OP wrote (edited )

I have an idea. Instead of pointing the MODEM to the COMPUTER IP, I should point the MODEM to the ROUTER, and the ROUTER to the COMPUTER.

Sounds good, no? I'm trying now. Will update.

UPDATE: Test failed. Port still closed after restarting every device. I am officially out of ideas.

UPDATE 2: Your suggestion didn't work either. My last option is to make the router a bridge.

2

[deleted] wrote (edited )

1

NEOalquimista OP wrote

SUCCESS!

The port is open without passing through the router. You need to forward the port from the MODEM to the next node in your network, be it your computer or your router. Problem is I was using the wrong IP.

Example:

The MODEM uses the 10.x.x.x IP layout. The router uses 192.168.x.x layout. I need to point the MODEM to the ROUTER using the former's layout, which is 10.x.x.x.

Now when I plug in the router, I will have to point the router to the COMPUTER using the ROUTER layout, which is 192.168.x.x

3