Address binding question

Matt Johnston matt at ucc.asn.au
Tue Dec 22 22:25:20 AWST 2020


Hi Emil,

That syntax should work. In my shell here (zsh) I have to put "[127.0.0.1]:22" in quotes, could that be the problem?

What commandline do you see if you look at "ps aux"?

Cheers,
Matt

> On Tue 22/12/2020, at 9:13 am, Emil Christopher Solli Melar <typeof at gmail.com> wrote:
> 
> Hello! I use Dropbear server v2019.78.
> My goal is to only make it bind to localhost so I don't have to block it with a firewall / iptables.
> It's run like this: /dropbear -i -r /var/lib/dropbear/dropbear_rsa_host_key -p [127.0.0.1]:22 -p [::1]:22 -s
> 
> I have tried to search via google but the documentation states that this is how you bind to specific addresses. I also tried -p 127.0.0.1:22 <http://127.0.0.1:22/> without the brackets.
> 
> I can confirm that the process is running using ps, but netstat shows:
> tcp        0      0 :::22                   :::*                    LISTEN
> 
> What am I missing here? It seems to bind to all no matter what.
> Thanks!
> -- 
> Emil Christopher Solli Melar

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20201222/d0df7d4a/attachment.htm>


More information about the Dropbear mailing list