I want to setup a VPN IPSec tunnel between two sites, let's say PARIS and Toulouse. The tunnel rose well and statues on VPN Gateway routers at both sides shows it's up and OK. The problem is that I have an inter box V4 in the middle, and the traffic passes by the VPN on one side and is forced to pass by Internet on the other side.
You'd have found attached a draft of my architecture shcema (I don't have enough reputation here to post images), explained bellow.
- On Paris side We have a Cisco ASA5512 router, with a public interface connected to the ISP of Paris
A Switch L3 is connected to the cisco router, on which is connected the LAN of Paris, and the cisco router has a private interface connected to the switch and associated to one VLAN.
On Toulouse side We have a Ubiquiti UniFi Security Gateway router
- This Ubiquiti router has a private interface connected to an internet box (belonging to the Toulouse's ISP), and another private interface connected to the LAN of Toulouse.
Thus the public ip address of the tunnel on Toulouse side is the public ip address of the internet box.
- The router of Toulouse uses the private ip of the internet box as its default gateway
- The router of Paris uses directly ti public ip address of the Paris's ISP as its default Gateway, as it's connecte public to the ISP
The problem is:
- From a host at Toulouse, I can ping and rpc a host at Paris, the traceroute command shows that packets pass through the vpn tunnel
- From a host in Paris LAN when I try to reach a host of the other end of the tunnel at Toulouse, The packet are forced by the Paris's router to pass by internet, thus it is sends packets to the ISP through its public interface, which doesn't know how to reach the destination, as it's private network address (192.168.11.0/24), so the packet transmission ended in an time exceeded
- If I specify a static route on the Paris router telling him to send packets going to the network 192.168.11.0/24 to the public ip of the Toulouse internet box it doesn't know how to reach there and blocks
Then how in this configuration I can make packets from Paris router to the network 192.168.11.0/24 pass through the vpn tunnel?