Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
142 lines (118 sloc) 7.57 KB

Aviatrix Gateway to pfSense

.orange { color: #FFB366; }

Overview

This document describes how to configure an IPsec tunnel between an Aviatrix Gateway and a pfSense firewall using Aviatrix Site2Cloud.

Add a Site2Cloud tunnel in Aviatrix Controller

  1. Login to your Aviatrix Controller.
  2. Select the Site2Cloud navigation item on the left navigation bar.
  3. Click on + Add New near the top of the Site2Cloud tab.
  4. Under Add a New Connection, enter the following:
Field Expected Value
VPC ID / VNet Name Select the VPC where this tunnel will terminate in the cloud.
Connection Type Unmapped unless there is an overlapping CIDR block.
Connection Name Name this connection. This connection represents the connectivity to the edge device.
Remote Gateway Type Generic
Tunnel Type UDP
Algorithms Unchecked
Encryption over ExpressRoute/ DirectConnect Unchecked
Enable HA Unchecked
Primary Cloud Gateway Select the Gateway where the tunnel will terminate in this VPC.
Remote Gateway IP Address IP address of the pfSense device.
Pre-shared Key Optional. Enter the pre-shared key for this connection. If nothing is entered one will be generated for you.
Remote Subnet Enter the CIDR representing the network behind the edge device that this tunnel supports.
Local Subnet The CIDR block that should be advertised on pfSense for the cloud network (will default to the VPC CIDR block)
  1. Click OK

Create an IPsec tunnel in pfSense

  1. Login to your pfSense dashboard.

  2. In the VPN menu, select IPsec.

  3. Click + Add P1

  4. Populate the fields according to your preferences. The important fields are (with extra emphasis on a few key fields):

    General Information

    Field

    Expected Value

    Key exchange version

    IKEv1

    Remote Gateway

    Enter the public IP address of the Aviatrix gateway here.

    Phase 1 Proposal

    Field

    Expected Value

    Authentication Method

    Mutual PSK

    My identifier

    My IP address

    Peer identifier

    IP address. Enter the private IP address of the remote Aviatrix Gateway

    Pre-Shared Key

    Enter the PSK from the Site2Cloud tunnel creation step.

    Phase 1 Proposal (Algorithms)

    Field

    Expected Value

    Encryption Algorithm

    AES - 256 bits

    Hash Algorithm

    SHA1

    DH Group

    2 (1024 bit)

    Advanced Options

    Field

    Expected Value

    Disable rekey

    Unchecked

    imageExamplePfSenseConfiguration

  5. Click Save

  6. Add a Phase 2 entry imageExamplePfSensePhase2Config

  7. Save the Phase 2 entry

  8. Test that the tunnel is up

You can’t perform that action at this time.