OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: ruggerio on March 13, 2019, 01:45:34 pm

Title: Ports used by Squid 3128/3129
Post by: ruggerio on March 13, 2019, 01:45:34 pm
Hi,

Can anybody tell me, on which port SNI is called? Is it still 3128 for non-https, or is it on Port 3129 for ssl? I wanted to disable 3129, as i don't do ssl-inspection, but its needed for sni, correct?

Also, i have all NAT- and Firewallrules für transparent proxy, but i still get often drops to 127.0.0.1:3129, i have no explanation for this.
Title: Re: Ports used by Squid 3128/3129
Post by: Northguy on March 15, 2019, 11:34:37 am
Hi,

Can anybody tell me, on which port SNI is called? Is it still 3128 for non-https, or is it on Port 3129 for ssl? I wanted to disable 3129, as i don't do ssl-inspection, but its needed for sni, correct?


You define the ports yourself in Services: Web Proxy: Administration. Per default 3128 is http and 3129 is https.

If you don't want to do ssl-inspection then you also don't need to tick the SNI checkbox as SSL-inspection needs to be enabled for the SNI tick box to have any effect in your configuration. In this case you need to remove the port forward for https.
Title: Re: Ports used by Squid 3128/3129
Post by: ruggerio on March 16, 2019, 02:14:37 pm
ahaaaaa, the last one on port forwarding is the ugly one. if have it enabled.

Perhaps, this needs a quote within the documentation.

Thx!
Title: Re: Ports used by Squid 3128/3129
Post by: ruggerio on March 16, 2019, 04:40:28 pm
i have one further question: to make sni work properly, it seems that i have to enter on the browsers setting making https use of the same proxy as http. Then it works.

But how can i handle this with android? I cannot indicate an explicit ssl proxy. btw. the proxy is transparent.
Title: Re: Ports used by Squid 3128/3129
Post by: Northguy on March 17, 2019, 12:10:04 pm
Maybe I don't understand your question, or your setup, but for transparent proxy with SNI on SSL and NAT port forwarding you do not need to alter browser settings or upload certificates on clients.
Title: Re: Ports used by Squid 3128/3129
Post by: Northguy on March 17, 2019, 02:44:49 pm
ahaaaaa, the last one on port forwarding is the ugly one. if have it enabled.

Perhaps, this needs a quote within the documentation.

Thx!

Pull request with fix has been submitted.
Title: Re: Ports used by Squid 3128/3129
Post by: ruggerio on March 18, 2019, 07:10:19 am
What i've also seen, is a difference in handling between transparent and normal proxy (distributed by wpad.dat)

Normal: Proxy gives tcp denied on both http and https
Transparent: Proxy gives tcp denied on http, but a certificate error on https.

Whats the difference? Is the whole traffice in both cases not handled by http-port (3128) and then proofed by 3129? There is neither a forwarding on 3129 nor a rule in the firewall for 3129.

Thx!
Ruggerio
Title: Re: Ports used by Squid 3128/3129
Post by: Northguy on March 18, 2019, 07:14:53 am
Opnsense howto's are quite clear on transparent fw. You should create port forward yourself. Please also look at advance help in Opnsense as links are present to create forwarding rules. Make sure that you are on latest firmware. There was an issue with header forgery that has been fixed in 19.1.3

Verstuurd vanaf mijn Moto G (5) Plus met Tapatalk

Title: Re: Ports used by Squid 3128/3129
Post by: ruggerio on March 18, 2019, 07:31:55 am
I 1st created everything according to the 2 manuals for the caching and the transparent proxy, including the rules. All i have corrected now is disabling the forwarding rule for port 3129 (the ssl one).

All the rest is the same, that's why i do not understand it's not working in transparent mode. It's working flawlessy in non-transparent mode, using wpad.

But still, i would prefer transparent mode...