IPv6 problem with netopeer server

126 views
Skip to first unread message

calvinc...@gmail.com

unread,
Dec 3, 2014, 4:41:04 PM12/3/14
to neto...@googlegroups.com
I have compiled and installed the netopeer server. It binds to the IPv4 address only.

I changed the sshd_config file to read
...
ListenAddress ::
...

and restarted the server. I see that the files sshd_config.netconf and sshd_config.running both picked up the changes, see below for output from "grep ListenAddress *"

sshd_config.netconf:ListenAddress ::
sshd_config.netconf:#ListenAddress 0.0.0.0
sshd_config.running:ListenAddress ::
sshd_config.running:#ListenAddress 0.0.0.0
sshd_config.running:ListenAddress 0.0.0.0:830

But the server still only listens on the IPv4 address only.

Am I missing anything?

Thanks!

Michal Vasko

unread,
Dec 4, 2014, 3:53:46 AM12/4/14
to neto...@googlegroups.com
Hi Calvin,

I have just committed a bugfix, please check whether it works now. Thanks.

Regards,
Michal

Calvin Cheng

unread,
Dec 4, 2014, 10:53:35 AM12/4/14
to neto...@googlegroups.com
Hi Michael,

Thanks for the quick fix. It works.

There is a different problem. If I specify ListenAddress in the file sshd_config, by uncommenting the line to read
ListenAddress ::

 I see the following error:

netopeer-server[9067]: callback_srv_netconf_srv_ssh_srv_listen_oneport: port 830
netopeer-server[9067]: callback_srv_netconf_srv_ssh_srv_listen: started sshd (PID 9068)
//usr/local/etc/netopeer/sshd_config.running line 91: ports must be specified before ListenAddress.

And SSHD won't listen on the port. If I comment out the line ListenAddress in sshd_config it works.

Regards,
Calvin

Michal Vasko

unread,
Dec 5, 2014, 2:35:28 AM12/5/14
to neto...@googlegroups.com
Hi Calvin,

netopeer sshd_config can be edited to some extent, but not the listening port and address. If you do, it will either be ignored or cause errors like it did in your case. These settings are created during netopeer-server startup (you can notice another file is created, sshd_config.running) based on its configuration. So, to change these listen settings, modify the "netconf" configuration. By default, the model describing it is in "/usr/local/etc/netopeer/cfgnetopeer/ietf-netconf-server.yin" and the datastore in "/usr/local/etc/netopeer/cfgnetopeer/datastore-server.xml". If not changed, it is empty and default listen settings are used - listen on 0.0.0.0:830 and ::0:830.

Regards,
Michal
Reply all
Reply to author
Forward
0 new messages