IPsec vpn access to two subnets from one
-
I have two offices that are interconnected using the wireguard tunnel configured in phsense, one has a subnet of 23 and the second has 22, now I configure ipsec vpn to access the 23 subnet, after configuration I have access only to the 23 subnet how to make sure that when connecting a vpn to the 23 subnet I have access to more at 22
-
@Dimitriy46 Copy, or duplicate, the P2 for the IPsec that you made for 23 and change it to 22. Make sure there is a firewall rule that will pass the traffic between them (if needed).
-
@cswroe if I duplicate p2 23 and add p2 22, only one works, if I delete p2 23 and leave p2 22, then I have access only to the 22 subnet
-
@Dimitriy46 the P2 needs to exist on both ends, and you may have that. I would also try to include the entire /24 in a single P2 and see what happens. I have a connection with an ASA where they have multiple P2 for the same subnet, but I just have a /24 and it figures it out.