ovpnmcgen.rb 0.7.0 → 0.7.1

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
  SHA256:
3
- metadata.gz: 9071e5c961bdcc1c388a8046e19ef9a6a38acfee9fec0fddef820de5abc53db1
4
- data.tar.gz: 1643a139e9f1ca64d8e0e8f925d1066b556e102a6bd6392570159a55a152005d
3
+ metadata.gz: 81014423745541cbf2aee3ebd024b941eb5091d505c7d3505511d4ed80ae0df2
4
+ data.tar.gz: e5cfca53a27b3d132ed502e49ccbdddbfb42606d266829830951d9a3aa1ddad1
5
5
  SHA512:
6
- metadata.gz: 92ae4717bbdc333dc7e3d1a7661b22d26f3116a527e776ccf44ce6982952698adb939345634ebad2171ed3cfcfc64168686ab2a18b41a3cf1bd729f4b474183c
7
- data.tar.gz: 1d15ba82e5b2e02057a566502c428054c77d243d5ffd0b37c94bc673bc7cbbcb0a69842a3cc8993855058a64cd5aa31a5a64055a8b27227faab1471e4b65a434
6
+ metadata.gz: 6b66f56555540930fb11bac82063397405aa81ce084ffbba6fbb4c021e0367113fe359e1a8bcec6b28248c6371644e0034984000994b19ad61e2a25d03903380
7
+ data.tar.gz: 1ed94cb01db3a364b3adfdb9406e283b0a4df73b4fb7bb1d93c5c5f6583ddfdff4e0d3ba77a0e2c7f6f18a5008c6274891e09582298c5a8516e73a875d79a841
@@ -12,13 +12,11 @@ rvm:
12
12
  - 2.5
13
13
  - 2.6
14
14
  - ruby-head
15
- - jruby-19mode
16
15
 
17
16
  matrix:
18
17
  fast_finish: true
19
18
  allow_failures:
20
19
  - rvm: ruby-head
21
- - rvm: jruby-19mode
22
20
 
23
21
  deploy:
24
22
  provider: rubygems
@@ -28,5 +26,5 @@ deploy:
28
26
  on:
29
27
  tags: true
30
28
  repo: "iphoting/ovpnmcgen.rb"
31
- ruby: 2.4
29
+ ruby: 2.6
32
30
  branch: master
@@ -5,6 +5,11 @@
5
5
 
6
6
 
7
7
 
8
+ <a name="v0.7.1"></a>
9
+ ## [v0.7.1] - 2019-09-09
10
+
11
+ - Bug fix: Do not disconnect from VPN over cellular if security level is medium ([#33](https://github.com/iphoting/ovpnmcgen.rb/issues/33))
12
+
8
13
 
9
14
  <a name="v0.7.0"></a>
10
15
  ## [v0.7.0] - 2019-08-31
@@ -100,7 +105,8 @@
100
105
  - Initial release
101
106
 
102
107
 
103
- [Unreleased]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.7.0...HEAD
108
+ [Unreleased]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.7.1...HEAD
109
+ [v0.7.1]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.7.0...v0.7.1
104
110
  [v0.7.0]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.6.0...v0.7.0
105
111
  [v0.6.0]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.5.0...v0.6.0
106
112
  [v0.5.0]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.5.0.pre...v0.5.0
data/README.md CHANGED
@@ -2,10 +2,9 @@
2
2
 
3
3
  OpenVPN iOS Configuration Profile Utility
4
4
 
5
- [![Stories in Ready](https://badge.waffle.io/iphoting/ovpnmcgen.rb.png?label=ready&title=Ready)](http://waffle.io/iphoting/ovpnmcgen.rb)
6
5
  [![GitHub version](https://badge.fury.io/gh/iphoting%2Fovpnmcgen.rb.svg)](http://badge.fury.io/gh/iphoting%2Fovpnmcgen.rb)
7
6
  [![Gem Version](https://badge.fury.io/rb/ovpnmcgen.rb.svg)](http://badge.fury.io/rb/ovpnmcgen.rb)
8
- [![Build Status](https://travis-ci.org/iphoting/ovpnmcgen.rb.svg?branch=master)](https://travis-ci.org/iphoting/ovpnmcgen.rb)
7
+ [![Build Status](https://travis-ci.org/iphoting/ovpnmcgen.rb.svg?branch=develop)](https://travis-ci.org/iphoting/ovpnmcgen.rb)
9
8
 
10
9
  Generates iOS configuration profiles (.mobileconfig) that configures OpenVPN for use with VPN-on-Demand that are not accessible through the Apple Configurator or the iPhone Configuration Utility.
11
10
 
@@ -57,6 +56,7 @@ Usage: ovpnmcgen.rb generate [options] <user> <device>
57
56
  -c, --config FILE Specify path to config file. [Default: .ovpnmcgen.rb.yml]
58
57
  --cafile FILE Path to OpenVPN CA file. (Required)
59
58
  --tafile FILE Path to TLS-Auth Key file.
59
+ --tlscryptfile FILE Path to TLS-Crypt Key file.
60
60
  --cert FILE Path to Cert file.
61
61
  --key FILE Path to Private Key file.
62
62
  --host HOSTNAME Hostname of OpenVPN server. (Required)
@@ -71,14 +71,18 @@ Usage: ovpnmcgen.rb generate [options] <user> <device>
71
71
  (changed since OpenVPN Connect 1.2.x). [Default: Disabled]
72
72
  --security-level LEVEL Security level of VPN-On-Demand Behaviour: paranoid, high, medium. [Default: high]
73
73
  --vpn-uuid UUID Override a VPN configuration payload UUID.
74
+ --vpn-name NAME Override a VPN configuration payload name displayed under
75
+ Settings.app > General > VPN.
74
76
  --profile-uuid UUID Override a Profile UUID.
75
77
  --cert-uuid UUID Override a Certificate payload UUID.
76
78
  -t, --trusted-ssids SSIDS List of comma-separated trusted SSIDs.
77
79
  -u, --untrusted-ssids SSIDS List of comma-separated untrusted SSIDs.
78
80
  -d, --domains DOMAINS List of comma-separated domain names requiring VPN service.
79
81
  --domain-probe-url PROBE An HTTP(S) URL to probe, using a GET request. If no HTTP response code is received from the server, a VPN connection is established in response.
82
+ --trusted-ssids-probe-url PROBE An HTTP(S) URL to probe, using a GET request. If no HTTP response code is received from the server, a VPN connection is established in response.
80
83
  --url-probe URL This URL must return HTTP status 200, without redirection, before the VPN service will try establishing.
81
- --remotes REMOTES List of comma-separated alternate remotes: "<host> <port> <proto>".
84
+ --remotes REMOTES List of comma-separated alternate remotes: "<host> <port> <proto>".
85
+ --idle-timer TIME Disconnect from VPN when idle for a certain period of time (in seconds) scenarios. Requires disabling "Reconnect On Wakeup" on OpenVPN.app.
82
86
  --ovpnconfigfile FILE Path to OpenVPN client config file.
83
87
  -o, --output FILE Output to file. [Default: stdout]
84
88
  ```
@@ -378,7 +378,7 @@ Feature: Basic Generate Functionality
378
378
  And the output should match:
379
379
  """
380
380
  <key>Action</key>
381
- \s*<string>Disconnect</string>
381
+ \s*<string>Ignore</string>
382
382
  \s*<key>InterfaceTypeMatch</key>
383
383
  \s*<string>Cellular</string>
384
384
  """
@@ -133,14 +133,14 @@ module Ovpnmcgen
133
133
  vodCellularOnly = { # Trust Cellular
134
134
  'InterfaceTypeMatch' => 'Cellular',
135
135
  'Action' => case inputs[:security_level]
136
- when 'paranoid'
137
- 'Connect'
138
- when 'high'
139
- 'Ignore'
140
- else # medium
141
- 'Disconnect'
142
- end
136
+ when 'paranoid'
137
+ 'Connect'
138
+ else # high, medium
139
+ 'Ignore'
140
+ end
143
141
  }
142
+
143
+ # Default catch-all to prevent circular race.
144
144
  vodDefault = { # Default catch-all
145
145
  'Action' => 'Ignore'
146
146
  }
@@ -1,4 +1,4 @@
1
1
  module Ovpnmcgen
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  SUMMARY = "An OpenVPN iOS Configuration Profile (.mobileconfig) Utility"
4
4
  end
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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronald Ip
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-31 00:00:00.000000000 Z
11
+ date: 2019-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,22 +76,22 @@ dependencies:
76
76
  name: plist
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: 3.5.0
82
79
  - - "~>"
83
80
  - !ruby/object:Gem::Version
84
81
  version: '3.5'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 3.5.0
85
85
  type: :runtime
86
86
  prerelease: false
87
87
  version_requirements: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: 3.5.0
92
89
  - - "~>"
93
90
  - !ruby/object:Gem::Version
94
91
  version: '3.5'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 3.5.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: commander
97
97
  requirement: !ruby/object:Gem::Requirement
@@ -182,7 +182,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.0.6
185
+ rubyforge_project:
186
+ rubygems_version: 2.7.7
186
187
  signing_key:
187
188
  specification_version: 4
188
189
  summary: An OpenVPN iOS Configuration Profile (.mobileconfig) Utility