Closed Alif112 closed 3 years ago
Thanks in Advance :) I am using Linux Mint MATE 20.0 64bit
Full log
(.env) alif@alif-host:/home/vpn/algo$ sudo ./algo [WARNING]: Could not match supplied host pattern, ignoring: vpn-host PLAY [localhost] **************************************************************************************************************************** TASK [Gathering Facts] ********************************************************************************************************************** ok: [localhost] TASK [Playbook dir stat] ******************************************************************************************************************** ok: [localhost] TASK [Ensure Ansible is not being run in a world writable directory] ************************************************************************ ok: [localhost] => { "changed": false, "msg": "All assertions passed" } TASK [Ensure the requirements installed] **************************************************************************************************** ok: [localhost] TASK [Set required ansible version as a fact] *********************************************************************************************** ok: [localhost] => (item=ansible==2.9.7) TASK [Verify Python meets Algo VPN requirements] ******************************************************************************************** ok: [localhost] => { "changed": false, "msg": "All assertions passed" } TASK [Verify Ansible meets Algo VPN requirements] ******************************************************************************************* ok: [localhost] => { "changed": false, "msg": "All assertions passed" } [WARNING]: Found variable using reserved name: no_log PLAY [Ask user for the input] *************************************************************************************************************** TASK [Gathering Facts] ********************************************************************************************************************** ok: [localhost] [Cloud prompt] What provider would you like to use? 1. DigitalOcean 2. Amazon Lightsail 3. Amazon EC2 4. Microsoft Azure 5. Google Compute Engine 6. Hetzner Cloud 7. Vultr 8. Scaleway 9. OpenStack (DreamCompute optimised) 10. CloudStack (Exoscale optimised) 11. Linode 12. Install to existing Ubuntu 18.04 or 20.04 server (for more advanced users) Enter the number of your desired provider : TASK [Cloud prompt] ************************************************************************************************************************* ok: [localhost] TASK [Set facts based on the input] ********************************************************************************************************* ok: [localhost] [Cellular On Demand prompt] Do you want macOS/iOS clients to enable "Connect On Demand" when connected to cellular networks? [y/N] : TASK [Cellular On Demand prompt] ************************************************************************************************************ ok: [localhost] [Wi-Fi On Demand prompt] Do you want macOS/iOS clients to enable "Connect On Demand" when connected to Wi-Fi? [y/N] : TASK [Wi-Fi On Demand prompt] *************************************************************************************************************** ok: [localhost] [Trusted Wi-Fi networks prompt] List the names of any trusted Wi-Fi networks where macOS/iOS clients should not use "Connect On Demand" (e.g., your home network. Comma-separated value, e.g., HomeNet,OfficeWifi,AlgoWiFi) : TASK [Trusted Wi-Fi networks prompt] ******************************************************************************************************** ok: [localhost] [Retain the PKI prompt] Do you want to retain the keys (PKI)? (required to add users in the future, but less secure) [y/N] : TASK [Retain the PKI prompt] **************************************************************************************************************** ok: [localhost] [DNS adblocking prompt] Do you want to enable DNS ad blocking on this VPN server? [y/N] : TASK [DNS adblocking prompt] **************************************************************************************************************** ok: [localhost] [SSH tunneling prompt] Do you want each user to have their own account for SSH tunneling? [y/N] : TASK [SSH tunneling prompt] ***************************************************************************************************************** ok: [localhost] TASK [Set facts based on the input] ********************************************************************************************************* ok: [localhost] PLAY [Provision the server] ***************************************************************************************************************** TASK [Gathering Facts] ********************************************************************************************************************** ok: [localhost] --> Please include the following block of text when reporting issues: Algo running on: Linux Mint 20 Created from git clone. Last commit: 70f9f91 Fix typo (#14145) Python 3.8.5 Runtime variables: algo_provider "local" algo_ondemand_cellular "True" algo_ondemand_wifi "True" algo_ondemand_wifi_exclude "eQ==" algo_dns_adblocking "True" algo_ssh_tunneling "True" wireguard_enabled "True" dns_encryption "True" TASK [Display the invocation environment] *************************************************************************************************** changed: [localhost -> localhost] TASK [Install the requirements] ************************************************************************************************************* ok: [localhost -> localhost] [local : pause] Enter the IP address of your server: (or use localhost for local installation): [localhost] : TASK [local : pause] ************************************************************************************************************************ ok: [localhost] TASK [local : Set the facts] **************************************************************************************************************** ok: [localhost] [local : pause] Enter the public IP address or domain name of your server: (IMPORTANT! This is used to verify the certificate) [localhost] : TASK [local : pause] ************************************************************************************************************************ ok: [localhost] TASK [local : Set the facts] **************************************************************************************************************** ok: [localhost] TASK [Set subjectAltName as a fact] ********************************************************************************************************* ok: [localhost] TASK [Add the server to an inventory group] ************************************************************************************************* changed: [localhost] TASK [debug] ******************************************************************************************************************************** ok: [localhost] => { "IP_subject_alt_name": "119.148.4.18" } [WARNING]: Reset is not implemented for this connection TASK [Wait 600 seconds for target connection to become reachable/usable] ******************************************************************** ok: [localhost -> localhost] => (item=localhost) PLAY [Configure the server and install required software] *********************************************************************************** TASK [common : Check the system] ************************************************************************************************************ ok: [localhost] included: /home/vpn/algo/roles/common/tasks/ubuntu.yml for localhost TASK [common : Gather facts] **************************************************************************************************************** ok: [localhost] TASK [common : Install unattended-upgrades] ************************************************************************************************* ok: [localhost] TASK [common : Configure unattended-upgrades] *********************************************************************************************** ok: [localhost] TASK [common : Periodic upgrades configured] ************************************************************************************************ ok: [localhost] TASK [common : Disable MOTD on login and SSHD] ********************************************************************************************** ok: [localhost] => (item={'regexp': '^session.*optional.*pam_motd.so.*', 'line': '# MOTD DISABLED', 'file': '/etc/pam.d/login'}) ok: [localhost] => (item={'regexp': '^session.*optional.*pam_motd.so.*', 'line': '# MOTD DISABLED', 'file': '/etc/pam.d/sshd'}) TASK [common : Ensure fallback resolvers are set] ******************************************************************************************* ok: [localhost] TASK [common : Loopback for services configured] ******************************************************************************************** ok: [localhost] TASK [common : systemd services enabled and started] **************************************************************************************** ok: [localhost] => (item=systemd-networkd) ok: [localhost] => (item=systemd-resolved) TASK [common : Check apparmor support] ****************************************************************************************************** ok: [localhost] TASK [common : Set fact if apparmor enabled] ************************************************************************************************ ok: [localhost] TASK [common : Define facts] **************************************************************************************************************** ok: [localhost] TASK [common : Set facts] ******************************************************************************************************************* ok: [localhost] TASK [common : Set IPv6 support as a fact] ************************************************************************************************** ok: [localhost] TASK [common : Check size of MTU] *********************************************************************************************************** ok: [localhost] TASK [common : Set OS specific facts] ******************************************************************************************************* ok: [localhost] TASK [common : Install tools] *************************************************************************************************************** ok: [localhost] included: /home/vpn/algo/roles/common/tasks/iptables.yml for localhost TASK [common : Iptables configured] ********************************************************************************************************* ok: [localhost] => (item={'src': 'rules.v4.j2', 'dest': '/etc/iptables/rules.v4'}) TASK [common : Sysctl tuning] *************************************************************************************************************** ok: [localhost] => (item={'item': 'net.ipv4.ip_forward', 'value': 1}) ok: [localhost] => (item={'item': 'net.ipv4.conf.all.forwarding', 'value': 1}) TASK [dns : dnscrypt-proxy ip-blacklist configured] ***************************************************************************************** ok: [localhost] TASK [dns : dnscrypt-proxy configured] ****************************************************************************************************** ok: [localhost] TASK [dns : Adblock script created] ********************************************************************************************************* ok: [localhost] TASK [dns : Adblock script added to cron] *************************************************************************************************** changed: [localhost] TASK [dns : Update adblock hosts] *********************************************************************************************************** ok: [localhost] [WARNING]: flush_handlers task does not support when conditional TASK [dns : dnscrypt-proxy enabled and started] ********************************************************************************************* changed: [localhost] TASK [wireguard : Ensure the required directories exist] ************************************************************************************ ok: [localhost -> localhost] => (item=configs/119.148.4.18/wireguard//.pki//preshared) ok: [localhost -> localhost] => (item=configs/119.148.4.18/wireguard//.pki//private) ok: [localhost -> localhost] => (item=configs/119.148.4.18/wireguard//.pki//public) ok: [localhost -> localhost] => (item=configs/119.148.4.18/wireguard//apple/ios) ok: [localhost -> localhost] => (item=configs/119.148.4.18/wireguard//apple/macos) TASK [wireguard : Generate private keys] **************************************************************************************************** failed: [localhost] (item=phone) => {"ansible_loop_var": "item", "changed": false, "cmd": "wg genkey", "item": "phone", "msg": "[Errno 2] No such file or directory: b'wg'", "rc": 2} failed: [localhost] (item=laptop) => {"ansible_loop_var": "item", "changed": false, "cmd": "wg genkey", "item": "laptop", "msg": "[Errno 2] No such file or directory: b'wg'", "rc": 2} failed: [localhost] (item=desktop) => {"ansible_loop_var": "item", "changed": false, "cmd": "wg genkey", "item": "desktop", "msg": "[Errno 2] No such file or directory: b'wg'", "rc": 2} failed: [localhost] (item=119.148.4.18) => {"ansible_loop_var": "item", "changed": false, "cmd": "wg genkey", "item": "119.148.4.18", "msg": "[Errno 2] No such file or directory: b'wg'", "rc": 2} included: /home/vpn/algo/playbooks/rescue.yml for localhost TASK [debug] ******************************************************************************************************************************** ok: [localhost] => { "fail_hint": [ "Sorry, but something went wrong!", "Please check the troubleshooting guide.", "https://trailofbits.github.io/algo/troubleshooting.html" ] } TASK [Fail the installation] **************************************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"} PLAY RECAP ********************************************************************************************************************************** localhost : ok=58 changed=4 unreachable=0 failed=1 skipped=29 rescued=1 ignored=0
12. Install to existing Ubuntu 18.04 or 20.04 server (for more advanced users)
You can only turn a system running Ubuntu Server 18.04 or 20.04 into an AlgoVPN.
Thanks in Advance :) I am using Linux Mint MATE 20.0 64bit
Full log