You are not logged in.

#1 2023-04-04 15:44:56

Akim
Member
Registered: 2021-08-04
Posts: 42

How to allow IN specific ports (?)

I am trying to resolve an issue with Hamachi where it says the connection is relayed instead of direct for some reason. I don't understand what that means, but I found the solution online that says:

I had the same problem. I edited the override configuration file:

Code:
sudo nano /var/lib/logmein-hamachi/h2-engine-override.cfg
and added the line:

Code:
Sock.UdpPort         44444
This will limit Hamachi to using this one incoming UDP - 44444 port. You can choose whichever port you want. I then opened my firewall configuration and added in rules to allow IN the following ports:

TCP - 12975
TCP - 32976
UDP - 44444

This allowed me to get a direct connection.

I don't understand the last part about allowing in the ports because I don't think I've ever done anything related to firewall, and as far as I'm aware, Arch doesn't have one by default. So what should I do to allow these ports?

Offline

#2 2023-04-04 16:54:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: How to allow IN specific ports (?)

Allow/open the ports on your router.

Offline

#3 2023-04-04 18:22:19

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,957
Website

Re: How to allow IN specific ports (?)

V1del wrote:

Allow/open the ports on your router.

Apparently there is a setting in Hamachi that lets it use upnp for forwarding ports automatically

Last edited by ugjka (2023-04-04 18:23:09)

Offline

#4 2023-04-04 18:43:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: How to allow IN specific ports (?)

What will hopefully still require you to allow upnp in the router and you should refreain from that and explicitly forward the relevant ports instead.

Offline

#5 2023-04-05 03:27:34

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,957
Website

Re: How to allow IN specific ports (?)

seth wrote:

What will hopefully still require you to allow upnp in the router and you should refreain from that and explicitly forward the relevant ports instead.

On most consumer stuff it is enabled by default

Offline

#6 2023-04-05 03:49:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,349

Re: How to allow IN specific ports (?)

Not here around.
There's a national security advisory from 2016 to disable it by default and I haven't seen any router where this was enabled by default since quite a while (I don't recall it for even a couple of years before that official statement)
Certainly not in ISP issued stuff.

Last edited by seth (2023-04-05 03:49:51)

Offline

#7 2023-04-06 06:37:29

mikapyon
Member
Registered: 2021-03-14
Posts: 5

Re: How to allow IN specific ports (?)

I wanted a way to test if port-forwarding is actually working, without depending on the software I open ports for & without depending on check-your-whatever-dot-com websites.
This method seems to fulfill all those needs:

$ port=123
$ ip=1.2.3.4
$ nmap $ip -Pn -p $port

Note the port must be open *and* active/used by a program.
Maybe it helps with testing (& hopefully someone corrects me or shares a better method).

Offline

Board footer

Powered by FluxBB