Yes, ConnectionRequestURL. IMHO, the ip in this parameter is the reliable one. 
This parameter is the only way the acs knows how to call cpe.Takim


 
 
  On Fri, Feb 22, 2019 at 3:59 AM, Victor Smirnov<[email protected]> 
wrote:   > How about extracting the ip address from management url parameter ? 

ConnectionRequestURL or any other similar parameter that CPE can adjust as it 
likes? I'd prefer something more reliable, especially when setting private CPE 
parameters.

> Done properly, the management IP would not be the users public IP address.... 
Not really following how this all is related to the question. 

Victor Smirnov 

From: Users <[email protected]> on behalf of Dan Morphis 
<[email protected]>
Sent: Thursday, February 21, 2019 4:47:52 PM
To: [email protected]; Community support for GenieACS users
Subject: Re: Access to sessionContext from sandbox
  
Done properly, the management IP would not be the users public IP address. 
IMHO, the CPE should have two networks. One strictly for management, one 
strictly for the customers traffic. Doing things this way allows you to switch 
a CPE from routed to bridged (and back). It allows you to have visibility on 
the CPE when its in bridged mode. You can also disable the routed/bridged 
interface when a customer doesn't pay. This prevents the equipment from 
hammering on your radius server.

-dan 

On Thu, Feb 21, 2019 at 1:24 AM Takim < [email protected]> wrote:

How about extracting the ip address from management url parameter ? 






On Thu, Feb 21, 2019 at 3:07 PM, Victor Smirnov 
< [email protected]> wrote: 
Hi, 
ref. https://github.com/genieacs/genieacs/pull/335.
it was a clumsy attempt to get the  httpRequest.connection.remoteAddress 
variable inside the sandbox.
So in a provisioning script one can have it like this: 
let remoteip = getContext().httpRequest.connection.remoteAddress; 
log ("INFO: Remote IP: " + remoteip); 
remoteip variable can be used in the authentication scripts. In my case, I 
don't know the CPEs serial numbers (don't really want to), but I know 
customers' IP addresses so I can push personalized CPE parameters once I know 
the remote IP.
Any other way to get that IP in the sandbox? 

Victor Smirnov 
_______________________________________________ 
Users mailing list 
[email protected] 
http://lists.genieacs.com/mailman/listinfo/users



_______________________________________________ 
Users mailing list 
[email protected] 
http://lists.genieacs.com/mailman/listinfo/users

  
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to