ovpnmcgen.rb 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ef44c3fa31e42f64bd986012e60ee32cb6ebb2f
4
- data.tar.gz: 66afa4c68f2d00f6d2b502402ade0397cf5981d8
3
+ metadata.gz: d8d3f0580baa1a948a526b83986d6fd5c42f50ec
4
+ data.tar.gz: ebcf4f757ce5c1f46c00fde71db26b59c2ef913b
5
5
  SHA512:
6
- metadata.gz: 3f4ba7bb60994c9cd443617b0ec24d5e8ebef7b53dd3cf28aae74475f12ca12c01dad9d2954bd199868272cabadc1170b906ef26307625b613f08090e64ccf09
7
- data.tar.gz: 3a3f40a2d17f28f25683e37d51a15c732937768b5d8a540c44c996740d445b44ae66b0a98c72d2893fc59508706451d50e5e70566196f244fc8eec57b12ed7dd
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
@@ -1,3 +1,6 @@
1
+ = 0.4.2 / 2014-07-05
2
+ * Bugfix: Default catch-all rule should be 'Ignore', any other option does not make sense.
3
+
1
4
  = 0.4.1 / 2014-05-07
2
5
  * Bugfix: SSIDs specified as a string in configfile now correctly output
3
6
  as arrays. (#a9e638)
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, unconditionally bring up the VPN connection on the next network attempt.
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, unconditionally bring up the VPN connection on the next network attempt.
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, unconditionally bring up the VPN connection on the next network attempt.
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.
@@ -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`
@@ -1,4 +1,4 @@
1
1
  module Ovpnmcgen
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  SUMMARY = "An OpenVPN iOS Configuration Profile (.mobileconfig) Utility"
4
4
  end
data/lib/ovpnmcgen.rb CHANGED
@@ -90,7 +90,7 @@ module Ovpnmcgen
90
90
  end
91
91
  }
92
92
  vodDefault = { # Default catch-all
93
- 'Action' => 'Connect'
93
+ 'Action' => 'Ignore'
94
94
  }
95
95
 
96
96
  # Insert URLStringProbe conditions when enabled with --url-probe
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2014-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler