Internet access authentification in browser after connecting to network - networking

I need to set up Wi-Fi, where user after connecting to Wi-Fi will have to login to connect to the internet.
Like after he connects to Wi-Fi, he opens page in web browser. He will be automatically redirected to login page, where he must enter credentials and then he will get internet access.
I think that the router will somehow redirect the traffic over server in LAN and then some kind of SW running on the server will do this, but what SW should I use? I don't know how this is called, so I couldn't googled anything.
Thanks

So I managed to find it, it's called Captive portal, here is a tutorial how to do it: http://blog.trifork.com/2013/01/15/building-a-captive-portal-controlling-access-to-the-internet-from-your-network/

Related

IIS ASP.NET application responds to IP but not to domain name

I've got a problem with IIS. I got a ASP.NET application there running and I am able to connect to it from local network (http://192.168.100.121:12002/) and from outer network too (185.91.165.134:12002 , connecting via phone, because router doesn't support this feature).
The thing is when I try to connect via a domain name queue.laststep.eu, it says error: timed out.
I've asked my friend to tracert this domain name and it finished at the router the server is connected to, so I suppose DNS is configured properly.
Does anyone got an idea what may be blocking inbound traffic? (Firewall is off, ports on our primary router are forwarded...)
I am attaching a screenshot of the site bindings(got to put it on 3rd party server due to low reputation... https://imgur.com/a/hTvqivY)
Thank you for help!

Unable to connect to webservice using Chrome Advanced REST Client but able to connect through chrome browser

I need to connect to a third party webservice. When I hit the link directly in the chrome browser, I am able to connect to it and I get a response. But when I tried the same using Advanced REST Client app of chrome, I get a message as 'The service's server DNS address could not be found.'
Also, when I tried to connect it via my JAVA code, using spring's rest template, am getting an Unknown host exception. What could be the reason that am able to connect via browser but not otherwise?
Thanks in advance.
Maybe it's a problem with your system's DNS settings? I'm not sure how Chrome handles queries to DNS when primary DNS did not found the record. If it uses Google DNS' then Chrome may connect to the service but other applications can't.
To test it set your DNS to 8.8.8.8 and check if apps start working.
From browser it's working properly but not from rest client or application, then i guess the problem with the proxy.
if you are using your office network, then this issue will come.
Try hitting the webservice by connecting to personal network.
i have faced similar issue last week, from browser and postman i'm able to hit the web service but not from the application.
Ones i connected with my personal then it started working.
Hope it helps.

Create a web log for Internet access

I have a computer with Internet access to the network by using a LAN proxy . I want to provide access when opening the browser will display the login menu if the login is successful then it could access the internet.
Whether it can be done ? I know can be done if using proxy with hotspot network.
I guess you are looking for is a captive portal.
I don't have much experience with them but you could look into packetfence, wifidog or chillispot.

Troubleshooting IIS 7

I am trying to figure out why my web page isn't displaying when using my domain name. I have a local IIS 7 web server installed with an ASP.NET web site. When I go to http://localhost, my page displays fine. When I go to http://www.mysite.com, it doesn't display though. Doing a trace route on www.mysite.com shows that it is resolving to my IP address. My router is forwarding port 80 requests to the web server and I am browsing from my phone, which is on a separate IP address using 3G. I disabled my firewall and my anti-virus to make sure neither of those are interfering. I also looked at the IIS 7 log and my request does not appear to be hitting it.
Is there a way to trace the incoming request to find out where its getting thrown out at? I'm losing my mind trying to troubleshoot this and any help would be appreciated.
Is your ISP blocking port 80? I have seen lots of ISP's do this to home users in an attempt to have them upgrade their internet package to a business plan.

Captive portal detection in QT 4.6

Does anyone know how to detect a guest network as a captive portal.
I mean can i detect a network as a CAPTIVE PORTAL.
After doing some digging and trying different captive portals, it seems that they all work differently... some of them do DNS trick(DNS responds with same IP address for any query), some of them just do some kind of transparent http proxy magic probably using squid or packet level forwarding/redirecting (like one could do with iptables) so that no matter what the URL you're presented with the login screen, and in such cases, DNS queries will be answered with correct IP address, but connecting to port 80 on that host name will result in you being redirected to login page...
I tried this idea but no luck!
Is there any way to detect a network as hotspot(captive portal) where http login is required???
Thanks in advance
Puneet
The Apple solution is to GET http://www.apple.com/library/test/success.html - if it's not successful assume a captive portal and launch the web browser. You could try something similar if you can set up a server, and launch a QWebView in the case of failure.

Resources