Skip to content

Commit 5d26d03

Browse files
committed
Merge branch 'release/v0.7.1'
2 parents 4e6e19b + e2ba5ee commit 5d26d03

File tree

6 files changed

+24
-16
lines changed

6 files changed

+24
-16
lines changed

.travis.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ rvm:
1212
- 2.5
1313
- 2.6
1414
- ruby-head
15-
- jruby-19mode
1615

1716
matrix:
1817
fast_finish: true
1918
allow_failures:
2019
- rvm: ruby-head
21-
- rvm: jruby-19mode
2220

2321
deploy:
2422
provider: rubygems
@@ -28,5 +26,5 @@ deploy:
2826
on:
2927
tags: true
3028
repo: "iphoting/ovpnmcgen.rb"
31-
ruby: 2.4
29+
ruby: 2.6
3230
branch: master

ChangeLog.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66

77

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+
813

914
<a name="v0.7.0"></a>
1015
## [v0.7.0] - 2019-08-31
@@ -100,7 +105,8 @@
100105
- Initial release
101106

102107

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
104110
[v0.7.0]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.6.0...v0.7.0
105111
[v0.6.0]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.5.0...v0.6.0
106112
[v0.5.0]: https://github.com/iphoting/ovpnmcgen.rb/compare/v0.5.0.pre...v0.5.0

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
OpenVPN iOS Configuration Profile Utility
44

5-
[![Stories in Ready](https://badge.waffle.io/iphoting/ovpnmcgen.rb.png?label=ready&title=Ready)](http://waffle.io/iphoting/ovpnmcgen.rb)
65
[![GitHub version](https://badge.fury.io/gh/iphoting%2Fovpnmcgen.rb.svg)](http://badge.fury.io/gh/iphoting%2Fovpnmcgen.rb)
76
[![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)
98

109
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.
1110

@@ -57,6 +56,7 @@ Usage: ovpnmcgen.rb generate [options] <user> <device>
5756
-c, --config FILE Specify path to config file. [Default: .ovpnmcgen.rb.yml]
5857
--cafile FILE Path to OpenVPN CA file. (Required)
5958
--tafile FILE Path to TLS-Auth Key file.
59+
--tlscryptfile FILE Path to TLS-Crypt Key file.
6060
--cert FILE Path to Cert file.
6161
--key FILE Path to Private Key file.
6262
--host HOSTNAME Hostname of OpenVPN server. (Required)
@@ -71,14 +71,18 @@ Usage: ovpnmcgen.rb generate [options] <user> <device>
7171
(changed since OpenVPN Connect 1.2.x). [Default: Disabled]
7272
--security-level LEVEL Security level of VPN-On-Demand Behaviour: paranoid, high, medium. [Default: high]
7373
--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.
7476
--profile-uuid UUID Override a Profile UUID.
7577
--cert-uuid UUID Override a Certificate payload UUID.
7678
-t, --trusted-ssids SSIDS List of comma-separated trusted SSIDs.
7779
-u, --untrusted-ssids SSIDS List of comma-separated untrusted SSIDs.
7880
-d, --domains DOMAINS List of comma-separated domain names requiring VPN service.
7981
--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.
8083
--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.
8286
--ovpnconfigfile FILE Path to OpenVPN client config file.
8387
-o, --output FILE Output to file. [Default: stdout]
8488
```

features/gen_basic.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ Feature: Basic Generate Functionality
378378
And the output should match:
379379
"""
380380
<key>Action</key>
381-
\s*<string>Disconnect</string>
381+
\s*<string>Ignore</string>
382382
\s*<key>InterfaceTypeMatch</key>
383383
\s*<string>Cellular</string>
384384
"""

lib/ovpnmcgen.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ def generate(inputs = {})
133133
vodCellularOnly = { # Trust Cellular
134134
'InterfaceTypeMatch' => 'Cellular',
135135
'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
143141
}
142+
143+
# Default catch-all to prevent circular race.
144144
vodDefault = { # Default catch-all
145145
'Action' => 'Ignore'
146146
}

lib/ovpnmcgen/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Ovpnmcgen
2-
VERSION = "0.7.0"
2+
VERSION = "0.7.1"
33
SUMMARY = "An OpenVPN iOS Configuration Profile (.mobileconfig) Utility"
44
end

0 commit comments

Comments
 (0)