This is what I’ve done on my router website: Screenshot from 2022-06-30 22-45-16

And on Manjaro Linux:

❯ sudo systemctl enable --now ufw.service
❯ sudo ufw enable
  # NicotinePlus
❯ sudo ufw allow 2234/tcp
  # eMule
❯ sudo ufw allow 4662/tcp
❯ sudo ufw allow 4663/tcp
❯ sudo ufw allow 4664/tcp
❯ sudo ufw allow 4665/udp
❯ sudo ufw allow 4672/udp
❯ sudo systemctl restart ufw.service
❯ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
2234/tcp                   ALLOW       Anywhere
4662/tcp                   ALLOW       Anywhere
4663/tcp                   ALLOW       Anywhere
4664/tcp                   ALLOW       Anywhere
4665/udp                   ALLOW       Anywhere
4672/udp                   ALLOW       Anywhere
2234/tcp (v6)              ALLOW       Anywhere (v6)
4662/tcp (v6)              ALLOW       Anywhere (v6)
4663/tcp (v6)              ALLOW       Anywhere (v6)
4664/tcp (v6)              ALLOW       Anywhere (v6)
4665/udp (v6)              ALLOW       Anywhere (v6)
4672/udp (v6)              ALLOW       Anywhere (v6)

edit:

maycne.sonahoz

By default, on Linux, listening ports are closed unless you actually have a program actively listening to them. So there is no need to explicitly start a firewall and “open” them.

By default, on Linux, listening ports are closed unless you actually have a program actively listening to them. So there is no need to explicitly start a firewall and “open” them.

Testing gives an error: http://porttest.emule-project.net:81/ct_frame.php?lang=1036&tcpport=64121

Please wait while the ports of your eMule are being tested...


Testing IP: (xxx.xxx.xxx.xxx)

Obfuscation: Disabled

Starting TCP connection test...
TCP test failed! UDP test will not be performed.


Connection test finished.

Results in detail:

    TCP connection test failed.
    It was not possible, to establish a TCP connection to your eMule.
    Other users will only be able to connect to you with the help of a server, resulting in a low ID for you. While eMule still works, this will give you several disadvantages. Therfore it is highly recommended to solve this problem.

 
How to resolve port problems... Something is interfering with your network communications. There are two main reasons for this:

    If you are using a firewall, ensure that your firwall don't block the required ports! You might need to set a rule to allow the ports to be available.
    If you use a router, make sure that your router forwards the required ports to your local IP!


    You can find more details and guides [here in the online help.](http://www.emule-project.net/home/perl/help.cgi?rm=show_entries&cat_id=232)
  • Arthur BesseM
    link
    fedilink
    02 years ago

    btw, if you’re opening a port for p2p filesharing of copyrighted material you should be sure to inform yourself of the legal risks in your locality - in some places it is highly advisable to use a VPN for that purpose to avoid getting sometimes-legally-enforceable demands for money from copyright enforcers.

  • Arthur BesseM
    link
    fedilink
    0
    edit-2
    2 years ago

    I’m guessing that your computer doesn’t have its own public IP address, so, opening ports on its firewall doesn’t actually make them reachable on the internet yet. You’re probably behind a NAT gateway (eg, the modem/router your computer is connected to the internet via), so you need to open a port there and direct it to your computer.

    NAT allows your whole LAN to share a single public IPv4 address, which means that for inbound connections the gateway needs to be configured to know which LAN address to send inbound traffic on a given TCP/UDP port to.

    On your linux computer you can find out the IP address of your router with the command ip route |grep default, and then you can browse to that address in your web browser. You’ll most likely need its password (maybe it’s written on the bottom of your router/modem?). Once you’re logged in to its web interface, you’ll hopefully be able to figure out how to use it to open/allow/map/route ports to your computer.

    edit: it looks like the URL you’re using to test is referring to a different port than any of the ones you said you’ve opened with ufw, which might be a problem? also, btw, the ufw allow command takes effect immediately - you don’t need to systemctl restart ufw.service afterwards.