I have a couple or so devices which I connect to the MT router, it’s always only one device at a time via ethernet. I sometimes need to connect to them from the outside and I have the following rules:
I was always under the impression you can only forward the packets through NAT to 1 host. This seems to be backed up by it not allowing you to put in a range or subnet. Can’t you give your individual devices different IP’s then assign varying port numbers so you can access all of them?
Steve, it does allow me to put a range or subnet, it doesn’t reject it as misconfiguration. I’m not entirely sure how to achieve assigning individual IPs, I’d assume it’s from IP > DHCP Server > Leases.
You are doing port forwarding correct? You can only forward the port to 1 device not multiple or a range. To put this into a “real world” response. If you “could” forward the port to the range if you SSH’d and the router forwarded this to multiple devices then you’d have multiple devices try to respond to you simultaneously, see how that doesn’t work?
OP how many devices do you have that need to be forwarded to?
Randomly just tried this and yeah it did accept it with no fuss, took a /24 no problems. OK so yeah not too understanding why it is doing that. I wouldn’t have thought there would ever be a need for that.
Acutally i do not agree. There is no logic in this request if we are talking about unicast. In Anycast it would make sense. Like, @Steveocee explained, in common scenarios it is useless to have such option, but a lot of routers are used in more complex environment, and still we all have the same feature-set, right?
Yeah, I understand why it doesn’t look logical but in my case I only connect one device at a time and I have to go through the minor inconvenience of changing the rules for the different IPs that they’re assigned, I have only 2 or 3 between which I swap the cable every now and then.
If you are only connecting 1 device at a time then you can leave it forwarding to 1 IP, each device uses the same IP when it connects and you only have 1 device connected. No problems.
Whoa, i was questioning myself this same question, but actually you wrote it. I thought a bit about this, but pretty much couldn’t get to any common scenario.
Also, just thinkig loud, how would connection tracker record multiple NAT translations using same port?
I can’t seem to make it work, I mean I set two different static IPs for two devices: 192.168.88.235 and 192.168.88.236, then I set up two NAT rules from Firewall menu, but unless I disable one of the rules it doesn’t work.
In other words, what I’m wondering is, is it possible to make the router give the same IP address to different MAC addresses!? Again, we’re talking about a situation when only one device is plugged at a time.