Score:0

Spreading a subnet via VPN

cn flag

There is 1 network behind FW-A that is already in place, in the subnet 172.16.101.0/24

I would like to establish an IPSec tunnel between FW-A and FW-B,and have devices behind FW-B to also be located on the same subnet as FW-A in 172.16.101.0/24.

Here is a representation:

Toplogy

Now from what I know, the way you achieve this kind of topology is by natting both networks and have them communicate through their nat addresses.

I was wondering if there might be another way to advertise subnet A to FW-B, while maintaining the same subnet on the side of B?

The base idea here is for a device behind B to directly communicate with a device behind A using it's real address in 172.16.101.0/24 without any NAT?

Not sure if this is reasonable to expect, as i'm aware of the collision between both networks.

Score:0
kz flag

In such a situation, you have three options.

  • 1: As you already pointed out, use a full NAT (source and destination NAT)
  • 2: segmentation of the networks (transform the 172.16.101.0/24 subnet into two /25 subnets)
  • 3: use bridging instead of an IPsec tunnel.

In Scenario 3, you would build a vpn on network layer 2, effectively bridging those two networks together. You would have to ensure by some other means that no IP collisions occur. This introduces additional overhead to the vpn, since you are tunneling the ethernet protocol, not the IP protocol.

installing a firewall on such vpn connections is possible (see here for example, or take a look at the linux man page of ebtables), but is more challenging than on an ipsec tunnel, and not all firewalls have such a capability. Because of those drawbacks, I would always go for the full NAT option...

I sit in a Tesla and translated this thread with Ai:

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.