Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

setting ip for dropbear #28

Open
aqueos opened this issue May 31, 2019 · 1 comment
Open

setting ip for dropbear #28

aqueos opened this issue May 31, 2019 · 1 comment

Comments

@aqueos
Copy link

aqueos commented May 31, 2019

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.

@ekohl
Copy link
Member

ekohl commented Apr 5, 2020

Please submit this as a pull request. Merging this is complicated and it sounds like you already have the changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants