<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>
<p>On 2022-09-23 9:35 am, 方媛 wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p style="font-family: SimSun;"><span style="font-size: 14px;">Hi, I need you help about dropbear subsystem for netconf.</span></p>
<p style="text-align: justify;"><span style="font-size: 14px;"><span style="font-family: SimSun;">IF I use sshd for netconf(</span><span style="font-family: courier, 'courier new', monospace; white-space: normal; background-color: #ffffff;">NETCONF SSH binding rfc6242</span><span style="font-family: SimSun;">),the net topology is here. netconf_cli and sshd established TCP connection throuth port 830, sshd subsystem(netconf_subsystem) and netconfd-server </span><span style="white-space: normal;"><span style="font-family: SimSun;">established </span><span style="white-space: normal;"><span style="font-family: SimSun;">local socket connection. So when sshd port 830 received data, sshd send to netconf_subsystem stdin, then netconf_subsystem forward data to netconfd-server.</span></span></span></span></p>
<p style="font-family: SimSun;"><span style="font-size: 14px;"><img src="cid:16643332556333b5c724a30269730995@ucc.asn.au" /></span></p>
<p style="font-family: SimSun;"><span style="font-size: 14px;">How can I do this on dropbear. Does it need to be implemented via dbclient? what is the command? How to build the topology.</span></p>
<p style="font-family: SimSun;">Thanks very much.</p>
</blockquote>
<p>Hi,</p>
<p>On the node1 side, I think your netconf client program will run dbclient as "dbclient -p 830 -s netconf node2.example.com", and use that for the SSH transport.</p>
<p>On the node2 server side Dropbear would need to be modified so that it will run a "netconf_subsystem" program when it gets a request for "netconf". You could use sftp as an example, that runs the configured program SFTPSERVER_PATH. See <a href="https://github.com/mkj/dropbear/blob/17e02fe614065025a11d544ec17264f209272f11/svr-chansession.c#L687">https://github.com/mkj/dropbear/blob/17e02fe614065025a11d544ec17264f209272f11/svr-chansession.c#L687</a></p>
<p>I'm not entirely clear on what configuration you're trying to set up - let me know if you have questions.</p>
<p>Cheers,<br />Matt</p>
</body></html>