mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13:56 +02:00
update readme
Refined OpenVPN answer, added Alpine FAQ. Tried to clean up Usage section with EC2 info.
This commit is contained in:
parent
93804757a2
commit
a535f77162
1 changed files with 30 additions and 26 deletions
56
README.md
56
README.md
|
@ -10,54 +10,54 @@ Algo (short for "Al Gore", the **V**ice **P**resident of **N**etworks everywhere
|
|||
* Supports only AES GCM, SHA2 HMAC, and P-256 DH
|
||||
* Generates mobileconfig profiles to auto-configure Apple devices
|
||||
* Provides helper scripts to add and remove users
|
||||
* Blocks ads with an included HTTP proxy (optional)
|
||||
* Blocks ads with a local DNS resolver and HTTP proxy (optional)
|
||||
* Based on current versions of Ubuntu and StrongSwan
|
||||
|
||||
## Anti-features
|
||||
|
||||
* Does not support legacy cipher suites or protocols like L2TP, IKEv1, or RSA
|
||||
* Does not install Tor, OpenVPN, or other insecure servers
|
||||
* Does not install Tor, OpenVPN, or other risky servers
|
||||
* Does not depend on the security of [TLS](https://tools.ietf.org/html/rfc7457)
|
||||
* Does not require client software on most platforms
|
||||
* Does not claim to provide anonymity
|
||||
* Does not claim to provide anonymity or censorship avoidance
|
||||
* Does not claim to protect you from the [FSB](https://en.wikipedia.org/wiki/Federal_Security_Service), [MSS](https://en.wikipedia.org/wiki/Ministry_of_State_Security_(China)), [DGSE](https://en.wikipedia.org/wiki/Directorate-General_for_External_Security), or [FSM](https://en.wikipedia.org/wiki/Flying_Spaghetti_Monster)
|
||||
|
||||
## Requirements
|
||||
## Usage
|
||||
|
||||
### Requirements
|
||||
|
||||
* ansible >= 2.2.0
|
||||
* python >= 2.6
|
||||
* libselinux-python (for RedHat based distros)
|
||||
* [dopy=0.3.5](https://github.com/Wiredcraft/dopy)
|
||||
|
||||
## Usage
|
||||
### Initial Deployment
|
||||
|
||||
Open the file `config.cfg` in your favorite text editor. Change `server_name` and specify users in the `users` list. Start the deploy and follow the instructions (available options for PROVIDER are `digitalocean` or `ec2`):
|
||||
|
||||
* Open the file `config.cfg` in your favorite text editor. Change `server_name` and specify users in the `users` list.
|
||||
* Start the deploy and follow the instructions (available options for PROVIDER are `digitalocean` or `ec2`):
|
||||
```
|
||||
ansible-playbook deploy.yml -e "provider=PROVIDER"
|
||||
```
|
||||
* When the process is done, you can find `.mobileconfig` files and certificates in the `configs` directory. Send the `.mobileconfig` profile to your users on iOS or macOS (note: Profile installation is supported over AirDrop) or send the X.509 certificates to those using other clients, like Windows or Android.
|
||||
* When the deploy proccess is done a new server will be placed in the local inventory file `inventory_users`.
|
||||
* If you want to add or delete users, update the `users` list in `config.cfg` and run the playbook `users.yml`. This command will update users on all the servers in the file `inventory_users`. If you want to limit servers it updates, you can use `-l` flag.
|
||||
|
||||
When the process is done, you can find `.mobileconfig` files and certificates in the `configs` directory. Send the `.mobileconfig` profile to users with Apple devices. Note that profile installation is supported over AirDrop. Do not send the mobileconfig file over plaintext since it contains the keys to access the VPN. For those using other clients, like Windows or Android, send the X.509 certificates for the server and their user.
|
||||
|
||||
Note: For EC2 users, ensure that you setup the required environment variables prior to starting the deploy:
|
||||
|
||||
```
|
||||
declare -x AWS_ACCESS_KEY_ID="XXXXXXXXXXXXXXXXXXX"
|
||||
declare -x AWS_SECRET_ACCESS_KEY="XXXXXXXXXXXXXXXxx"
|
||||
```
|
||||
|
||||
### User Management
|
||||
|
||||
When the deploy proccess is done a new server will be placed in the local inventory file `inventory_users`. If you want to add or delete users, update the `users` list in `config.cfg` and run the playbook `users.yml`. This command will update users on any servers in the file `inventory_users`. If you want to limit the servers it updates, you can use `-l` flag.
|
||||
|
||||
```
|
||||
ansible-playbook users.yml -i inventory_users
|
||||
ansible-playbook users.yml -i inventory_users -l example.com
|
||||
```
|
||||
|
||||
### EC2
|
||||
#### Deployment
|
||||
|
||||
Before using the AWS EC2 playbook you must setup ENV vars with your credentials.
|
||||
```
|
||||
declare -x AWS_ACCESS_KEY_ID="XXXXXXXXXXXXXXXXXXX"
|
||||
declare -x AWS_SECRET_ACCESS_KEY="XXXXXXXXXXXXXXXxx"
|
||||
```
|
||||
#### User management
|
||||
|
||||
User management for EC2 currently uses Algo's inventory_users NOT EC2 dynamic inventory. This may be subject to change in the future.
|
||||
```
|
||||
ansible-playbook users.yml -u ubuntu -i inventory_users
|
||||
```
|
||||
Note: For EC2 users, Algo does NOT use EC2 dynamic inventory for user management. Please continue to use users.yml playbook as described above. This may be subject to change in the future.
|
||||
|
||||
## FAQ
|
||||
|
||||
|
@ -75,8 +75,12 @@ Raccoon does not support IKEv2. Racoon2 supports IKEv2 but is not actively maint
|
|||
|
||||
### Why aren't you using a memory-safe or verified IKE daemon?
|
||||
|
||||
I would, but I don't know of any. Do you? If you're in the position to fund the development of such a project, [contact us](mailto:info@trailofbits.com). We would be interested in leading such an effort. At the very least, we plan to make modifications to StrongSwan and the environment it's deployed in that prevent or significantly complicate exploitation of any latent issues.
|
||||
I would, but I don't know of any. If you're in the position to fund the development of such a project, [contact us](mailto:info@trailofbits.com). We would be interested in leading such an effort. At the very least, we plan to make modifications to StrongSwan and the environment it's deployed in that prevent or significantly complicate exploitation of any latent issues.
|
||||
|
||||
### Why aren't you using OpenVPN?
|
||||
|
||||
Among other reasons, there is no out-of-the-box client support for OpenVPN on any major desktop or mobile platform and it depends on the security of [TLS](https://tools.ietf.org/html/rfc7457).
|
||||
OpenVPN does not have out-of-the-box client support on any major desktop or mobile operating system. This introduces user experience issues and requires the user to update and maintain the software themselves. OpenVPN depends on the security of the [TLS](https://tools.ietf.org/html/rfc7457), both the protocol and its implementations, and we simply trust the server less due to [past security incidents](https://www.exploit-db.com/exploits/34879/).
|
||||
|
||||
### Why aren't you using Alpine Linux?
|
||||
|
||||
I would, but Alpine Linux is not supported out-of-the-box by any major cloud provider.
|
Loading…
Add table
Reference in a new issue