<div dir="ltr">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.<div><br></div><div>-dan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 21, 2019 at 1:24 AM Takim <<a href="mailto:takimp@yahoo.com">takimp@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How about extracting the ip address from management url parameter ?<br><br><div id="gmail-m_384645539648537653ymail_android_signature"><br></div> <br> <blockquote style="margin:0px 0px 20px"> <div style="font-family:Roboto,sans-serif;color:rgb(109,0,246)"> <div>On Thu, Feb 21, 2019 at 3:07 PM, Victor Smirnov</div><div><<a href="mailto:victorvsmirnov@gmail.com" target="_blank">victorvsmirnov@gmail.com</a>> wrote:</div> </div> <div style="padding:10px 0px 0px 20px;margin:10px 0px 0px;border-left:1px solid rgb(109,0,246)"> <div id="gmail-m_384645539648537653yiv0348483834"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div>ref. <a rel="nofollow" href="https://github.com/genieacs/genieacs/pull/335" target="_blank">https://github.com/genieacs/genieacs/pull/335</a>.</div><div>it was a clumsy attempt to get theĀ <span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">httpRequest.connection.remoteAddress variable inside the sandbox.</span></div><div>So in a provisioning script one can have it like this:<br></div><div><div>let remoteip = getContext().httpRequest.connection.remoteAddress;</div><div>log ("INFO: Remote IP: " + remoteip);</div></div><div>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.</div><div>Any other way to get that IP in the sandbox?<br></div><div><br clear="all"><div><div dir="ltr" class="gmail-m_384645539648537653yiv0348483834gmail_signature">Victor Smirnov</div></div></div></div></div></div></div></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br><a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br> </div> </blockquote>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
</blockquote></div>