2016-07-11 21:51:31 +00:00
|
|
|
---
|
|
|
|
|
2017-04-01 04:19:10 +00:00
|
|
|
# Add as many users as you want for your VPN server here.
|
2017-04-05 18:31:31 +00:00
|
|
|
# Credentials will be generated for each one.
|
2016-08-24 07:30:33 +00:00
|
|
|
users:
|
|
|
|
- dan
|
|
|
|
- jack
|
|
|
|
|
2017-04-05 18:31:31 +00:00
|
|
|
# NOTE: If your usernames have leading 0's, like "000dan", you have to escape them
|
2016-08-24 07:30:33 +00:00
|
|
|
|
|
|
|
### Advanced users only below this line ###
|
|
|
|
|
2018-08-27 14:05:45 +00:00
|
|
|
# If True re-init all existing certificates. Boolean
|
|
|
|
keys_clean_all: False
|
2016-07-11 21:51:31 +00:00
|
|
|
|
2016-08-04 19:58:29 +00:00
|
|
|
vpn_network: 10.19.48.0/24
|
2017-03-05 18:33:01 +00:00
|
|
|
vpn_network_ipv6: 'fd9d:bc11:4020::/48'
|
2018-05-24 15:15:27 +00:00
|
|
|
wireguard_enabled: true
|
|
|
|
wireguard_port: 51820
|
2017-03-05 18:33:01 +00:00
|
|
|
|
2018-07-03 06:06:45 +00:00
|
|
|
# MSS is the TCP Max Segment Size
|
|
|
|
# Setting the 'max_mss' Ansible variable can solve some issues related to packet fragmentation
|
|
|
|
# This appears to be necessary on (at least) Google Cloud,
|
|
|
|
# however, some routers also require a change to this parameter
|
|
|
|
# See also:
|
|
|
|
# - https://github.com/trailofbits/algo/issues/216
|
|
|
|
# - https://github.com/trailofbits/algo/issues?utf8=%E2%9C%93&q=is%3Aissue%20mtu
|
|
|
|
# - https://serverfault.com/questions/601143/ssh-not-working-over-ipsec-tunnel-strongswan
|
|
|
|
#max_mss: 1316
|
|
|
|
|
2017-10-19 14:06:43 +00:00
|
|
|
# StrongSwan log level
|
|
|
|
# https://wiki.strongswan.org/projects/strongswan/wiki/LoggerConfiguration
|
|
|
|
strongswan_log_level: 2
|
|
|
|
|
2017-05-15 10:39:34 +00:00
|
|
|
adblock_lists:
|
|
|
|
- "http://winhelp2002.mvps.org/hosts.txt"
|
|
|
|
- "https://adaway.org/hosts.txt"
|
|
|
|
- "https://www.malwaredomainlist.com/hostslist/hosts.txt"
|
|
|
|
- "https://hosts-file.net/ad_servers.txt"
|
|
|
|
|
2018-05-09 20:14:31 +00:00
|
|
|
# Enable DNS encryption. Use dns_encryption_provider to specify the provider. If false dns_servers should be specified
|
2018-04-25 19:27:58 +00:00
|
|
|
dns_encryption: true
|
|
|
|
|
|
|
|
# Possible values: google, cloudflare
|
|
|
|
dns_encryption_provider: cloudflare
|
|
|
|
|
|
|
|
# DNS servers which will be used if dns_encryption disabled
|
2016-07-31 11:24:56 +00:00
|
|
|
dns_servers:
|
2016-12-12 15:52:34 +00:00
|
|
|
ipv4:
|
2018-04-25 19:27:58 +00:00
|
|
|
- 1.1.1.1
|
|
|
|
- 1.0.0.1
|
2016-12-12 15:52:34 +00:00
|
|
|
ipv6:
|
2018-04-25 19:27:58 +00:00
|
|
|
- 2606:4700:4700::1111
|
|
|
|
- 2606:4700:4700::1001
|
2016-07-11 21:51:31 +00:00
|
|
|
|
2017-04-20 22:00:17 +00:00
|
|
|
# IP address for the local dns resolver
|
2016-08-24 07:30:33 +00:00
|
|
|
local_service_ip: 172.16.0.1
|
2016-12-06 17:14:08 +00:00
|
|
|
|
2018-09-02 19:26:06 +00:00
|
|
|
# Your Algo server will automatically install security updates. Some updates
|
|
|
|
# require a reboot to take effect but your Algo server will not reboot itself
|
|
|
|
# automatically unless you change 'enabled' below from 'false' to 'true', in
|
|
|
|
# which case a reboot will take place if necessary at the time specified (as
|
|
|
|
# HH:MM) in the time zone of your Algo server. The default time zone is UTC.
|
|
|
|
unattended_reboot:
|
|
|
|
enabled: false
|
|
|
|
time: 06:00
|
|
|
|
|
2016-12-06 17:14:08 +00:00
|
|
|
pkcs12_PayloadCertificateUUID: "{{ 900000 | random | to_uuid | upper }}"
|
|
|
|
VPN_PayloadIdentifier: "{{ 800000 | random | to_uuid | upper }}"
|
|
|
|
CA_PayloadIdentifier: "{{ 700000 | random | to_uuid | upper }}"
|
2016-12-14 15:49:47 +00:00
|
|
|
|
2016-12-16 19:30:07 +00:00
|
|
|
# Block traffic between connected clients
|
2018-08-27 14:05:45 +00:00
|
|
|
BetweenClients_DROP: true
|
2016-12-16 19:30:07 +00:00
|
|
|
|
2017-02-14 17:25:56 +00:00
|
|
|
congrats:
|
|
|
|
common: |
|
|
|
|
"# Congratulations! #"
|
|
|
|
"# Your Algo server is running. #"
|
|
|
|
"# Config files and certificates are in the ./configs/ directory. #"
|
|
|
|
"# Go to https://whoer.net/ after connecting #"
|
|
|
|
"# and ensure that all your traffic passes through the VPN. #"
|
2018-09-06 18:04:23 +00:00
|
|
|
"# Local DNS resolver {{ local_service_ip }} #"
|
2017-02-14 17:25:56 +00:00
|
|
|
p12_pass: |
|
2018-09-06 18:04:23 +00:00
|
|
|
"# The p12 and SSH keys password for new users is {{ p12_export_password }} #"
|
2017-02-14 17:25:56 +00:00
|
|
|
ca_key_pass: |
|
2018-09-06 18:04:23 +00:00
|
|
|
"# The CA key password is {{ CA_password }} #"
|
2017-02-14 17:25:56 +00:00
|
|
|
ssh_access: |
|
|
|
|
"# Shell access: ssh -i {{ ansible_ssh_private_key_file|default(omit) }} {{ ansible_ssh_user|default(omit) }}@{{ ansible_ssh_host|default(omit) }} #"
|
2017-01-11 17:55:07 +00:00
|
|
|
|
2016-12-12 19:02:45 +00:00
|
|
|
SSH_keys:
|
|
|
|
comment: algo@ssh
|
|
|
|
private: configs/algo.pem
|
|
|
|
public: configs/algo.pem.pub
|
2017-03-05 20:19:15 +00:00
|
|
|
|
2017-04-16 14:19:47 +00:00
|
|
|
cloud_providers:
|
|
|
|
azure:
|
|
|
|
size: Basic_A0
|
2017-04-22 21:06:10 +00:00
|
|
|
image:
|
|
|
|
offer: UbuntuServer
|
|
|
|
publisher: Canonical
|
2018-05-24 14:08:14 +00:00
|
|
|
sku: '18.04-LTS'
|
2017-04-22 21:06:10 +00:00
|
|
|
version: latest
|
2017-04-16 14:19:47 +00:00
|
|
|
digitalocean:
|
2018-01-27 20:02:00 +00:00
|
|
|
size: s-1vcpu-1gb
|
2018-05-24 14:08:14 +00:00
|
|
|
image: "ubuntu-18-04-x64"
|
2018-09-07 10:04:20 +00:00
|
|
|
# Change the encrypted flag to "true" to enable AWS volume encryption, for encryption of data at rest.
|
|
|
|
# Warning: the Algo script will take approximately 6 minutes longer to complete.
|
|
|
|
# Also note that the documented AWS minimum permissions aren't sufficient.
|
|
|
|
# You will have to edit the AWS user policy documented at
|
|
|
|
# https://github.com/trailofbits/algo/blob/master/docs/cloud-amazon-ec2.md to also allow "ec2:CopyImage".
|
|
|
|
# See https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-edit.html
|
2017-04-16 14:19:47 +00:00
|
|
|
ec2:
|
2018-08-27 14:05:45 +00:00
|
|
|
encrypted: false
|
2017-04-16 14:19:47 +00:00
|
|
|
size: t2.micro
|
2017-04-22 21:06:10 +00:00
|
|
|
image:
|
2018-05-24 14:08:14 +00:00
|
|
|
name: "ubuntu-bionic-18.04"
|
2017-04-22 21:06:10 +00:00
|
|
|
owner: "099720109477"
|
2017-04-16 14:19:47 +00:00
|
|
|
gce:
|
|
|
|
size: f1-micro
|
2018-05-24 14:08:14 +00:00
|
|
|
image: ubuntu-1804
|
2018-03-02 12:55:54 +00:00
|
|
|
lightsail:
|
|
|
|
size: nano_1_0
|
|
|
|
image: ubuntu_16_04
|
|
|
|
scaleway:
|
2018-05-24 14:08:14 +00:00
|
|
|
size: START1-S
|
|
|
|
image: Ubuntu Bionic Beaver
|
2018-03-02 12:55:54 +00:00
|
|
|
arch: x86_64
|
|
|
|
openstack:
|
|
|
|
flavor_ram: ">=512"
|
2018-05-24 14:08:14 +00:00
|
|
|
image: Ubuntu-18.04
|
2018-08-27 14:05:45 +00:00
|
|
|
vultr:
|
|
|
|
os: Ubuntu 18.04 x64
|
|
|
|
size: 1024 MB RAM,25 GB SSD,1.00 TB BW
|
2017-04-16 14:19:47 +00:00
|
|
|
local:
|
2017-04-29 14:48:25 +00:00
|
|
|
|
|
|
|
fail_hint:
|
|
|
|
- Sorry, but something went wrong!
|
|
|
|
- Please check the troubleshooting guide.
|
|
|
|
- https://trailofbits.github.io/algo/troubleshooting.html
|
2018-08-27 14:05:45 +00:00
|
|
|
|
|
|
|
booleans_map:
|
|
|
|
Y: true
|
|
|
|
y: true
|