# VPN

## Recipes

* Setup your own free OpenVPN on AWS EC2:
  * [Setup OpenVPN with CentOS and AWS EC2](https://www.itsfullofstars.de/2018/04/setup-openvpn-server-on-amazon-ec2/)
  * [Setup OpenVPN with Ubuntu 16.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04)

You might need to [add custom DNS](https://tunnelblick.org/cConnectedBut.html#how-to-use-a-different-dns-server) on the client machine

If you can connect succefully, but don't have Internet, try running this:

```bash
sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://avmaslakov.gitbook.io/memoria/networking/vpn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
