You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected Puppet, Ruby, OS and module versions/distributions
Puppet: 5.5.10
Ruby: 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
Distribution: debian/stretch
Module version: 8.1.0
How to reproduce (e.g Puppet code you use)
What are you seeing
In my logs I get this error when clients using redirect_gateway: true connect
: [] Peer Connection Initiated with [AF_INET]:18068
: :18068 Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/tejas/client-configs/:2: push (2.4.0)
so i modified the template to put double quotes around all push options, now i have NO errors on connect and devices actually send traffic over the vpn, I would have submitted a PR, but I don't have an adequate test environment at the moment.
here is my fix diff
index e96edfc..750de0c 100644
--- a/templates/client_specific_config.erb
+++ b/templates/client_specific_config.erb
@@ -8,10 +8,10 @@ iroute-ipv6 <%= iroute_ipv6 %>
ifconfig-push <%= ifconfig %>
<% end -%>
<% @dhcp_options.each do |option| -%>
-push dhcp-option <%= option %>
+push "dhcp-option <%= option %>"
<% end -%>
<% if @redirect_gateway -%>
-push redirect-gateway def1
+push "redirect-gateway def1"
<% end -%>
<% @route.each do |route| -%>
push "route <%= route %>"
The text was updated successfully, but these errors were encountered:
@qs5779 It's fine to let travis do all your testing if you can't set up an environment locally. Just amend your commit with updates to tests and force push. Travis will automatically run the tests again.
Looking at the travis logs, probably just these two lines need updating.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
In my logs I get this error when clients using redirect_gateway: true connect
: [] Peer Connection Initiated with [AF_INET]:18068
: :18068 Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/tejas/client-configs/:2: push (2.4.0)
What behaviour did you expect instead
No errors
Output log
see above
Any additional information you'd like to impart
found this report: https://forums.openvpn.net/viewtopic.php?t=23184https://forums.openvpn.net/viewtopic.php?t=23184
so i modified the template to put double quotes around all push options, now i have NO errors on connect and devices actually send traffic over the vpn, I would have submitted a PR, but I don't have an adequate test environment at the moment.
here is my fix diff
index e96edfc..750de0c 100644
--- a/templates/client_specific_config.erb
+++ b/templates/client_specific_config.erb
@@ -8,10 +8,10 @@ iroute-ipv6 <%= iroute_ipv6 %>
ifconfig-push <%= ifconfig %>
<% end -%>
<% @dhcp_options.each do |option| -%>
-push dhcp-option <%= option %>
+push "dhcp-option <%= option %>"
<% end -%>
<% if @redirect_gateway -%>
-push redirect-gateway def1
+push "redirect-gateway def1"
<% end -%>
<% @route.each do |route| -%>
push "route <%= route %>"
The text was updated successfully, but these errors were encountered: