-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transparent proxy for IPv6 #1784
Comments
|
can you include a screenshot of the exact rule you've created accompanied with a dump of the listening configuration of squid?
If squid isn't listening on localhost for ipv6 for some reason and all traffic is forwarded, it might trap the webgui there too (I'm not sure there is a antilockout rule for ipv6 in it). |
|
I didn't know github makes adding images so easy, CTRL-V just works ;) |
|
yes, this works quite easy indeed. I checked the anti-lockout code for the web gui, but this seems to catch IPv6 like it should https://github.com/opnsense/core/blob/master/src/etc/inc/filter.inc#L1699, so if anti-lockout is enabled I don't know why you can't reach you webui anymore. If you want to check squid, I can give you some pointers to look at, the basic listening configuration looks good in this case.
on IPv6 / localhost: It should return something like:
|
|
I didn't say that I don't reach the webui any more but that http and https over IPv6 stops working. |
|
ok, my mistake, I thought the webgui over ipv6 stopped working too. I don't have a similar setup at hand at the moment, maybe someone else can help you out. |
|
What I further found out is that the |
|
I may be mistaken, but OPNsense uses NAT to achieve the transparent proxy feature? |
|
TPROXY is a cool feature of Linux but we are on FreeBSD here |
|
@fabianfrz. I know that, though, I probably was not clear enough. Apologies for that. |
|
@Nimloth divert looks like it is supported: |
|
That is the OpenBSD page, FreeBSD is different: https://wiki.squid-cache.org/ConfigExamples/Intercept/FreeBsdPf No mention of IPv6 there. |
|
Indeed, if I read the FreeBSD wiki correctly: |
|
timeout |
|
What does ‚timeout‘ mean? |
|
Thanks! |
|
That also goes for Squid authors, FreeBSD authors and reporters alike. Remember, everybody spends their time willingly. |
|
Just spent two hours finding out why transparent proxy on IPv6 does not work before I found this issue. Well, reason as stated by @Nimloth is either FreeBSD not capable of IPv6 NAT or Squid not implementing it. So I turned IPv6 transparent proxy off. |

Version: 17.7
GUI URL: https://fqdn/firewall_nat.php
The problem existed in 17.1 too, I've retried it now after upgrading to 17.7 and it still exists.
When IPv6 http and https traffic is redirected to Squid using a port forwarding NAT rule, IPv6 stops to work and the browser eventually falls back to IPv4 if the server is dual-stack, else it times out.
The NAT config is mentioned in issue #1242 so it seems I have configured it correctly.
The text was updated successfully, but these errors were encountered: