Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access UAMSERVER (/json/logon/) from WAN side #542

Open
raman-nbg opened this issue Jan 27, 2022 · 2 comments
Open

How to access UAMSERVER (/json/logon/) from WAN side #542

raman-nbg opened this issue Jan 27, 2022 · 2 comments

Comments

@raman-nbg
Copy link

I was able to setup Coova Chilli and get it running in a minimal setup. Also, I'm able to access the splash page which is located somewhere in the internet from the client through coova chilli. The splash page brings some UI with JavaScript and this JavaScript (running in the browser) can send the request to $UAMIP:$UAMPORT/json/logon?.... Everything works fine so far.

Now I want to send the request to $UAMIP:$UAMPORT/json/logon?... from the server/backend of my splash page. But I can't reach the UAMSERVER because, the $UAMIP is not reachable from the internet/WAN. Also, it would be better to access this by using a domain/hostname instead of using an IP.

Running the command sudo lsof -i -P -n | grep LISTEN I can see that chilli is listening on 10.1.0.1:3990 (and not on *:3990).

How can I get this working? Is there some config parameter that I need to change for this? What is the recommended way?

@pavankn
Copy link

pavankn commented Feb 9, 2022

Try with
dns1 8.8.8.8 in chilli config , i did similar thing and was able to reach external captive portal

@kmrinal
Copy link

kmrinal commented Mar 10, 2022

No, you cannot call UAMIP from the server-side. UAMIP is on the LAN side, which is getting NATed to WAN. You will have to trigger a call to the JSON endpoint from the frontend, using JS/JQuery etc or a redirect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants