Hi,
We have a working VPN to Google GCP that looks like this:
vpn {
ipsec {
auto-update 60
esp-group gcp-esp {
compression disable
lifetime 10800
mode tunnel
pfs enable
proposal 1 {
encryption aes256
hash sha1
}
}
ike-group gcp-ike {
dead-peer-detection {
action restart
interval 30
timeout 60
}
ikev2-reauth no
key-exchange ikev2
lifetime 36000
mobike enable
proposal 1 {
dh-group 14
encryption aes256
hash sha1
}
}
ipsec-interfaces {
interface eth0
}
nat-traversal enable
site-to-site {
peer xxxxx.tld {
authentication {
id xxx.xxx.32.21
mode pre-shared-secret
pre-shared-secret ****************
}
connection-type initiate
description notadescriptionanymore
ike-group gcp-ike
ikev2-reauth no
local-address xxx.xxx.4.10
tunnel 0 {
allow-nat-networks disable
allow-public-networks disable
esp-group gcp-esp
local {
prefix xxx.xxx.0.0/16
}
remote {
prefix xxx.xxx.0.0/19
}
}
}
}
}
}
This works fine. However, in actual fact we do not have a remote /19 - we have 2 remote /24s that are discontiguous. The only way we could get it to work is as above.
The below is what I want to do, but it doesn’t work.
vpn {
ipsec {
auto-update 60
esp-group gcp-esp {
compression disable
lifetime 10800
mode tunnel
pfs enable
proposal 1 {
encryption aes256
hash sha1
}
}
ike-group gcp-ike {
dead-peer-detection {
action restart
interval 30
timeout 60
}
ikev2-reauth no
key-exchange ikev2
lifetime 36000
mobike enable
proposal 1 {
dh-group 14
encryption aes256
hash sha1
}
}
ipsec-interfaces {
interface eth0
}
nat-traversal enable
site-to-site {
peer xxxxx.tld {
authentication {
id xxx.xxx.32.21
mode pre-shared-secret
pre-shared-secret ****************
}
connection-type initiate
description notadescriptionanymore
ike-group gcp-ike
ikev2-reauth no
local-address xxx.xxx.4.10
tunnel 0 {
allow-nat-networks disable
allow-public-networks disable
esp-group gcp-esp
local {
prefix xxx.xxx.0.0/16
}
remote {
prefix xxx.xxx.0.0/24
}
}
tunnel 1 {
allow-nat-networks disable
allow-public-networks disable
esp-group gcp-esp
local {
prefix xxx.xxx.0.0/16
}
remote {
prefix xxx.xxx.2.0/24
}
}
}
}
}
}
With the above, only one of the tunnels works at any time. Any help appreciated!