pfSense and FoxyProxy OpenVPN

  1. Home
  2. pfSense and FoxyProxy OpenVPN

How to use pfSense with FoxyProxy OpenVPN

This guide makes the following assumptions:

  1. Your pfSense is set up properly and you can get proper Internet and LAN connectivity on it.
  2. Your version of pfSense is newer than 2.1.1
  3. You want to route ALL of your Internet traffic over the VPN.

Replace all instances of “SERVERNAME” with your actual FoxyProxy server name – for example, if your VPN server is then you would replace SERVERNAME with “someserver” (without quotes).

Get the OpenVPN CA Certificate

You need the OpenVPN CA certificate for your FoxyProxy server(s). We can email these to you, or you can get them yourself:

  1. Log into at
  2. Find the server you wish to use and click the Actions button
  3. Click Download CA Cert File, and either save it to disk or open it directly in a plaintext editor (such as Notepad or Notepad++ (Windows), TextEdit (macOS), or Gedit/Kate (Linux)
  4. Copy this CA cert text to the clipboard for the steps below
Put the OpenVPN CA Cert into pfSense
  1. Log into pfSense
  2. Go to System,Cert. Manager
  3. Ensure you are on the CAs tab
  4. Click the + Add button to add a new CA certificate
  5. Populate the fields as below:
    1. Descriptive Name: FoxyProxy (SERVERNAME)
    2. Method: Import an existing Certificate Authority
    3. Certificate data: (copy and paste the contents of the downloaded ca.crt file)
    4. Leave the rest of the fields empty. Click the Save button.
Configure the pfSense OpenVPN client
  1. Go to VPN, OpenVPN
  2. Go to the Clients tab
  3. Click the + Add button
  4. Configure with the following:

    General Information

    Protocol: TCP IPv4 and IPv6 on all interfaces (multihome)
    Server host or address:
    Server Port: 443
    Description: FoxyProxy VPN (SERVERNAME)

    User Authentication Settings

    Username: (your FoxyProxy username)
    Password: (your FoxyProxy password)
    Confirm: (re-enter the same password)

    Cryptographic Settings

    TLS Configuration: Use a TLS Key should be UNCHECKED
    Peer Certificate Authority: FoxyProxy (SERVERNAME)
    Encryption algorithm: BF-CBC (128 bit key by default, 64 bit block)
    Enable NCP: (unchecked)
    Auth digest algorithm: SHA1 (160-bit)
    Hardware Crypto: No Hardware Crypto Acceleration

    Tunnel Settings

    Compression: LZO Compression [compress lzo, equivalent to comp-lzo yes for compatibility]
    Topology: net30 — Isolated /30 network per client

    Advanced Configuration

    Verbosity level: 4

    Leave all other fields blank/default and click the Save button

  1. Go to Firewall, NAT
  2. Click on the Outbound tab
  3. Toggle/enable Manual Outbound NAT rule generation. (AON – Advanced Outbound NAT)
  4. Click the Save button (but not Apply Changes yet)
  5. Now, you should see a list of rules that were originally auto-generated (and hidden before). You need to clone each of these rules by clicking the Add a new mapping based on this one button (it looks like two overlaid squares), and change the Interface field from WAN to OpenVPN.
  6. Click the Save button for the rule. Remember to repeat for each rule that pre-existed. There will probably be 6 rules on a fresh install of pfSense, so when you’re finished you should have about 12 rules total.
  7. (OPTIONAL). You may want to edit the description for each rule you create so it is easier to remember why you created them.
  8. Finally, click the Apply Changes button. Your VPN should is now set up.

Test that pfSense is connected to the VPN server by going to If you are connected through VPN, the page reports the IP address and location of the VPN server. If it does not display that, try rebooting pfSense, wait for it to come back up fully, and visit again.