U

Visitor

 • 

5 Messages

Thursday, January 5th, 2023 5:59 AM

Closed

Port Forward Not Working...

I've set up port forwards in the past and they are still open and functioning. I opened three new ports on the app and checked them on yougetsignal.com and they are all closed... In fact, if I remove the port forward, they go back to filtered. How does "opening" a port close it?? Anyways, this is incredibly frustrating because I've had this issue on the past and I know a plethora of other have too.

Problem Solver

 • 

1.5K Messages

2 years ago

Port forwarding rule changes do frequently fail to propagate to their gateways, if that's what you have, and phone app is a horrid insecure way to handle it.

That being said, pilot error can happen just as often too.  What should you see?  Let's try some nmap on a web server.

Firewall rule to internal machine with web server running.  (works)

#nmap [ip] -p 80

PORT   STATE SERVICE
80/tcp open  http

Firewall rule to internal machine with web server stopped. (got past firewall, service is dead/not allowing traffic)

#nmap [ip] -p 80

PORT   STATE SERVICE
80/tcp closed  http

Firewall rule turned off to internal machine with web server running. (firewall doing it's job)

#nmap [ip] -p 80

Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn

Firewall rule turned off to internal machine with web server running, assume host is up.  (Undetermined state, no response at all, firewall working)

#nmap -Pn [ip] -p 80

PORT   STATE SERVICE
80/tcp filtered  http

Two other things can happen now too.  Let's say the port forward and web server is working.  If you port scan a lot of these gateways, a little adaptive firewall rule feature kicks in if you hit too many ports from the same location, sometimes just adjacent ports (portscan block).  Depends on how they wrote it.  You might be able to disable it, maybe you can't.  The rule may time out eventually. How long?  Could be set to anything, maybe even forever or until the next reboot.  When you do a port scan, only scan one port at a time with a delay between attempts.

The other common one is the service may allow local traffic, but not remote traffic.  Windows Defender Firewall and anti-virus is notorious for this. Sometimes a missed pop-up to allow traffic during an install, or incorrect selection. You can try shutting it off for a test, if that's what you are doing.  Also make sure the service is running on something other than a loopback interface (127.0.0.1) and is bound to the machine IP address instead.

Whatever you do, you are going to need some way to mitigate hostile traffic.  Also good if you only allow traffic from a specific location.  An open port will get hammered, you will get pwnd, and then you'll be one of the hijacked comcast machines I see scanning my firewall constantly.  Better, is to run a VPN server yourself if you want access to your network from a remote site.  Then at least you need an encryption key to even talk to the port, otherwise, it just says 'open|filtered'.  Was it there?  Meh.  It didn't respond.  It's poor target.

(edited)

Visitor

 • 

5 Messages

@flatlander3​ Thank you for your response! I suppose I should clarify that this for a device other than my computer. I have a device on the network right now that the ports open just fine. This is the second device, which is the same product, it's just this one's ports won't open. 

Problem Solver

 • 

1.5K Messages

2 years ago

Hard to debug on this end without knowing exactly what it is, and what service.  If you can open a port and can change a port scan result from 'filtered' to 'closed', the port probably is actually open.  I'd be looking at the device and the service running on it that case, and try to figure out what it's doing.  Reboot can be a good thing too sometimes with a firewall/gateway.  Make sure state tables are clean, and rules loaded right.

If the device has a command line, netstat or sockstat will show you services bound to which address (loopback or IP or both *:80 as an example) --  depending on the OS.  Harder with something like a smart device/outlet/lightbulb etc.  Nothing to work with on the device.

If you use wireshark on the same network, you might be able to sniff traffic and see if traffic can pass the firewall/gateway.

Visitor

 • 

5 Messages

@flatlander3​ It's a crypto NAS cloud service device. I have an internal IP address I can use to access the UI, and the device is connected via ethernet. If the device doesn't know which ports to use, would that be a reason the ports are closed after being "opened"? Because there isn't any traffic flowing through it yet? I haven't fully set up the device because 'up time' is incredibly important and if it goes online fully and the ports aren't open, I will lose contracts and rebates. It's called an Xa-Miner, which most people have not heard of. So, that probably doesn't help much. Might be Linux I think

Problem Solver

 • 

1.5K Messages

@user_9662eb​ Don't know how the miner is supposed to work, or how multiple devices are supposed to connect. 

You aren't going to be able to create a port forward rule in a gateway on a single port, that will redirect traffic to two different internal IP addresses with a gateway.  It won't know where and when to pick one internal device other the other on an inbound request to your external IP (if it even lets you create multiple rules for the same port).  If it does, 1st rule match wins usually on a firewall, but it would depend on what you are using.

Gotta be tech support, a forum for it someplace, or maybe a google group or blog for it somewhere.  You can't be the first.  Maybe there's another way to network it, or your need something else to manage multiple instances (load balance/traffic control) and your own local cluster of them.

(edited)

Visitor

 • 

5 Messages

I mean the IPs are both different and the ports are different as well. The first device is 4282, 4283, and 4285 which are open. This device is suppose to be 4292, 4293, and 4295. Either way, working with support right now. Hopefully get it figured out. Appreciate the help.

Visitor

 • 

9 Messages

2 years ago

@user_9662eb I posted what worked for me on my own post (before I noticed your post). Give my advice a go and see if it works for you:

https://forums.xfinity.com/conversations/your-home-network/port-forwarding-not-actually-opening-ports/63b791c2ebc7551628370291

Visitor

 • 

5 Messages

@AviationAtom​ Thank you. No luck though, unfortunately. 

forum icon

New to the Community?

Start Here