uip is suppose to be the client ip address : https://github.com/inverse-inc/packetfence/blob/devel/lib/pf/Switch/Ruckus/SmartZone.pm#L51

can you force this parameter to be the ip ?


Le 2018-01-23 à 08:45, Support Procyon Networks a écrit :

Hello Fabrice,

Thanks for you reaction.

7.3.0

When the error happens I do web-auth,out of band, line where it hits the httpd.portal.access:

Jan 23 11:18:05 PacketFence-ZEN httpd_portal: 192.168.220.13 127.0.0.1 - - [23/Jan/2018:11:18:05 +0000] "192.168.220.25" "GET /RuckusSmartZone?nbiIP=192.168.220.109&client_mac=ENCdedffb22233f6dee169d8339ea6a2325aaefa125bbcc857a&reason=Un-Auth-SSL-Captive&wlanName=packet73b&dn=scg.ruckuswireless.com&ssid=packet73b&mac=94:f6:65:34:b0:a0&url=https%3A%2F%2Fwww.nu.nl%2F&proxy=0&vlan=1&wlan=2&sip=scg.ruckuswireless.com&zoneName=jdi2xaFK89CJw7M8T-h4jHpXZCNLWwDE1zEIRFYPVpI_1516706284464&uip=ENCb2579826807a64300d278fcdfdc57709 HTTP/1.1" 302 1843 "-" "Mozilla/5.0 (Linux; Android 6.0.1; SM-G900F Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36" 141044

Jan 23 11:18:05 PacketFence-ZEN httpd_portal: 192.168.220.13 127.0.0.1 - - [23/Jan/2018:11:18:05 +0000] "192.168.220.25" "GET /captive-portal?destination_url=https://www.nu.nl/&nbiIP=192.168.220.109&client_mac=ENCdedffb22233f6dee169d8339ea6a2325aaefa125bbcc857a&reason=Un-Auth-SSL-Captive&wlanName=packet73b&dn=scg.ruckuswireless.com&ssid=packet73b&mac=94:f6:65:34:b0:a0&url=https%3A%2F%2Fwww.nu.nl%2F&proxy=0&vlan=1&wlan=2&sip=scg.ruckuswireless.com&zoneName=jdi2xaFK89CJw7M8T-h4jHpXZCNLWwDE1zEIRFYPVpI_1516706284464&uip=ENCb2579826807a64300d278fcdfdc57709 HTTP/1.1" 500 926 "-" "Mozilla/5.0 (Linux; Android 6.0.1; SM-G900F Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36" 141713

192.168.220.13 = client

192.168.220.10 = vSCG/vSZ 3.6

Here the error the is in the browser:

Application error : Caught exception in captiveportal::Controller::Root->getLanguages "Can't call method "normalizedIP" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 249." Caught exception in captiveportal::Controller::Root->setupLanguage "Can't use string ("0") as an ARRAY ref while "strict refs" in use at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm line 189." Caught exception in captiveportal::Controller::Root->setupDynamicRouting "Can't call method "normalizedIP" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 249." Caught exception in captiveportal::Controller::Root->dynamic_application "Can't call method "execute" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm line 156."

7.2.0

You stated : Also to reevaluate an access on Ruckus SmartZone packetfence use the web api of the controller, so you need to fill the webservice tab in the switch config (pf side).

I have done that, but no result, I don’t see any communation between pf and vSCG after or during  portal -> guest acces -> email based reg, after this I can see he doesn’t detect network, and ik cant browse, I can see with wireshare on the client side  he does connect with 192.95.20.194, does a get for the gif, and gets a response. But still not auth by the Ruckus vSCG/vSZ.

Here my config for the vSCG/vSZ.

[192.168.220.109]

wsPwd=**********

mode=production

ExternalPortalEnforcement=Y

description=scg36

type=Ruckus::SmartZone

radiusSecret=*******

wsUser=ruckus

registrationVlan=-1

hope you can see what I am doing wrong.

Regard.

Barry

*From:*Fabrice Durand via PacketFence-users [mailto:[email protected]]
*Sent:* 16 January 2018 15:53
*To:* [email protected]
*Cc:* Fabrice Durand <[email protected]>
*Subject:* Re: [PacketFence-users] pf with ruckus smartzone not working for me

Hello Barry,

when the error happen , is it when you try to do web-auth or out of band ? (if you have the httpd.portal.access lines when you hit the portal)

Because it looks that packetfence is not able to fetch your ip address.

Also to reevaluate an access on Ruckus SmartZone packetfence use the web api of the controller, so you need to fill the webservice tab in the switch config (pf side).

Regards

Fabrice

Le 2018-01-16 à 03:42, Support Procyon Networks via PacketFence-users a écrit :

    Dear Reader,

    I got problems to use pf in combination with a ruckus smartzone
    controller, out of band, webauth. I want users who  connect to the
    guest ssid to get the portal and register with there email.

    I configured the smartzone controller according to
    PacketFence_Network_Devices_Configuration_Guide. Rest of the
    settings is all default.

    When a client connect to the guest ssid he  gets a application
    error  “Application error : Caught exception in
    captiveportal::Controller::Root”  full error message is at the of
    this mail.

    This happens with when using pf 7.3

    When using pf 7.2 users who connect to the guest ssid do get the
    portal, they can select email-based registration, they enter there
    email, now they should get internet access for 10 min, but they
    don’t, “Unable to detect network”, rebooting or waiting doesn’t
    help. I can see on a other device that I get the mail with the
    registration link, this does work, but the device doesn’t get access.

    Correct me if I am wrong but pf should communicate with the ruckus
    controller to signal that this device should given access. Now
    when looking with wireshark I can see there is no communication
    between de controller and pf except snmp get request from pf to
    controller that are random/time interval, but not in sync with
    registration.

    Maybe I do something wrong in the basis, I can imagine that I have
    to bind the ruckus controller “switch” some how to the
    portal(?),but I also can imagen that this is not needed because
    the ip of the controller is inside the portal request.

    If some one can help me with this, that would be great.

    I am using the OVF verions of pf

    Ruckus smartzone 3.5.1.0.862    I had version 3.4.2.0.152 before
    this with the same results.

    Best Regards

    Barry

    Here the full error message portal with pf 7.3

    Application error : Caught exception in
    captiveportal::Controller::Root->getLanguages "Can't call method
    "normalizedIP" on an undefined value at
    
/usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm
    line 249." Caught exception in
    captiveportal::Controller::Root->setupLanguage "Can't use string
    ("0") as an ARRAY ref while "strict refs" in use at
    
/usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm
    line 189." Caught exception in
    captiveportal::Controller::Root->setupDynamicRouting "Can't call
    method "normalizedIP" on an undefined value at
    
/usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm
    line 249." Caught exception in
    captiveportal::Controller::Root->dynamic_application "Can't call
    method "execute" on an undefined value at
    
/usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm
    line 156."




    
------------------------------------------------------------------------------

    Check out the vibrant tech community on one of the world's most

    engaging tech sites, Slashdot.org!http://sdm.link/slashdot




    _______________________________________________

    PacketFence-users mailing list

    [email protected]
    <mailto:[email protected]>

    https://lists.sourceforge.net/lists/listinfo/packetfence-users



--
Fabrice Durand
[email protected] <mailto:[email protected]>  ::  +1.514.447.4918 (x135) 
::www.inverse.ca <http://www.inverse.ca>
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to