# Set the peer's RSA public key and specify that this key should be used # as the identifier for the peer's digital signature rsa_key_name = "EAST-PEER-key" rsa_key_value = "0sAQOVBIJL+rIkpTuwh8FPeceAF0bhgLr++" + \ "W51bOAIjFbRDbR8gX3Vlz6wiUbMgGwQxWlY" + \ "QiqsCeacicsfZx/amlEn9PkSE4e7tqK/JQo" + \ "40L5C7gcNM24mup1d+0WmN3zLb9Qhmq5q3p" + \ "NJxEwnVbPPQeIdZMJxnb1+lA8DPC3SIxJM/" + \ "3at1/KrwqCAhX3QNFY/zNmOtFogELCeyl4+" + \ "d54wQljA+3dwFAQ4bboJ7YIDs+rqORxWd3l" + \ "3I7IajT/pLrwr5eZ8OA9NtAedbMiCwxyuyU" + \ "bznxXZ8Z/MAi3xjL1pjYyWjNNiOij82QJfM" + \ "OrjoXVCfcPn96ZN+Jqk+KknoVeNDwzpoahF" + \ "OseJREeXzkw3/lkMN9N1" vpn.set_rsa_key(rsa_key_name, rsa_key_value) vpn.set_ipsec_site_to_site_peer_auth_rsa_key_name(peer_node, rsa_key_name) # Specify the default ESP group for all tunnels esp_group_name = 'ESP-1W' vpn.set_ipsec_site_to_site_peer_default_esp_group(peer_node, esp_group_name) # Specify the IKE group ike_group_name = 'IKE-1W' vpn.set_ipsec_site_to_site_peer_ike_group(peer_node, ike_group_name) # Identify the IP address on the vRouter to be used for this connection local_address = '192.0.2.1' vpn.set_ipsec_site_to_site_peer_local_address(peer_node, local_address) # Create a tunnel configuration and provide local and remote subnets # for this tunnel