Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Squid proxy IPv4 fallback
« previous
next »
Print
Pages: [
1
]
Author
Topic: Squid proxy IPv4 fallback (Read 1992 times)
schnipp
Sr. Member
Posts: 371
Karma: 19
Squid proxy IPv4 fallback
«
on:
May 04, 2020, 02:26:56 pm »
Hi everybody,
besides filtering I use the squid proxy in opnsense for IP address translation (LAN: IPv4 only --> WAN: IPv4/IPv6). In general squid prefers IPv6 over IPv4 which works fine, so far. So, in case the DNS resolves an IPv4 and IPv6 address for accessing a server squid tries to use the IPv6 address. But, when the server is not responding squid automatically performs a fallback to IPv4.
In its standard configuration the timeout for fallback is 60 seconds. This is too long because the firefox (and maybe some other browsers) have a shorter request timeout. Thus, the fallback will never occur, provided that the timout in squid is configured with a lower value.
By adding the following line to the squid configuration, the fallback works fine:
Code:
[Select]
connect_timeout 7 seconds
Maybe, you can add a configuration field to override the standard timeout?
Thanks.
Logged
OPNsense 24.7.1-amd64
schnipp
Sr. Member
Posts: 371
Karma: 19
Re: Squid proxy IPv4 fallback
«
Reply #1 on:
May 07, 2020, 04:24:42 pm »
Feature request added to github:
https://github.com/opnsense/core/issues/4092
Logged
OPNsense 24.7.1-amd64
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Squid proxy IPv4 fallback