> For the complete documentation index, see [llms.txt](https://docs.pritunl.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pritunl.com/kb/vpn/tutorials/ubiquiti-edgerouter-tutorial.md).

# Ubiquiti EdgeRouter

Configure Pritunl OpenVPN client on an EdgeRouter

This tutorial will explain configure the EdgeRouter as an OpenVPN client. This should only be done when a Pritunl Link IPsec configuration is not possible. Information on configuring the [**Ubiquiti EdgeRouter**](/kb/vpn/tutorials/ubiquiti-edgerouter-tutorial.md) with IPsec can be found in the *IPsec Peering* section. The EdgeRouter has no hardware offloading support for OpenVPN and performance with OpenVPN will be significantly lower then using hardware offloaded IPsec. The expected performance will likely be less then 10 megabits/sec for most configurations. It is recommend to use AES 128bit with SHA-1 in the Pritunl server settings for best performance.

A Pritunl plugin is available for the EdgeRouter to simplify configuration. Download the plugin package from the [**pritunl-edgemax**](https://github.com/pritunl/pritunl-edgemax/raw/master/pritunl-edgemax.tar.gz) repository. This will contain a `tar.gz` file that can be uploaded to the EdgeRouter.\
To do this open the *Wizards* tab in the EdgeRouter web console and select the *+* icon next to *Features Wizards* on the left sidebar. Then upload the plugin package and click *Save*.

![](https://1783284711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhDA4eusSNQcv5QfappvI%2Fuploads%2FFrmWrOSV76mQ3O32iCsA%2Fedgerouter0.png?alt=media\&token=67eff9c4-0c79-472c-a5d6-bed7cc892ff1)

Next click *Add New* in the Pritunl plugin wizard and set the *Interface* to `vtun0`. Then in the Pritunl web console create a user for the EdgeRouter in the *Users* tab and click the link button on the left side of the user to get the user links. Copy the temporary URI link for Pritunl Client and paste it in the *Profile URI Link* field in the EdgeRouter. Once saved the Pritunl plugin will download the profile and automatically configure the EdgeRouter to connect to the OpenVPN server.

![](https://1783284711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhDA4eusSNQcv5QfappvI%2Fuploads%2F3XxpLWzEXmtjXAuHOqDi%2Fedgerouter1.png?alt=media\&token=130fb0b9-4ca4-4d4a-92c7-1e47e23164b4)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pritunl.com/kb/vpn/tutorials/ubiquiti-edgerouter-tutorial.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
