Opened 10 years ago

Closed 9 years ago

#3126 closed enhancement (fixed)

Allow the dropbear init script to spawn multiple dropbear instances

Reported by: Giel van Schijndel <me@…> Owned by: developers
Priority: normal Milestone: Features Paradise
Component: packages Version:
Keywords: Cc:


The attached patch allows the execution of multiple dropbear instances when there are multiple configuration sections in /etc/config/dropbear. This allows runin one instance of dropbear on port X with password authentication enabled, and another on port Y with password authentication disabled for example.

This patch applies against trunk.

Attachments (1)

0001-Allow-the-dropbear-init-script-to-spawn-multiple-dro.patch (840 bytes) - added by Giel van Schijndel <me@…> 10 years ago.
allows the execution of multiple dropbear instances

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Giel van Schijndel <me@…>

allows the execution of multiple dropbear instances

comment:1 Changed 10 years ago by Luboš Staněk <lubek@…>

It is not sufficient.

You need at least a different pidfile for every instance.

A multi configuration is supported by the rc scripts and you can even start/stop a particular instance. It would be great to support more command line parameters as well.

comment:2 Changed 9 years ago by nico

  • Milestone set to Kamikaze Features Paradize

comment:3 Changed 9 years ago by Maddes <maddes_trac@…>

Multiple instances are also effect by another issue due to the simple killall command for stop.

As a workaround duplicate the dropbear script in /etc/init.d as dropbear2, and also the dropbear config in /etc/config as dropbear2.

Then change the following inside the script:

  • Add the dropbear parameter -P /var/run/ to DROPBEAR_ARGS
  • Use config_load dropbear2

Change the port in /etc/config/dropbear2.

Enable the 2nd DropBear instance with:

chmod +x /etc/init.d/dropbear2
/etc/init.d/dropbear2 enable
/etc/init.d/dropbear2 start

comment:4 Changed 9 years ago by Maddes <maddes_trac@…>

Working fix available at #5498

comment:5 Changed 9 years ago by Maddes <maddes_trac@…>

Fixed. Multiple instances possible with trunk revision [17113].
Please close.

comment:6 Changed 9 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.