Thanks for your support!
Are you sure you got that the right way around?
I have set up a local proxy server using Squid, configured with http_port 3128 and https_port 3129 for testing purposes.
if I connect to http_port 3128 -> then I check log on server see that request go through proxy
if I I connect to https_port 3129 -> then I check log on server see that a error when make a request.
I think you can work around this using a SOCK5 proxy.
I can not use SOCK5 proxy because the proxy server that I want to connect just support HTTP CONNECT proxy require Basic Authentication via HTTPS:
curl -v https://sg.http-proxy.privateinternetbrowsing.com:443
* Trying 156.146.57.8:443...
* Connected to sg.http-proxy.privateinternetbrowsing.com (156.146.57.8) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
* ALPN: server accepted http/1.1
* Server certificate:
* subject: CN=sg.http-proxy.privateinternetbrowsing.com
* start date: Jun 25 12:31:20 2024 GMT
* expire date: Sep 23 12:31:19 2024 GMT
* subjectAltName: host "sg.http-proxy.privateinternetbrowsing.com" matched cert's "sg.http-proxy.privateinternetbrowsing.com"
* issuer: C=US; O=Let's Encrypt; CN=E6
* SSL certificate verify ok.
* using HTTP/1.1
> GET / HTTP/1.1
> Host: sg.http-proxy.privateinternetbrowsing.com
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 407 Proxy Authentication Required
< Content-Type: text/plain; charset=utf-8
< Proxy-Authenticate: Basic
< X-Content-Type-Options: nosniff
< Date: Mon, 15 Jul 2024 17:47:20 GMT
< Content-Length: 35
<
This proxy requires authentication
* Connection #0 to host sg.http-proxy.privateinternetbrowsing.com left intact
If you issue an http: request, it’ll go through the proxy.
But if you issue an http: request, it’ll always go direct.
you mean that?:
If you issue an https: request, it’ll go through the proxy.
But if you issue an http: request, it’ll always go direct
I am not sure if it is related to https://developer.apple.com/forums/thread/734679 or not
Topic:
App & System Services
SubTopic:
Networking
Tags: