Commit graph

1723 commits

Author SHA1 Message Date
tc1977
b01a144b97 Update ipsec_configuration and add custom charon.conf 2019-03-27 11:38:34 -04:00
TC1977
cef6803f64
Merge pull request #7 from TC1977/sync-branch
Trying to sync again
2019-03-27 11:35:15 -04:00
TC1977
0f0ffb87c9 Update mobileconfig.j2
Not sure why I had it at 120 for this. I'm running fine with both IKE lifetime and CHILD_SA lifetimes at 1440 (Apple default).
2019-03-26 14:18:53 -04:00
TC1977
1540608f8a Change server-side ipsec.conf settings
Switching to inline rekeying from reauthentication, and lengthening child_SA and IKE_SA lifetimes.
2019-03-26 14:18:53 -04:00
TC1977
d4da77eedf Update mobileconfig.j2
Changes Child_SA lifetime to 2 hours, and IKE_SA lifetime to 12 hrs (Apple default is actually 12h for both).
2019-03-26 14:18:53 -04:00
TC1977
002c27387a Merge branch 'master' of https://github.com/TC1977/algo 2019-03-26 14:17:21 -04:00
TC1977
97fc011931 Merge pull request #6 from TC1977/sync-branch
Sync branch
2019-03-26 12:48:16 -04:00
TC1977
bdb3634e92
Merge pull request #6 from TC1977/sync-branch
Sync branch
2019-03-26 12:48:16 -04:00
tc1977
a93c118a4b Merge branch 'trailofbits-master' into sync-branch 2019-03-26 12:46:26 -04:00
TC1977
d3be0ae078 Merge branch 'master' of https://github.com/trailofbits/algo into trailofbits-master 2019-03-26 13:56:03 -04:00
tc1977
ba0a79e2d1 Merge branch 'trailofbits-master' into sync-branch 2019-03-26 12:46:26 -04:00
tc1977
30756188da Merge branch 'master' of https://github.com/trailofbits/algo into trailofbits-master 2019-03-26 12:44:41 -04:00
adamluk
374919cee7 Update 10-algo-lo100.network.j2 (#1369) 2019-03-25 08:55:38 +01:00
adamluk
d996b1d02f Update 10-algo-lo100.network.j2 (#1369) 2019-03-25 08:55:38 +01:00
Fabian Foerg
fea0612131 Simplify Apple Profile Configuration Template (#1033)
* Simplify Apple Profile Configuration Template

* enable lstrip_blocks

* remove ldashes
2019-03-19 17:49:18 +01:00
Fabian Foerg
13c4628b5d Simplify Apple Profile Configuration Template (#1033)
* Simplify Apple Profile Configuration Template

* enable lstrip_blocks

* remove ldashes
2019-03-19 17:49:18 +01:00
Jack Ivanov
82def687ee Update CHANGELOG.md 2019-03-19 08:57:05 +01:00
Jack Ivanov
58ce62e2bd
Update CHANGELOG.md 2019-03-19 08:57:05 +01:00
Dan Guido
ba11ca623c AGPLv3 change (#1351) 2019-03-17 11:19:24 -04:00
Dan Guido
db34d55b78
AGPLv3 change (#1351) 2019-03-17 11:19:24 -04:00
Jack Ivanov
13314dfaea Modify naming in the cloud resources and client config files (#1353)
* Modify naming in the cloud resources and client config files

* Azure template: Eliminate unneeded variables
2019-03-15 18:16:26 +01:00
Jack Ivanov
30beadb949
Modify naming in the cloud resources and client config files (#1353)
* Modify naming in the cloud resources and client config files

* Azure template: Eliminate unneeded variables
2019-03-15 18:16:26 +01:00
Jack Ivanov
6d73c908a6 Start dnscrypt-proxy after systemd-resolved (#1357) 2019-03-14 18:11:57 +01:00
Jack Ivanov
4ae5972f94
Start dnscrypt-proxy after systemd-resolved (#1357) 2019-03-14 18:11:57 +01:00
Ryan Kasper
9f190617b9 Fix typo in doctl command (#1350) 2019-03-11 22:08:09 -04:00
Ryan Kasper
3428c5197e Fix typo in doctl command (#1350) 2019-03-11 22:08:09 -04:00
Les Aker
8b5920067f skip generation of SSH keypair when deploying locally (#1348) 2019-03-11 13:29:39 +01:00
Les Aker
9b89801b8a skip generation of SSH keypair when deploying locally (#1348) 2019-03-11 13:29:39 +01:00
Jack Ivanov
9b6da9175b Refactoring (#1334)
<!--- Provide a general summary of your changes in the Title above -->

## Description
Renames the vpn role to strongswan, and split up the variables to support 2 separate VPNs. Closes #1330 and closes #1162
Configures Ansible to use python3 on the server side. Closes #1024 
Removes unneeded playbooks, reorganises a lot of variables
Reorganises the `config` folder. Closes #1330
<details><summary>Here is how the config directory looks like now</summary>
<p>

```
configs/X.X.X.X/
|-- ipsec
|   |-- apple
|   |   |-- desktop.mobileconfig
|   |   |-- laptop.mobileconfig
|   |   `-- phone.mobileconfig
|   |-- manual
|   |   |-- cacert.pem
|   |   |-- desktop.p12
|   |   |-- desktop.ssh.pem
|   |   |-- ipsec_desktop.conf
|   |   |-- ipsec_desktop.secrets
|   |   |-- ipsec_laptop.conf
|   |   |-- ipsec_laptop.secrets
|   |   |-- ipsec_phone.conf
|   |   |-- ipsec_phone.secrets
|   |   |-- laptop.p12
|   |   |-- laptop.ssh.pem
|   |   |-- phone.p12
|   |   `-- phone.ssh.pem
|   `-- windows
|       |-- desktop.ps1
|       |-- laptop.ps1
|       `-- phone.ps1
|-- ssh-tunnel
|   |-- desktop.pem
|   |-- desktop.pub
|   |-- laptop.pem
|   |-- laptop.pub
|   |-- phone.pem
|   |-- phone.pub
|   `-- ssh_config
`-- wireguard
    |-- desktop.conf
    |-- desktop.png
    |-- laptop.conf
    |-- laptop.png
    |-- phone.conf
    `-- phone.png
```

![finder](https://i.imgur.com/FtOmKO0.png)

</p>
</details>

## Motivation and Context
This refactoring is focused to aim to the 1.0 release

## How Has This Been Tested?
Deployed to several cloud providers with various options enabled and disabled

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [x] Refactoring

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [x] I have read the **CONTRIBUTING** document.
- [x] My code follows the code style of this project.
- [x] My change requires a change to the documentation.
- [x] I have updated the documentation accordingly.
- [x] All new and existing tests passed.
2019-03-10 13:16:34 -04:00
Jack Ivanov
273c7665d3 Refactoring (#1334)
<!--- Provide a general summary of your changes in the Title above -->

## Description
Renames the vpn role to strongswan, and split up the variables to support 2 separate VPNs. Closes #1330 and closes #1162
Configures Ansible to use python3 on the server side. Closes #1024 
Removes unneeded playbooks, reorganises a lot of variables
Reorganises the `config` folder. Closes #1330
<details><summary>Here is how the config directory looks like now</summary>
<p>

```
configs/X.X.X.X/
|-- ipsec
|   |-- apple
|   |   |-- desktop.mobileconfig
|   |   |-- laptop.mobileconfig
|   |   `-- phone.mobileconfig
|   |-- manual
|   |   |-- cacert.pem
|   |   |-- desktop.p12
|   |   |-- desktop.ssh.pem
|   |   |-- ipsec_desktop.conf
|   |   |-- ipsec_desktop.secrets
|   |   |-- ipsec_laptop.conf
|   |   |-- ipsec_laptop.secrets
|   |   |-- ipsec_phone.conf
|   |   |-- ipsec_phone.secrets
|   |   |-- laptop.p12
|   |   |-- laptop.ssh.pem
|   |   |-- phone.p12
|   |   `-- phone.ssh.pem
|   `-- windows
|       |-- desktop.ps1
|       |-- laptop.ps1
|       `-- phone.ps1
|-- ssh-tunnel
|   |-- desktop.pem
|   |-- desktop.pub
|   |-- laptop.pem
|   |-- laptop.pub
|   |-- phone.pem
|   |-- phone.pub
|   `-- ssh_config
`-- wireguard
    |-- desktop.conf
    |-- desktop.png
    |-- laptop.conf
    |-- laptop.png
    |-- phone.conf
    `-- phone.png
```

![finder](https://i.imgur.com/FtOmKO0.png)

</p>
</details>

## Motivation and Context
This refactoring is focused to aim to the 1.0 release

## How Has This Been Tested?
Deployed to several cloud providers with various options enabled and disabled

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [x] Refactoring

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [x] I have read the **CONTRIBUTING** document.
- [x] My code follows the code style of this project.
- [x] My change requires a change to the documentation.
- [x] I have updated the documentation accordingly.
- [x] All new and existing tests passed.
2019-03-10 13:16:34 -04:00
Jack Ivanov
e4ccc18ab0 Update cloud-pre.yml 2019-03-06 13:04:20 +01:00
Jack Ivanov
7e7476ec6b
Update cloud-pre.yml 2019-03-06 13:04:20 +01:00
Tim H
2e3c27f643 Add catch-all VPN On Demand Rule (#739)
If a user is not connected to a trusted Wi-Fi network or if the
URLStringProbe fails none of the existing dictionaries match.

According to the Apple Configuration Profile Reference[1] section "VPN
Payload > On Demand Rules Dictionary Keys" a default behavior for
unknown networks with no matching criteria should always be set as the
last dictionary in the array. The current default behavior is to allow a
connection to occur, but this behavior is not guaranteed.

Tear down the VPN connection and do not reconnect on demand as long as
the catch-all dictionary matches to guarantee the default behavior and
more specifically allow users to access captive portals.

[1]: https://developer.apple.com/library/content/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html
2019-02-26 17:40:29 +01:00
Tim H
b4740185e8 Add catch-all VPN On Demand Rule (#739)
If a user is not connected to a trusted Wi-Fi network or if the
URLStringProbe fails none of the existing dictionaries match.

According to the Apple Configuration Profile Reference[1] section "VPN
Payload > On Demand Rules Dictionary Keys" a default behavior for
unknown networks with no matching criteria should always be set as the
last dictionary in the array. The current default behavior is to allow a
connection to occur, but this behavior is not guaranteed.

Tear down the VPN connection and do not reconnect on demand as long as
the catch-all dictionary matches to guarantee the default behavior and
more specifically allow users to access captive portals.

[1]: https://developer.apple.com/library/content/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html
2019-02-26 17:40:29 +01:00
Demian
e06a087d57 fix OS is undefined error (#1335) 2019-02-26 12:19:34 +01:00
Demian
5e5424df69 fix OS is undefined error (#1335) 2019-02-26 12:19:34 +01:00
Jack Ivanov
80f03c5d42 Support for custom domain names in the endpoint (#1337) 2019-02-25 17:58:09 +01:00
Jack Ivanov
ec56203b87
Support for custom domain names in the endpoint (#1337) 2019-02-25 17:58:09 +01:00
Jack Ivanov
ee362ca9ba Disable wireguard PersistentKeepalive by default (#1338) 2019-02-25 17:56:19 +01:00
Jack Ivanov
216cd09dcf
Disable wireguard PersistentKeepalive by default (#1338) 2019-02-25 17:56:19 +01:00
Jack Ivanov
3d15d97144 Closes #1059 2019-02-22 16:00:47 +01:00
Jack Ivanov
bfe168d31c
Closes #1059 2019-02-22 16:00:47 +01:00
David Myers
aa753419d4 Clarify prompts (#1331) 2019-02-20 10:08:25 -05:00
David Myers
5cb1fdd339 Clarify prompts (#1331) 2019-02-20 10:08:25 -05:00
David Myers
aac64a257c Document using WireGuard app on macOS (#1327)
* Document using WireGuard app on macOS

* Update README.md

* Make WireGuard the default for Apple devices

* clarify user list

* fix tests

* connect on demand
2019-02-17 18:38:19 -05:00
David Myers
df3d547fb3 Document using WireGuard app on macOS (#1327)
* Document using WireGuard app on macOS

* Update README.md

* Make WireGuard the default for Apple devices

* clarify user list

* fix tests

* connect on demand
2019-02-17 18:38:19 -05:00
David Myers
4be614fa35 Add note about new WireGuard for iOS default MTU (#1293) 2019-02-12 11:19:38 +01:00
David Myers
1be0908c51 Add note about new WireGuard for iOS default MTU (#1293) 2019-02-12 11:19:38 +01:00
Jack Ivanov
0c0bbc94bb Get started with Azure more easily (#1323) 2019-02-08 13:34:01 +01:00
Jack Ivanov
40b42c4f33
Get started with Azure more easily (#1323) 2019-02-08 13:34:01 +01:00