FPSBrazil Posted May 16, 2018 Share Posted May 16, 2018 HTTPS traffic is not blocked for un-authorized clients, this happens only if HTTPS, someone knows how I fix this? 1 Quote Link to comment Share on other sites More sharing options...
trashbo4t Posted May 16, 2018 Share Posted May 16, 2018 What? What do you mean by "not blocked" and "un-authorized clients"? How are you serving an HTTPS page without a certificate? Quote Link to comment Share on other sites More sharing options...
cheeto Posted May 16, 2018 Share Posted May 16, 2018 14 hours ago, FPSBrazil said: HTTPS traffic is not blocked for un-authorized clients, this happens only if HTTPS, someone knows how I fix this? The reason is that you need to issue SSL certificates. (at least as far as i know) Hopefully this will be available in the future. This is possible to do with FLUXION. The client can't steer away from a captive portal until the clients complies with he portal's requirements. 1 Quote Link to comment Share on other sites More sharing options...
FPSBrazil Posted May 16, 2018 Author Share Posted May 16, 2018 Tnks Quote Link to comment Share on other sites More sharing options...
FPSBrazil Posted May 16, 2018 Author Share Posted May 16, 2018 1 hour ago, trashbo4t said: What? What do you mean by "not blocked" and "un-authorized clients"? How are you serving an HTTPS page without a certificate? The EvilPortal redirect the client and block hes acces to navegate, but the HTTPS services don't redirect the client for captive portal. Quote Link to comment Share on other sites More sharing options...
trashbo4t Posted May 16, 2018 Share Posted May 16, 2018 26 minutes ago, FPSBrazil said: The EvilPortal redirect the client and block hes acces to navegate, but the HTTPS services don't redirect the client for captive portal. Ah; I think understand you, so if your target navigates to an HTTPS page they will NOT see the portal page? But, if they navigate to an unencrypted HTTP page they DO see the portal page? If thats the case, verify your iptables or dns redirects are set up to handle 443 requests for redirection Quote Link to comment Share on other sites More sharing options...
FPSBrazil Posted May 17, 2018 Author Share Posted May 17, 2018 1 hour ago, trashbo4t said: Ah; I think understand you, so if your target navigates to an HTTPS page they will NOT see the portal page? But, if they navigate to an unencrypted HTTP page they DO see the portal page? If thats the case, verify your iptables or dns redirects are set up to handle 443 requests for redirection Up, i will try this Quote Link to comment Share on other sites More sharing options...
Nofix Posted October 15, 2018 Share Posted October 15, 2018 After a lot a reshearches, I found a way to block HTTPS pages, but you can't redirect directly to your splash page 100% of the time. Edit the file /pineapple/modules/EvilPortal/api/module.php and add the following line at the end of the startEvilPortal() function : //EXPERIMENTAL exec("iptables -t nat -A PREROUTING -i br-lan -p tcp --dport 443 -j DNAT --to-destination 172.16.42.1:80"); Then add this at the end of stopEvilPortal() : //EXPERIMENTAL exec("iptables -t nat -D PREROUTING -i br-lan -p tcp --dport 443 -j DNAT --to-destination 172.16.42.1:80"); Those are just shitty iptables to make HTTPS fail its certificate check when a client asks for an HTTPS page. The downside is that you can't redirect your client to your captive portal directly as the certificate check failed : your client doesn't even get connected to anything, so there no connection to redirect your client from. At least it blocks HTTPS request from your client, preventing him from browsing the internet without ever going trough your captive portal. Quote Link to comment Share on other sites More sharing options...
maxpowersi Posted January 30, 2020 Share Posted January 30, 2020 Did you found a way to redirect every time? Quote Link to comment Share on other sites More sharing options...
maxpowersi Posted January 31, 2020 Share Posted January 31, 2020 The last version of the EvilPortal module, uses your fix, and works like your custom module, but i would like, to redirect https trafic, to the portal, now i am blocking the https trafic with your fix. Quote Link to comment Share on other sites More sharing options...
JoetheHacker Posted July 20, 2020 Share Posted July 20, 2020 With this, I take it we can add a rule to add an exception for authenticated IP addresses too? So it gives the real experience of gaining access to the internet after authentication? Quote Link to comment Share on other sites More sharing options...
JoetheHacker Posted July 20, 2020 Share Posted July 20, 2020 Although I have noticed that EvilPortal has those lines already in the function, for me it's not behaving as described. My experience is that I can still get to HTTPS pages without redirecting and without failing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.