ovpnmcgen.rb 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +16 -3
- data/ChangeLog +3 -0
- data/README.md +6 -3
- data/features/gen_basic.feature +0 -7
- data/lib/ovpnmcgen/version.rb +1 -1
- data/lib/ovpnmcgen.rb +1 -1
- data/ovpnmcgen.rb.gemspec +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8d3f0580baa1a948a526b83986d6fd5c42f50ec
|
|
4
|
+
data.tar.gz: ebcf4f757ce5c1f46c00fde71db26b59c2ef913b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98012329bd990d08a71b8825d93a7fae52b8aff2645fbbf9fe519abf3b613ad4e11885aded0e08d94444da42bb11aa28b51c993c41c67a2c783266c98ba791c8
|
|
7
|
+
data.tar.gz: 31efba1f7f54a78099ea8eeb2d26cfa0aa0eb266d96d87b860dbecc19e13938e01565280ff46bff1bc0d34b2f0278bb910092f9a116c290ea0a1320b5fdd4af1
|
data/.travis.yml
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
language: ruby
|
|
2
|
+
|
|
2
3
|
before_install:
|
|
3
4
|
- gem update bundler
|
|
4
5
|
- bundle version
|
|
6
|
+
|
|
5
7
|
rvm:
|
|
6
|
-
- 1.9.3
|
|
7
|
-
- 2.0.0
|
|
8
|
-
- 2.1
|
|
8
|
+
- "1.9.3"
|
|
9
|
+
- "2.0.0"
|
|
10
|
+
- "2.1"
|
|
9
11
|
- ruby-head
|
|
10
12
|
- jruby-19mode
|
|
11
13
|
|
|
@@ -13,3 +15,14 @@ matrix:
|
|
|
13
15
|
fast_finish: true
|
|
14
16
|
allow_failures:
|
|
15
17
|
- rvm: ruby-head
|
|
18
|
+
- rvm: jruby-19mode
|
|
19
|
+
|
|
20
|
+
deploy:
|
|
21
|
+
provider: rubygems
|
|
22
|
+
api_key:
|
|
23
|
+
secure: BQQeiJ84RINkM5Pxm7zFSAbOS2T5THi+37CoswQXe5eTi+0PIl14plWJByGOj2ho2e6kam5XU/VUgQzDexhkFz174QDP+BIuhdNxRMuMqgKuffi0Cyb9CM7JybpsB+Yd97X3nNxiubR/qoJPQ5nvG1SvCuF2TK3Zq8cL5VfxZ9o=
|
|
24
|
+
gem: ovpnmcgen.rb
|
|
25
|
+
on:
|
|
26
|
+
tags: true
|
|
27
|
+
repo: "iphoting/ovpnmcgen.rb"
|
|
28
|
+
branch: master
|
data/ChangeLog
CHANGED
data/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Although there are many possible VPN-on-Demand (VoD) triggers, this utility curr
|
|
|
15
15
|
- Else if wireless SSID matches any specified with `--untrusted-ssids`, unconditionally bring up the VPN connection on the next network attempt.
|
|
16
16
|
- Else if the primary network interface becomes Wifi (any SSID except those above), unconditionally bring up the VPN connection on the next network attempt.
|
|
17
17
|
- Else if the primary network interface becomes Cellular, leave any existing VPN connection up, but do not reconnect on demand.
|
|
18
|
-
- Else,
|
|
18
|
+
- Else, leave any existing VPN connection up, but do not reconnect on demand.
|
|
19
19
|
|
|
20
20
|
Note: The other match triggers, such as `DNSDomainMatch`, `DNSServerAddressMatch`, and per-connection domain inspection (`ActionParameters`), are not implemented. I reckon some kind of DSL will need to be built to support them; pull-requests are welcome.
|
|
21
21
|
|
|
@@ -91,7 +91,7 @@ For 'paranoid' security level, the following algorithm is executed upon network
|
|
|
91
91
|
- Else if wireless SSID matches any specified with `--untrusted-ssids`, unconditionally bring up the VPN connection on the next network attempt.
|
|
92
92
|
- Else if the primary network interface becomes Wifi (any SSID except those above), unconditionally bring up the VPN connection on the next network attempt.
|
|
93
93
|
- Else if the primary network interface becomes Cellular, unconditionally bring up the VPN connection on the next network attempt.
|
|
94
|
-
- Else,
|
|
94
|
+
- Else, leave any existing VPN connection up, but do not reconnect on demand.
|
|
95
95
|
|
|
96
96
|
For 'medium' security level, the following algorithm is executed upon network changes, in order:
|
|
97
97
|
|
|
@@ -99,7 +99,7 @@ For 'medium' security level, the following algorithm is executed upon network ch
|
|
|
99
99
|
- Else if wireless SSID matches any specified with `--untrusted-ssids`, unconditionally bring up the VPN connection on the next network attempt.
|
|
100
100
|
- Else if the primary network interface becomes Wifi (any SSID except those above), leave any existing VPN connection up, but do not reconnect on demand.
|
|
101
101
|
- Else if the primary network interface becomes Cellular, leave any existing VPN connection up, but do not reconnect on demand.
|
|
102
|
-
- Else,
|
|
102
|
+
- Else, leave any existing VPN connection up, but do not reconnect on demand.
|
|
103
103
|
|
|
104
104
|
### URL Probe
|
|
105
105
|
|
|
@@ -359,6 +359,9 @@ Output similar to above:
|
|
|
359
359
|
## TODO
|
|
360
360
|
|
|
361
361
|
- Config file to specify global options, such as `--cafile`, `--tafile`, `--host`, `--[un]trusted-ssids`.
|
|
362
|
+
|
|
363
|
+
See commit `#d9c015618` for feature.
|
|
364
|
+
|
|
362
365
|
- Batch-operation mode, with CSV-file as input, and a CSV UUID-index file to track generated profiles as output.
|
|
363
366
|
|
|
364
367
|
The same UUID should be used for profile updates, so that iOS knows which profile to replace, especially in MDM environments.
|
data/features/gen_basic.feature
CHANGED
|
@@ -143,13 +143,6 @@ Feature: Basic Generate Functionality
|
|
|
143
143
|
"""
|
|
144
144
|
<key>URLStringProbe</key>
|
|
145
145
|
"""
|
|
146
|
-
And the output should not match:
|
|
147
|
-
"""
|
|
148
|
-
<dict>
|
|
149
|
-
\s*<key>Action</key>
|
|
150
|
-
\s*<string>Ignore</string>
|
|
151
|
-
\s*</dict>
|
|
152
|
-
"""
|
|
153
146
|
|
|
154
147
|
Scenario: The [un]trusted-ssids flags are set.
|
|
155
148
|
When I run `ovpnmcgen.rb g --host aruba.cucumber.org --cafile ca.crt --p12file p12file.p12 --trusted-ssids trusted1,trusted2 --untrusted-ssids evil3,evil4 cucumber aruba`
|
data/lib/ovpnmcgen/version.rb
CHANGED
data/lib/ovpnmcgen.rb
CHANGED
data/ovpnmcgen.rb.gemspec
CHANGED
|
@@ -6,6 +6,7 @@ require 'ovpnmcgen/version'
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "ovpnmcgen.rb"
|
|
8
8
|
spec.version = Ovpnmcgen::VERSION
|
|
9
|
+
spec.version = "#{spec.version}-pre-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
|
9
10
|
spec.authors = ["Ronald Ip"]
|
|
10
11
|
spec.email = ["myself@iphoting.com"]
|
|
11
12
|
spec.summary = Ovpnmcgen::SUMMARY
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ovpnmcgen.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ronald Ip
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05
|
|
11
|
+
date: 2014-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|