External portal server don't work on Omada V5.0.30

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

External portal server don't work on Omada V5.0.30

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
External portal server don't work on Omada V5.0.30
External portal server don't work on Omada V5.0.30
2022-03-16 06:36:38
Model: EAP115  
Hardware Version: V4
Firmware Version: 5.0.3 Build 20211022 Rel. 31831

Hello,

 

I have an EAP115 with OC200, ( Controller Version: 5.0.30 ), and I'am trying to connect it via an external portal server .

I followed the documentation but i'am still having errors "An error has occurred: Failed to connect to 192.168.100.179 port 8843: Connection timed out " and i'am not able to connect .

 

i tryed :  

curl_setopt($ch, CURLOPT_URL, "https://" . $controller . ":" . $port . "/".$_POST["site"]."/api/v2/hotspot/login");

curl_setopt($ch, CURLOPT_URL, "http://" . $controller . ":" . $port . "/".$_POST["site"]."/api/v2/hotspot/login");

curl_setopt($ch, CURLOPT_URL, "https://" . $controller . ":" . $port . "/api/v2/hotspot/login");

curl_setopt($ch, CURLOPT_URL, "http://" . $controller . ":" . $port . "/api/v2/hotspot/login");

curl_setopt($ch, CURLOPT_URL, "http://" . $controller . ":" . $port . "/".$_POST["site"]."/login");

curl_setopt($ch, CURLOPT_URL, "http://" . $controller . ":" . $port . "/".$_POST["site"]."/api/v2/login");

 

each one with ports : 8088, 8843 and even 443.

 

i tryed $loginInfo = array() with "user" and "username",

 

but i dont get the CSRF token and i get this error "An error has occurred: Failed to connect to 192.168.100.179 port 8843: Connection timed out "

However, if i check the list of client i can see that :

 

 

if anyone can help please.

 

PS : I don't use radius server, just external portal on my website, i collect infos sent by the controller and i relay them to a php script to get the CSRF token via curl.

Thank you.

  0      
  0      
#1
Options
10 Reply
Re:External portal server don't work on Omada V5.0.30
2022-03-17 01:07:19 - last edited 2022-03-17 01:09:16

  @Enigma22 

https://www.tp-link.com/en/support/faq/3231/

The external portal is changed after the V5 controller. Do you run into the issue when upgrading to V5?

There is a unique controller id added to the portal.

Recommend you set up the portal again to let the controller generate the id to the portal and I think that can resolve the issue.

  0  
  0  
#2
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-17 03:46:21

  @John1234 thank you for your reply, 

I just got it, so I started with version 5.

I tested with CONTROLLER_ID, http://" . $controller . ":" . $port . "/".$_POST["site"]."/api/v2/hotspot/login but still have the same problem

  0  
  0  
#3
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-17 04:56:22

  @John1234 

John1234 wrote

  @Enigma22 

https://www.tp-link.com/en/support/faq/3231/

The external portal is changed after the V5 controller. Do you run into the issue when upgrading to V5?

There is a unique controller id added to the portal.

Recommend you set up the portal again to let the controller generate the id to the portal and I think that can resolve the issue.

I think I misunderstood, I thought the controller_id was the site attribute. how can i get the controller_id?

  0  
  0  
#4
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-17 06:02:13

  @Enigma22 

 

Identifier of the Omada SDN Controller. When you access the controller, the identifier will be automatically added to the URL, from which you will get the identifier.

For example, if your controller URL is https://localhost:8043/abcdefghijklmnopqrstuvwxyzabcdef/, then the CONTROLLER_ID is abcdefghijklmnopqrstuvwxyzabcdef.

  0  
  0  
#5
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-17 07:02:24

  @John1234 i triyed with the identifier but still dont have the token,

  0  
  0  
#6
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-17 07:10:39

Dear @Enigma22,

 

Enigma22 wrote

I have an EAP115 with OC200, ( Controller Version: 5.0.30 ), and I'am trying to connect it via an external portal server .

I followed the documentation but i'am still having errors "An error has occurred: Failed to connect to 192.168.100.179 port 8843: Connection timed out " and i'am not able to connect .

 

i tryed :  

curl_setopt($ch, CURLOPT_URL, "https://" . $controller . ":" . $port . "/".$_POST["site"]."/api/v2/hotspot/login");

curl_setopt($ch, CURLOPT_URL, "http://" . $controller . ":" . $port . "/".$_POST["site"]."/api/v2/hotspot/login");

curl_setopt($ch, CURLOPT_URL, "https://" . $controller . ":" . $port . "/api/v2/hotspot/login");

curl_setopt($ch, CURLOPT_URL, "http://" . $controller . ":" . $port . "/api/v2/hotspot/login");

curl_setopt($ch, CURLOPT_URL, "http://" . $controller . ":" . $port . "/".$_POST["site"]."/login");

curl_setopt($ch, CURLOPT_URL, "http://" . $controller . ":" . $port . "/".$_POST["site"]."/api/v2/login");

 

each one with ports : 8088, 8843 and even 443.

 

i tryed $loginInfo = array() with "user" and "username",

but i dont get the CSRF token and i get this error "An error has occurred: Failed to connect to 192.168.100.179 port 8843: Connection timed out "

However, if i check the list of client i can see that :


Generally speaking, the External Portal Server should automatically set Authentication-Free strategy for the server address. But it seems the client is in the Pending state instead of Authorized state, you may check the settings, or manually add the IP address into the authentication-free strategy.

 

In addition, please access the OC200 with Port 443. The Port 8843 is used for Portal HTTPS.

Which ports do Omada SDN Controller and Omada Discovery Utility use? (above Controller 5.0.15)

 

Lastly, ensure you add Controller ID to the URL as @John1234 mentioned above.

The Requirements of Establishing an External Portal Server (above Omada SDN Controller 5.0.15)

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#7
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-18 22:59:05

  @Enigma22 

is there anyone who was able to use the external portal without radius server on v 5.0.30?

  0  
  0  
#8
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-21 05:47:39 - last edited 2022-03-21 05:48:25

Dear @Enigma22,

 

Enigma22 wrote

I'am still not able to get the token, i am using php curl, i tryed a lot of port, 8088, 8043, 433, 443, 8843, and in everytime the answer is the same : connection timedout

 

The "connection timeout" error usually indicates the IP address to be visited doesn't exist, or the request is blocked.

 

To address the issue, you may try the following suggestions:

 

  1. check $controller IP address in the php codes, verify whether it is correct.
  2. If it's correct, confirm whether the Portal server can access the address of the OC200 directly (use the ping command, or use curl to access http port for checking)
  3. If it works, check the port config under Settings -> Controller -> Access Config on the OC200, ensure you use the HTTPS Port for Controller Management to invoke the login interface (the default port of OC200 is 443).
  4. If it's still connection timeout when you use the correct HTTPS port, check whether PHP has set curl to allow untrusted certificates (OC200 is built with self-signed certificates). For example:

// Allow Self Signed Certs

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);

 

Hope the information above helps.

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#9
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-23 06:00:31

  @Fae Just one thing, I wonder if I'm wrong. Files of the portal are hosted in Ionos shared hosting 

  0  
  0  
#10
Options
Re:External portal server don't work on Omada V5.0.30
2022-03-24 06:48:46

Dear @Enigma22,

 

Enigma22 wrote

  @Fae Just one thing, I wonder if I'm wrong. Files of the portal are hosted in Ionos shared hosting 

i am hosting the php script on my website on IONOS, a shared hosting and not a server, Am I wrong?


Is the lonos shared hosting behind NAT devices? If so, you may try open port 443 for the OC200 controller.

 

For External Portal Server, it doesn't matter which authentication method you are using. It works as long as the portal server can receive the login information for authentication, and be able to access the Controller API at the same time.

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#11
Options

Information

Helpful: 0

Views: 1727

Replies: 10

Related Articles