Is it possible a transparent https redirect ---> [http | https]?
Good day!
Interested in the possibility of forwarding the request on port 443 (https) on mine own resources, but with minor amendments.
You can do it with a firewall. But you need a self-signed certificate, which will turn up your nose all browsers. Generate and add the root certificate is not necessary.
When you need to request on 443 port as much as possible transparently (without swearing browsers on the certificate, install the root certificate and other things requiring any manipulation of the client device) to the client to wrap him up in a captive portal. Iptables [REDIRECT | DNAT] are not suitable, if not IntranetSSL (expensive solution). Squid SSL Bump as far as I understand it, also requires the installation of the root certificate.
Asking for help from more experienced and knowledgeable members of the community.
1 answer
The whole point of HTTPS is exactly that it would be impossible.
Find more questions by tags DebianFirewallProxyHTTPSLinux
The server picks up the full ciprocinal and within tional in response to a http request resource sends code 301 http://подти_туда.ру/ the browser does not have the right to refuse such redirection. - Sandra_Kautzer42 commented on June 10th 19 at 15:29
With what reason not to believe the command server is not redirecting query ?? - Sandra_Kautzer42 commented on June 10th 19 at 15:35
https://google.com
and waiting for a response from Google. You want instead, where for me redirecting. It is by definition a substitution of answer Google.Fortunately HTTPS does not allow it. - annie_Pagac commented on June 10th 19 at 15:41
then such variant: the server where the client is knocking, put the authorization script that will, for example, to track avtorizirovan clients according to the cookies. ie there is no right of cookies are issued with a login window that has the correct cookies in the client request proximedia to the site without authorization ??
look for such script, known problem
redirect using iptables can ride if in addition to dnat snat to do more, well, sanchit right certificates - Sandra_Kautzer42 commented on June 10th 19 at 15:44
such as you want (no self-signed certificates without installing a root certificate to the client), and never can be. - annie_Pagac commented on June 10th 19 at 15:50
you naturally will not need certificates.
it's not a flaw - it is a means of protection against spoofing of addresses. - Sandra_Kautzer42 commented on June 10th 19 at 15:56