External portal server don't work on Omada V5.0.30
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.
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
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.
- Copy Link
- Report Inappropriate Content
@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
- Copy Link
- Report Inappropriate Content
John1234 wrote
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?
- Copy Link
- Report Inappropriate Content
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.
- Copy Link
- Report Inappropriate Content
@John1234 i triyed with the identifier but still dont have the token,
- Copy Link
- Report Inappropriate Content
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)
- Copy Link
- Report Inappropriate Content
is there anyone who was able to use the external portal without radius server on v 5.0.30?
- Copy Link
- Report Inappropriate Content
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:
- check $controller IP address in the php codes, verify whether it is correct.
- 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)
- 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).
- 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.
- Copy Link
- Report Inappropriate Content
@Fae Just one thing, I wonder if I'm wrong. Files of the portal are hosted in Ionos shared hosting
- Copy Link
- Report Inappropriate Content
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.
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 1849
Replies: 10
Voters 0
No one has voted for it yet.