Skip to main content

Netmap planner

When two sites joined by a VPN use the same network, enter each site's real and mapped network and the planner gives you the VPN and NETMAP settings for both firewalls. See Netmap for how the rules work.

Networks

Site A

Site B

How a packet from site A reaches site B

Leaves site A
Source192.168.1.10
Destination10.2.2.20
NETMAP_SRC_ASite A firewall rewrites the source
Through the VPN
Source10.1.1.10
Destination10.2.2.20
NETMAP_DST_BSite B firewall rewrites the destination
Reaches site B
Source10.1.1.10
Destination192.168.1.20

Configuration

Site A

1. VPN tunnel
Use the mapped networks, never the real ones.
Local networkRemote network
10.1.1.0/2410.2.2.0/24
2. Firewall › NAT › Rules and NETMAP › Add source NETMAP
Source NETMAP
NameDestination networkSource networkMapped network
NETMAP_SRC_A10.2.2.0/24192.168.1.0/2410.1.1.0/24
3. Firewall › NAT › Rules and NETMAP › Add destination NETMAP
Destination NETMAP
NameSource networkDestination networkMapped network
NETMAP_DST_A10.2.2.0/2410.1.1.0/24192.168.1.0/24

Site B

1. VPN tunnel
Use the mapped networks, never the real ones.
Local networkRemote network
10.2.2.0/2410.1.1.0/24
2. Firewall › NAT › Rules and NETMAP › Add source NETMAP
Source NETMAP
NameDestination networkSource networkMapped network
NETMAP_SRC_B10.1.1.0/24192.168.1.0/2410.2.2.0/24
3. Firewall › NAT › Rules and NETMAP › Add destination NETMAP
Destination NETMAP
NameSource networkDestination networkMapped network
NETMAP_DST_B10.1.1.0/2410.2.2.0/24192.168.1.0/24

Test with two example hosts

From 192.168.1.10 (site A), to reach 192.168.1.20 (site B): ping 10.2.2.20

From 192.168.1.20 (site B), to reach 192.168.1.10 (site A): ping 10.1.1.10

Site B sees the connection coming from 10.1.1.10. Use that address in firewall rules and look for it in the logs.

Good to know
  • Firewall rules between the two sites use the other site's mapped network.
  • The mapped networks must not exist at either site or in any other VPN.
  • A DNS name that resolves to a host's real IP at the other site won't work. Use the mapped address instead.