F5 Sites
  • F5.com
  • LearnF5
  • NGINX
  • MyF5
  • Partner Central
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
Groups
EventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. Articles
  3. Technical Articles

Intelligent Proxy Steering - Office365

Introduction This solution started back in May 2015 when I was helping a customer bypass their forward proxy servers due to the significant increase in the number of client connections after movin...
Published Apr 20, 2018
Version 1.0
bypass
cloud
ip intelligence
LTM
proxy steering
Secure Web Gateway
security
Smithy's avatar
Smithy
Icon for Cirrostratus rankCirrostratus
Joined July 31, 2011
View Profile
Smithy's avatar
Smithy
Icon for Cirrostratus rankCirrostratus
Joined July 31, 2011
View Profile
Guy_iHealth's avatar
Guy_iHealth
Icon for Nimbostratus rankNimbostratus
Dec 11, 2019

Hello Brett,

 

I've tried to setup your solution as a test on a virtual F5.

I started with version 12.1.3 but because I got a syntax error unexpected token => when I try to load the plugin I upgraded to version 13.1.3.1 because I saw you used version 13.

But I still have the same error.

In the workspace no problem is mentioned, I can save the index.js but when the plugin is reloaded I see the following in the ltm log :

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] /var/sdm/plugin_store/plugins/:Common:lxpi_o365_tst_38969_15/extensions/lxex_o365_tst/index.js:75

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]   products.find().forEach((v, i) => {

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]                  ^^

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst] SyntaxError: Unexpected token =>

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]   at exports.runInThisContext (vm.js:73:16)

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]   at Module._compile (module.js:443:25)

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]   at Object.Module._extensions..js (module.js:478:10)

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]   at Module.load (module.js:355:32)

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]   at Function.Module._load (module.js:310:12)

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]   at Function.Module.runMain (module.js:501:10)

Dec 11 05:46:20 vlbintra err sdmd[23542]: 018e0018:3: pid[14104] plugin[/Common/lxpi_o365_tst.lxex_o365_tst]   at startup (node.js:129:16)

I'm not familiar with Javascript but this seams a valid syntax to me :

function logStatistics() {

   

  // statistics about entries in loki database.

  var v, i;

  console.log('info: ' + products.count() + ' serviceAreas found.');

  products.find().forEach((v, i) => {

    console.log ('info: serviceArea ' + v.name + ' holds ' + v.ipAddresses.length + ' IP addresses and ' + v.urls.length + ' URLs');

  });

}

Am I overlooking something ?

 

Thanks in advance.

Best regards,

Guy

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesF5 CertificationLearnF5 Training

SUPPORT

Manage SubscriptionsProfessional ServicesProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

F5 logo©2024 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information