Pritunl api how to#
After the creation of the MongoDB Atlas, we added Pritunl’s public IPs on the whitelist of the Atlas cluster and we connected to the Atlas cluster locally to create a new database in it called pritunl ( guide on how to connect).
Pritunl api free#
Thus, we selected to use MongoDB Atlas as it is cheaper (starts from the free tier) and easier to set up. Next, we deployed two instances and installed and configured a MongoDB cluster, but maintaining and making sure that HA worked effectively was a big overhead. But it was quite expensive, as it starts at $0.28/hr for one db.r5.large instance. Initially, we checked the AWS DocumentDB solution. Then you can provide the list of the ENI IDs with the variable (list) fixed_eni on Terraform. You can manually create two ENIs (we selected the sixth address of each subnet 10.0.0.6 and 10.0.16.6) and attach public IPs to them. This can be achieved by attaching those ENIs as a secondary network interfaces on the instance, as outlined in the appendix below. This is useful when whitelisting those IPs into the Security Groups that Pritunl-VPN needs to access internally, such as our internal GitLab instance. The selection of two ASGs with one instance has been done due to the necessity of having the same Elastic Network Interface (ENI), which results on having the same private and public IPs.
The module we wrote can be found here as an example for how to deploy Pritunl. To deploy Pritunl in our infrastructure, we used Terraform.
Pritunl api software#
OpenVPN is a widely used software and protocol which was also our selection to be used as a quick and reliable solution to access our internal infrastructure. A vast majority of companies use OpenVPN as a solution to host those VPN connections on their own servers. Working in a fully remote company like Mattermost creates the need for employees to use a VPN connection in order to be able to access internal private infrastructure and resources. To solve that problem, a virtual private network (VPN) is used to allow authorized remote access to an organization’s private network. By using their own network infrastructure and connectivity, they can maintain their desirable level of security for their data.īut it would be convenient for users to connect to that private network while they are away from the office through their own internet connection. Usually, organizations use an internal network to prevent unauthorized people from connecting to their private network.