How can I debug Site2Cloud connections?¶
Site2Cloud connections depend on the third party onsite router/firewall providing the remote end of the IPSec tunnel. Here are some common items to check on
- If the tunnel is not coming up, make sure there is interesting traffic from either or both sides of the tunnels
- Ports 500 and 4500 have to be allowed, if you have a firewall, for IPSec tunnels to be established. Please check your firewall, security groups on the gateway and make sure that any NACLs are not blocking traffic.
- Ensure that the third party device has the matching IKE Phase 1, IPSec Phase 2 algorithm and also security policy (i.e. subnet to indicate interesting traffic for encryption). Please download the Site2Cloud connection configuration from the Aviatrix controller Site2Cloud page and send it to your third party device administrator for proper configuration.
Can Site2Cloud connection be terminated on an Aviatrix OpenVPN Gateway?¶
Terminating a Site2Cloud connection on an Aviatrix OpenVPN gateway is not our best practice even though it’s possible. Please note that Aviatrix does not incur extra charge for having multiple gateways as we only charge based on the connected OpenVPN users and the number of IPSec tunnel built.
How do I connect my onprem router to VGW for Site2Connection?¶
Please follow the directions on AWS Console at https://docs.aws.amazon.com/vpc/latest/adminguide/Welcome.html for detailed instructions. You could also look at https://docs.aws.amazon.com/vpc/latest/adminguide/Introduction.html#DevicesTested for more information.
How do I create a Site2Cloud connection with Customized SNAT and DNAT to virtual ip addresses?¶
If you need to translate a source ip address and/or a destination ip address to different ip addresses due to your on-premise requirements, please follow the instructions at Site2Cloud with Customized SNAT and DNAT to a virtual ip address.
How do I connect my onsite router, which does not support BGP, to connect to my transit gateway via AWS’s VGW?¶
If your onsite router does not support BGP, please follow the following steps to connect to VGW on AWS Console;
- Create a new “VPN Connection” on AWS console
- For “Customer Gateway” pick “new” and use your onsite router’s public ip address
- Skip “BGP ASN”
- Set the “routing options” to “static”
- Enter all of your onsite CIDR’s at “Static IP Prefixes”
- Click on “Create VPN Connection”
- At the Site-to-Site VPN connection page at AWS portal, select the vpn connection you created just now and click on “Download Configuration” to download the appropriate configuration. Follow the steps in this document to setup your tunnel on your onsite router.
You would have to manually set the “remote subnets” in your onsite router to the on cloud CIDR’s that you want the router to access. Your onprem CIDR’s that you configured above, will be propogated by the VGW to the transit gateway via BGP and they will make it to all of your Spoke Gateways.
How can I set the IPSec Phase1/2 lifetime values for Site2Cloud Tunnels?¶
As of version 5.0.2773, we do not support setting the lifetime values for IPSec Phase1 and Phase2
While you are creating a new Site2Cloud connection
- If you pick the remote gateway as “generic”, we always use the settings from the peer device that this gateway is connecting to - so you can set these values on your remote IPSec device as you need
- After you create the site2cloud tunnel, when you download the configuration file, for both vendors(generic and cisco), we incorrectly show lifetime values for phase1 and phase2 - please ignore them.
- If you pick “AWS VGW” as the remote gateway, the lifetimes are set to 28800/3600 for phase1/2.
- While you are downloading the configuration after creating this site2cloud tunnel, the configuration file for generic vendor will incorrectly show these values as 28800/28800 instead of 28800/3600 - we have an outstanding defect to address this issue 28800/3600, as of version 5.0.2773.
- If you pick Cisco as the vendor, we correctly show these values as 28800/3600. Please make a note of this and configure your remote end correctly
If I already have a Site2Cloud connection using IKEv1, could I create another one using IKEv2 ?¶
The prerequisite for IKEv2 is that you need to create the first Site2Cloud connection with IKEv2 enabled. If your current gateway already have a Site2Cloud connection using IKEv1 which was created prior to 5.0 release, you will need to delete it first before creating the IKEv2 Site2Cloud connection. Alternatively, you can create a new Aviatrix gateway in the same VPC and make the first Site2Cloud connection with IKEv2 enabled.