One-to-One NAT with limited ports?

One-to-One NAT with limited ports?

One-to-One NAT with limited ports?
One-to-One NAT with limited ports?
2024-05-07 14:28:32
Hardware Version:
Firmware Version:

I have multiple static IP's with my ISP configured.  I have a Node on my network that is mapped to one of those static IPs.  I can't seem to get the firewall rule in place to only allow port 80 and 443 through.  I have tried both Gateway ACLs and Switch ACLs.  Can someone point me in the right direction?

  0      
  0      
#1
Options
11 Reply
Re:One-to-One NAT with limited ports?
2024-05-08 09:07:46 - last edited 2024-05-08 09:08:24

 

muzicman0 wrote

I have multiple static IP's with my ISP configured.  I have a Node on my network that is mapped to one of those static IPs.  I can't seem to get the firewall rule in place to only allow port 80 and 443 through.  I have tried both Gateway ACLs and Switch ACLs.  Can someone point me in the right direction?

Hi @muzicman0 

Could you provide the topology of your network, and share the screenshots of your One-to-One NAT setting page and ACL setting page?

 

Please also help to confirm the controller version, the models of your devices and the versions of them.

Best Regards! >> Omada EAP Firmware Trial Available Here << >> Get the Latest Omada SDN Controller Releases Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#2
Options
Re:One-to-One NAT with limited ports?
2024-05-08 14:45:07

I will try to get some images of that put together today.  I think I mostly have it working now, but what would be helpful is know the order in which various services are processed.  IE: does it go {WAN Interface} -> NAT -> Gateway ACL -> Switch ACL?

 

I will try to describe my topology:

 

Internet with multiple IP's -> ER707-M2 (Gateway) -> Omada 24 port switch

 

I have multiple AP's hanging off the switch.


DMZ: 192.168.2.0/24

Corp LAN(s): 10.1.0.0/16

PUBLIC_IP 2: One to One NAT to 192.168.2.3

 

The DMZ Network in question (we call it EngageNet) is simply defined as a VLAN with ACLs to allow no communication from the DMZ to the Corp LAN, but we do allow established communication INTO the DMZ from the Corp LAN

 

So, 10.1.0.0/16 -> 192.168.2.0/24 is allowed, but

192.168.2.0/24 -> 10.1.0.0/16 is not allowed unless initiated from the Corp LAN.

 

I currently have a Switch ACL allowing certain ports (80,448,3478,5900) from IPGroup_any to 192.168.2.3/32 and then a rule denying all traffic to 192.168.2.0/24.

 

This seems to work.

 

I also have a Gateway ACL that specifically blocks port 5900 on WAN_In so that VNC can't happen from the public internet, but it is allowed on the LAN.  This also seems to work.

 

What I can't figure out is how to selectively block traffic from a specific public IP.  

 

For instance, (not that I do, but) if I wanted to allow port 5900 on public IP 1, but not on Public IP 2 I am not sure how to do this.

 

  0  
  0  
#3
Options
Re:One-to-One NAT with limited ports?
2024-05-09 00:21:40

  @Hank21 Ignore the above.  I mostly have this working, but how can I create a Gateway ACL that ONLY applies to a specific static IP.  

 

An example would be that I have 2 IP addresses, and I want 4.4.4.1 to block port 443 (which it will by default), but I want 4.4.4.2 to allow 443.  Is that possible?  I have tried various things but none seem to work.

 

Everything I have found is just a blanket allow or deny 443 for every configured Public IP.

 

For reference here is what I have that is working, but again, it works on all 5 of my public static IP addresses.

 

 

 

 

  0  
  0  
#4
Options
Re:One-to-One NAT with limited ports?
2024-05-10 02:07:24

muzicman0 wrote

  @Hank21 Ignore the above.  I mostly have this working, but how can I create a Gateway ACL that ONLY applies to a specific static IP.  

 

An example would be that I have 2 IP addresses, and I want 4.4.4.1 to block port 443 (which it will by default), but I want 4.4.4.2 to allow 443.  Is that possible?  I have tried various things but none seem to work.

 

Everything I have found is just a blanket allow or deny 443 for every configured Public IP.

 

For reference here is what I have that is working, but again, it works on all 5 of my public static IP addresses.

 

 

 

 

Hello @muzicman0 

Have you set up the permit rule priority to the deny rule? For example, what if you create a permit rule as 4.4.4.2 port 443 first, and then deny rule for other IP?

Best Regards! >> Omada EAP Firmware Trial Available Here << >> Get the Latest Omada SDN Controller Releases Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#5
Options
Re:One-to-One NAT with limited ports?
2024-05-10 04:29:29 - last edited 2024-05-10 04:41:49

  @Hank21 where do I specify the wan ip?  I don't see a way to specify the WAN IP address, so I don't see how I would do that.  Am I missing something?  I only seem to be able to specify WAN IN, not WAN IN 4.4.4.2.

  0  
  0  
#6
Options
Re:One-to-One NAT with limited ports?
2024-05-10 10:05:33

 

muzicman0 wrote

  @Hank21 where do I specify the wan ip?  I don't see a way to specify the WAN IP address, so I don't see how I would do that.  Am I missing something?  I only seem to be able to specify WAN IN, not WAN IN 4.4.4.2.

Hi @muzicman0 

You can create the IP-Port group with 4.4.4.2 and put in on destination. The communication is bidirectional, it should achieve your request somehow.

 
Best Regards! >> Omada EAP Firmware Trial Available Here << >> Get the Latest Omada SDN Controller Releases Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#7
Options
Re:One-to-One NAT with limited ports?
2024-05-11 00:28:05 - last edited 2024-05-11 03:24:30

  @Hank21 Doesn't seem to work, or I am doing it wrong.

 

I have 1 to 1 NAT set up to translate 10.1.10.252 to 4.4.4.2, and DMZ is checked in the 1 to 1 NAT rule:

 

 

I have a gateway ACL that denies port 443 on 4.4.4.2:

 

 

 

 

But I am still able to reach the server at 10.1.10.252 on port 443 via 4.4.4.2 on the public internet.  Am I doing this wrong?

  0  
  0  
#8
Options
Re:One-to-One NAT with limited ports?
2024-05-14 10:11:37

Hi @muzicman0 

Sorry for my mistake. The current controller does not support selecting one of the WAN IP when configure the One to One NAT. This function is under development now, and we could expect this function will be implemented in the future. Thanks for understanding.

Best Regards! >> Omada EAP Firmware Trial Available Here << >> Get the Latest Omada SDN Controller Releases Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#9
Options
Re:One-to-One NAT with limited ports?
2024-05-15 18:52:02

  @Hank21 I am trying to come up with a way to block VNC on my public IP address, but this limitation makes it not work.

 

I tried to create a rule on the switch that 'allows' ALL traffice from the 10.0.0.0/8 IP addresses to the entire 192,168.2.0/24 subnet.  I then created a deny ANY IP to 192.168.2.3/32, but it doesn't work.  it just denies all traffic.  Which doesn't make sense to me.

  0  
  0  
#10
Options
Re:One-to-One NAT with limited ports?
a week ago

Hi @Hank21 

I have similar requirement to the OP to limit traffic to private IP with One-To-One NAT rule applied. Is this still not possible? Can you supply an ETA if it is known?

Thanks 

  0  
  0  
#11
Options