Score:0

How does this data center setup work? Public gateway IP can route to unique subnet of public addresses?

ly flag

we haven't been able to figure this out whatsoever, and this data center has no real support that explain how this is working. This is an unfamiliar setup to us but they assure us it's standard for them.

We purchased a range of public IP addresses for our drop. They provided us this info:

  • Fiber link

    • Block: 152.160.28.76/30
    • Subnet: 255.255.255.252
    • Gateway: 152.160.28.77
    • Usable: 152.160.28.78
    • DNS1: 216.234.97.2
    • DNS2: 216.234.97.3
  • LAN (public IP address range we purchased)

    • LAN: 209.124.48.80/28
    • GW: 209.124.48.81
    • USABLE: 209.124.48.82 - .95
    • SUBNET: 255.255.255.240
    • DNS1: 216.234.97.2
    • DNS2: 216.234.97.3

Our firewall (SonicWall TZ 470) is plugged up to the fiber drop for its default WAN. I was instructed to setup the WAN interface as follows:

  • WAN interface (X8)
    • Zone: WAN
    • IP Address: 152.160.28.78
    • Subnet: 255.255.255.252
    • Default Gateway: 152.160.28.77
    • DNS Server 1: 216.234.97.2
    • DNS Server 2: 216.234.97.3

However, we were told that public traffic shouldn't actually route to 152.160.28.78. We should still use the public IP address range we were given. Which... works kind of? I have no idea how and would love to know what's going on, because now that I need to use more than one of these public IP addresses, I'm not sure what to do.

So we have our current X0 LAN, which is connected directly to a VM host with three VMs, and a NAT rule that seems to get one of these public IP addresses to it:

  • LAN Interface X0
    • IP Address: 10.20.0.1
    • Subnet Mask: 255.255.0.0
    • Default Gateway: (0.0.0.0)
  • VM Host server
    • IP Address: 10.20.0.100
    • Subnet: 255.255.0.0
    • Gateway: 10.20.0.1
  • Server-1
    • IP Address: 10.20.0.101
    • Subnet: 255.255.0.0
    • Gateway: 10.20.0.1
  • Server-2
    • IP Address: 10.20.0.102
    • Subnet: 255.255.0.0
    • Gateway: 10.20.0.1
  • Server-3 (Reverse Proxy)
    • IP Address: 10.20.0.103
    • Subnet: 255.255.0.0
    • Gateway: 10.20.0.1
  • NAT rules
    • Destination 209.124.48.83 -> Destination 10.20.0.101
    • Source 10.20.0.101 -> Source 209.124.48.83

Server-2 and Server-3 are new additions. The NAT rules have worked fine to route that public IP address to Server-1.

I tried adding NAT rules for 209.124.48.84 <-> 10.20.0.103. This didn't seem to work. Nor do I know why/how it would. It sometimes took DNS traffic routed to 209.124.48.84 and sent it to Server-1 at 10.20.0.101 somehow. And yeah, it all becomes cloudy at this point. I wouldn't expect two different public IP addresses to effectively travel from one interface to one NIC of a VM Host.

So anyhow, what I'm looking to accomplish:

We split a website from Server-1 (IIS server) to Server-2 (Ubuntu/Apache). On Server-1, the website runs in a subdirectory of the main host domain (www.website.com/app). We'd like to preserve this by using a Reverse Proxy server to direct the /app location to Server-2, and everything else to Server-1.

Server-1 also hosts several different host domains. I'd prefer not to use the Reverse Proxy for every single one of these sites. I just want to send www.website.com DNS to the Reverse Proxy, and everything else (ex: www.otherwebsite.com) can still go directly to Server-1.

Unfortunately, I couldn't get any public traffic effectively routed to the Reverse Proxy, which I figure would need to involve using another one of these public IP addresses.

So my questions are:

  • What is this setup I've been given by the data center? Is there some concept here I've never heard of at play? I'd like to understand how this is working and how I can effectively utilize these IP addresses.
  • Is it possible with this setup to accomplish the above? Would I need more hardware? More connections? The VM Host has 4 NICs. I was thinking of plugging X1 of the firewall into NIC2 of the VM Host server, and perhaps I could get the routing to work better if I NAT another public IP address to a different subnet/interface? It's hard to say because I genuinely have no clue how the current public IP address is even working at all.

And, apologies if stuff like this has been asked/explained before. Unfortunately I'm not sure what all is at play here to even search effectively for it.

Score:1
cn flag

This setup means that on the interface facing you they have your primary range (152.160.28.76/30) and a secondary (209.124.48.80/28).

While this generally means that you should route traffic to an appropriate gateway via policy routing, in most cases it is not needed as 152.160.28.77 and 209.124.48.81 is likely a same router and traffic traveling upstream has no indication of gateway IP in any case (it uses ARP to get where it needs to go).

I'm not sure about SonicWall capabilities, but on a normal router you set up a secondary address on uplink port from 209.124.48.80/28 range and then do NAT as required.

addMitt avatar
ly flag
I'm trying to read my way through this article, but it sounds like this might be their answer to the situation? https://www.sonicwall.com/support/knowledge-base/how-can-i-configure-secondary-ip-address-on-wan-interface-for-firewall-management-purpose/170504637235916/ Not entirely sure if this constitutes a "1-2-1 NAT policy" situation or not though.
Peter Zhabin avatar
cn flag
@addMitt This is exactly the case given SonicWall limits
addMitt avatar
ly flag
Am I correct to understand then, that I can have a single WAN, but NAT multiple different public IP addresses in the WAN zone, coming through that same interface, and expect them to route accordingly to different internal IP addresses? I may have already somewhat achieved this, and my reverse proxy might have just been wreaking havoc and making things look confusing (whole 'nother issue).
Peter Zhabin avatar
cn flag
Yes, you can, it works by creating secondary IPs on the WAN side that respond to ARP requests from operator's gateway.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.