Aviatrix Gateway to Juniper SRX

This document describes how to build an IPSec tunnel based site2cloud connection between an Aviatrix Gateway and a JuniperSRX Firewall.

The network setup is as following:

VPC-multicloudvpc1 (with Aviatrix Gateway)


VPC Public Subnet CIDR:

VPC Private Subnet CIDR:

On-Prem (with Juniper SRX Firewall)

On-Prem Network CIDR:

On-prem Public Network CIDR:

On-prem Private Network CIDR:

1. Create a Site2Cloud Connection at the Aviatrix Controller

1.1 Go to Gateway->New Gateway to launch an Aviatrix Gateway at the public subnet of VPC-multicloudvpc1. Collect Gateway’s public IP addresses ( in this example).

1.2 Go to the Site2Cloud page and click Add New to create a Site2Cloud connection.

Field Value
VPC ID/VNet Name Choose VPC ID of VPC- multicloudvpc1
Connection Type Unmapped
Connection Name Arbitrary (e.g. avx-SRX-S2C)
Remote Gateway Type Generic
Tunnel Type UDP
Algorithms Uncheck this box
Encryption over DirectConnect Uncheck this box
Enable HA Uncheck this box
Primary Cloud Gateway Select Aviatrix Gateway created above
Remote Gateway IP Address Public IP of Juniper SRX WAN port ( in this example)
Pre-shared Key Optional (auto-generated if not entered)
Remote Subnet (On-Prem Private Network CIDR)
Local Subnet (VPC-multicloudvpc1 private subnet)
1.3 Go to the Site2Cloud page. From the Site2Cloud connection table, select the connection created above (e.g. avx-SRX-S2C).
  • Select Generic from the Vendor drop down list.
  • Click the Download Configuration button to download the SRX Site2Cloud configuration.
  • Save the configuration file as a reference for configuring your Juniper SRX.


The following is an SRX sample configuration based on the Site2Cloud configuration above.


2. Configure JuniperSRX

Apply the following configuration to your SRX:

3. Troubleshooting and Verifying at the Aviatrix Controller

3.1 At the Aviatrix Controller, go to the Site2Cloud page. Verify that the status of the Site2Cloud connection is up.

3.2 At the Site2Cloud - Diagnostics page, run various diagnostics commands.

Field Value
VPC ID/VNet Name VPC- multicloudvpc1 (Aviatrix Gateway VPC) ID
Connection Name of the Site2Cloud connection created at Step 2
Gateway Name of Aviatrix Gateway
Action One of the supported diagnostics commands