Open aqueos opened 5 years ago
dropbear cannot listen to a specific ip with this setting.
I added:
# the TCP port that Dropbear listens on <% if $::dropbear::ip == "none" { %> DROPBEAR_PORT=<%= $dropbear::port_int %> <% } else{ %> DROPBEAR_PORT=<%= $dropbear::ip %>:<%= $dropbear::port_int %> <% } %>
# the TCP port that Dropbear listens on
<% if $::dropbear::ip == "none" { %>
DROPBEAR_PORT=<%= $dropbear::port_int %>
<% } else{ %>
DROPBEAR_PORT=<%= $dropbear::ip %>:<%= $dropbear::port_int %>
<% } %>
to the debian.pp
<% if $::dropbear::ip == "none" { -%> "-p ${dropbear::port_int}", <% } else{ -%> "-p ${dropbear::ip}:${dropbear::port_int}", <% } -%>
<% if $::dropbear::ip == "none" { -%>
"-p ${dropbear::port_int}",
<% } else{ -%>
"-p ${dropbear::ip}:${dropbear::port_int}",
<% } -%>
to the redhat one
and Stdlib::IP::Address $ip = 'none',
Stdlib::IP::Address $ip = 'none',
in the init.pp class parameters.
This way you can specify an ip to bind to.
hope that helps,
regards, Ghislain.
Please submit this as a pull request. Merging this is complicated and it sounds like you already have the changes.
dropbear cannot listen to a specific ip with this setting.
I added:
# the TCP port that Dropbear listens on
<% if $::dropbear::ip == "none" { %>
DROPBEAR_PORT=<%= $dropbear::port_int %>
<% } else{ %>
DROPBEAR_PORT=<%= $dropbear::ip %>:<%= $dropbear::port_int %>
<% } %>
to the debian.pp
<% if $::dropbear::ip == "none" { -%>
"-p ${dropbear::port_int}",
<% } else{ -%>
"-p ${dropbear::ip}:${dropbear::port_int}",
<% } -%>
to the redhat one
and
Stdlib::IP::Address $ip = 'none',
in the init.pp class parameters.
This way you can specify an ip to bind to.
hope that helps,
regards, Ghislain.