2016-07-11 21:51:31 +00:00
|
|
|
---
|
|
|
|
|
2019-02-17 23:38:19 +00:00
|
|
|
# This is the list of user to generate.
|
|
|
|
# Every device must have a unique username.
|
|
|
|
# You can generate up to 250 users at one time.
|
2016-08-24 07:30:33 +00:00
|
|
|
users:
|
2019-02-17 23:38:19 +00:00
|
|
|
- phone
|
|
|
|
- laptop
|
|
|
|
- desktop
|
2016-08-24 07:30:33 +00:00
|
|
|
|
2019-02-17 23:38:19 +00:00
|
|
|
# NOTE: You must "escape" any usernames with leading 0's, like "000dan"
|
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
|
|
|
|
2018-11-22 18:04:58 +00:00
|
|
|
# Clean up cloud python environments
|
|
|
|
clean_environment: false
|
|
|
|
|
2019-03-10 17:16:34 +00:00
|
|
|
# Deploy StrongSwan to enable IPsec support
|
|
|
|
ipsec_enabled: true
|
|
|
|
|
|
|
|
# StrongSwan log level
|
|
|
|
# https://wiki.strongswan.org/projects/strongswan/wiki/LoggerConfiguration
|
|
|
|
strongswan_log_level: 2
|
|
|
|
|
2019-04-08 20:20:34 +00:00
|
|
|
# rightsourceip for ipsec
|
|
|
|
# ipv4
|
|
|
|
strongswan_network: 10.19.48.0/24
|
|
|
|
# ipv6
|
|
|
|
strongswan_network_ipv6: 'fd9d:bc11:4020::/48'
|
|
|
|
|
2019-03-10 17:16:34 +00:00
|
|
|
# Deploy WireGuard
|
2018-05-24 15:15:27 +00:00
|
|
|
wireguard_enabled: true
|
|
|
|
wireguard_port: 51820
|
2019-02-25 16:56:19 +00:00
|
|
|
# If you're behind NAT or a firewall and you want to receive incoming connections long after network traffic has gone silent.
|
|
|
|
# This option will keep the "connection" open in the eyes of NAT.
|
|
|
|
# See: https://www.wireguard.com/quickstart/#nat-and-firewall-traversal-persistence
|
|
|
|
wireguard_PersistentKeepalive: 0
|
2017-03-05 18:33:01 +00:00
|
|
|
|
2019-04-08 20:20:34 +00:00
|
|
|
# WireGuard network configuration
|
|
|
|
_wireguard_network_ipv4:
|
|
|
|
subnet: 10.19.49.0
|
|
|
|
prefix: 24
|
|
|
|
gateway: 10.19.49.1
|
|
|
|
clients_range: 10.19.49
|
|
|
|
clients_start: 2
|
|
|
|
_wireguard_network_ipv6:
|
|
|
|
subnet: 'fd9d:bc11:4021::'
|
|
|
|
prefix: 48
|
|
|
|
gateway: 'fd9d:bc11:4021::1'
|
|
|
|
clients_range: 'fd9d:bc11:4021::'
|
|
|
|
clients_start: 2
|
|
|
|
wireguard_network_ipv4: "{{ _wireguard_network_ipv4['subnet'] }}/{{ _wireguard_network_ipv4['prefix'] }}"
|
|
|
|
wireguard_network_ipv6: "{{ _wireguard_network_ipv6['subnet'] }}/{{ _wireguard_network_ipv6['prefix'] }}"
|
|
|
|
|
2018-12-20 14:21:04 +00:00
|
|
|
# Reduce the MTU of the VPN tunnel
|
|
|
|
# Some cloud and internet providers use a smaller MTU (Maximum Transmission
|
|
|
|
# Unit) than the normal value of 1500 and if you don't reduce the MTU of your
|
|
|
|
# VPN tunnel some network connections will hang. Algo will attempt to set this
|
|
|
|
# automatically based on your server, but if connections hang you might need to
|
|
|
|
# adjust this yourself.
|
|
|
|
# See: https://github.com/trailofbits/algo/blob/master/docs/troubleshooting.md#various-websites-appear-to-be-offline-through-the-vpn
|
|
|
|
reduce_mtu: 0
|
2018-07-03 06:06:45 +00:00
|
|
|
|
2019-02-25 16:56:19 +00:00
|
|
|
# Algo will use the following lists to block ads. You can add new block lists
|
2018-12-07 19:41:19 +00:00
|
|
|
# after deployment by modifying the line starting "BLOCKLIST_URLS=" at:
|
2019-02-25 16:56:19 +00:00
|
|
|
# /usr/local/sbin/adblock.sh
|
2018-12-07 19:41:19 +00:00
|
|
|
# If you load very large blocklists, you may also have to modify resource limits:
|
|
|
|
# /etc/systemd/system/dnsmasq.service.d/100-CustomLimitations.conf
|
2017-05-15 10:39:34 +00:00
|
|
|
adblock_lists:
|
2019-04-17 11:53:41 +00:00
|
|
|
- "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
|
2017-05-15 10:39:34 +00:00
|
|
|
- "https://hosts-file.net/ad_servers.txt"
|
|
|
|
|
2018-10-04 22:12:48 +00:00
|
|
|
# Enable DNS encryption.
|
|
|
|
# If 'false', 'dns_servers' should be specified below.
|
2018-04-25 19:27:58 +00:00
|
|
|
dns_encryption: true
|
|
|
|
|
2018-10-04 22:12:48 +00:00
|
|
|
# DNS servers which will be used if 'dns_encryption' is 'true'. Multiple
|
|
|
|
# providers may be specified, but avoid mixing providers that filter results
|
|
|
|
# (like Cisco) with those that don't (like Cloudflare) or you could get
|
|
|
|
# inconsistent results. The list of available public providers can be found
|
|
|
|
# here:
|
|
|
|
# https://github.com/DNSCrypt/dnscrypt-resolvers/blob/master/v2/public-resolvers.md
|
|
|
|
dnscrypt_servers:
|
|
|
|
ipv4:
|
|
|
|
- cloudflare
|
|
|
|
# - google
|
|
|
|
ipv6:
|
|
|
|
- cloudflare-ipv6
|
2018-04-25 19:27:58 +00:00
|
|
|
|
2018-10-04 22:12:48 +00:00
|
|
|
# DNS servers which will be used if 'dns_encryption' is 'false'.
|
|
|
|
# The default is to use Cloudflare.
|
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-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-27 08:18:00 +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
|
2018-09-17 00:19:29 +00:00
|
|
|
image: 18.04-LTS
|
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.
|
2018-09-27 08:18:00 +00:00
|
|
|
# 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".
|
2018-09-07 10:04:20 +00:00
|
|
|
# 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-09-27 08:18:00 +00:00
|
|
|
external_static_ip: false
|
2018-03-02 12:55:54 +00:00
|
|
|
lightsail:
|
|
|
|
size: nano_1_0
|
2018-10-22 20:49:18 +00:00
|
|
|
image: ubuntu_18_04
|
2018-03-02 12:55:54 +00:00
|
|
|
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
|