GenieACS1.2.9
Running GenieACS on a specific secondary IP (movable to failover machine). The IP is just a
second IP in the same subnet as the main interface.
Using GENIECS_CWMP_INTERFACE and GENIEACS_UI_INTERFACE I can specify
this IP-address and GenieACS will only bind/listen to the specific address ‘w.x.y.z:7457 LISTEN’
instead of ‘*:7457 LISTEN’.
Unfortunately it looks like the GENIECS_CWMP_INTERFACE setting is not used for outgoing
connection requests to the devices, instead the primary IP of the interface is used. Some devices
block access (even if the credentials are correct), since the source-ip of the tcp-connection is not
the same as the ACS-server they connected to.
I could hack lib/connection-request.ts to add ‘LocalAddress’ to the options of http.get, but I don’t know
if it’s also used for other connections than outgoing CWMP. Maybe in connectionRequest in api-functions.ts ? Don’t want to dig to deep in the code, but it would be nice to have a solution.