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.<div id="yMail_cursorElementTracker_1550966607700">Takim<br><br><div id="ymail_android_signature"><br></div> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Fri, Feb 22, 2019 at 3:59 AM, Victor Smirnov</div><div><victorvsmirnov@gmail.com> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div id="yiv4769302032"><div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
> How about extracting the ip address from management url parameter ? <br clear="none">
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
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.
<br clear="none">
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
> Done properly, the management IP would not be the users public IP address.... <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
Not really following how this all is related to the question. <br clear="none">
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
Victor Smirnov <br clear="none">
</div>
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<b><font color="#000000">From:</font></b><font color="#000000"> Users <users-bounces@lists.genieacs.com> on behalf of Dan Morphis <dan@milkcarton.com></font><br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<b><font color="#000000">Sent:</font></b><font color="#000000"> Thursday, February 21, 2019 4:47:52 PM</font><br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<b><font color="#000000">To:</font></b><font color="#000000"> takimp@yahoo.com; Community support for GenieACS users</font><br clear="none">
</div>
<div class="yiv4769302032yqt3703880535 yQTDBase" id="yiv4769302032yqtfd88481"><div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<b><font color="#000000">Subject:</font></b><font color="#000000"> Re: Access to sessionContext from sandbox</font>
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
  <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
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.
<br clear="none">
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
-dan <br clear="none">
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
On Thu, Feb 21, 2019 at 1:24 AM Takim < <a rel="nofollow" shape="rect" ymailto="mailto:takimp@yahoo.com" target="_blank" href="mailto:takimp@yahoo.com">takimp@yahoo.com</a>> wrote:
<br clear="none">
</div>
<blockquote type="cite">
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
How about extracting the ip address from management url parameter ? <br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
</div>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
On Thu, Feb 21, 2019 at 3:07 PM, Victor Smirnov <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
< <a rel="nofollow" shape="rect" ymailto="mailto:victorvsmirnov@gmail.com" target="_blank" href="mailto:victorvsmirnov@gmail.com">victorvsmirnov@gmail.com</a>> wrote: <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
Hi, <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
ref. <a rel="nofollow" shape="rect" target="_blank" href="https://github.com/genieacs/genieacs/pull/335">https://github.com/genieacs/genieacs/pull/335</a>.
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
it was a clumsy attempt to get the  httpRequest.connection.remoteAddress variable inside the sandbox.
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
So in a provisioning script one can have it like this: <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
let remoteip = getContext().httpRequest.connection.remoteAddress; <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
log ("INFO: Remote IP: " + remoteip); <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
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.
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
Any other way to get that IP in the sandbox? <br clear="none">
<br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
Victor Smirnov <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
_______________________________________________ <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
Users mailing list <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<a rel="nofollow" shape="rect" ymailto="mailto:Users@lists.genieacs.com" target="_blank" href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a> <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.genieacs.com/mailman/listinfo/users">http://lists.genieacs.com/mailman/listinfo/users</a>
<br clear="none">
</div>
</blockquote>
</blockquote>
<blockquote type="cite">
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
_______________________________________________ <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
Users mailing list <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<a rel="nofollow" shape="rect" ymailto="mailto:Users@lists.genieacs.com" target="_blank" href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a> <br clear="none">
</div>
<div style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black;">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.genieacs.com/mailman/listinfo/users">http://lists.genieacs.com/mailman/listinfo/users</a>
<br clear="none">
</div>
</blockquote>
</div></div></div> </div> </blockquote></div>