Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the openvpn.conf #203

Closed
wants to merge 5 commits into from
Closed

Enhance the openvpn.conf #203

wants to merge 5 commits into from

Conversation

leibaogit
Copy link

  1. Add -U option for the duplication option;
  2. Update the push route can only use the net mask. Changed to IP/prefix as the -r option

leibaogit and others added 2 commits January 13, 2017 18:47
2: Update the push route can only use the net mask. Changed to IP/prefix as the -r option
Enhance the openvpn confige generater
@@ -118,7 +119,7 @@ process_push_config() {
local ovpn_push_config=''
ovpn_push_config="$1"
echo "Processing PUSH Config: '${ovpn_push_config}'"
[[ -n "$ovpn_push_config" ]] && echo "push $ovpn_push_config" >> "$TMP_PUSH_CONFIGFILE"
[[ -n "$ovpn_push_config" ]] && echo "push $(getroute $ovpn_push_config)" >> "$TMP_PUSH_CONFIGFILE"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get what you're trying to do here... but this section of for arbitrary push options, not only route pushes.

kylemanna and others added 3 commits January 13, 2017 21:09
* Implicit creation seems to have issues.
* Resolves issue kylemanna#175
…fore the fix, the openvpn.conf set "push 192.168.10.0 255.255.255.0" format in the push configuration, but this is not correct. It should be "push "route 192.168.10.0 255.255.255.0"".
@kylemanna
Copy link
Owner

Few trivial issues with this PR:

  1. It doesn't pass the CI tests
  2. The maintainer is changed
  3. No additional tests for new features

But more importantly, the duplicate-cn option is not recommended for normal use and won't be merged. People needing this feature are encouraged to pass the parameter directly to OpenVPN.

The process_push_route_config appears to break the existing functionality. That's why the Travis-CI build fails. I don't understand the motivation, can you explain more?

@kylemanna kylemanna closed this Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants