|
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | +<HTML> |
| 3 | + <HEAD> |
| 4 | + <TITLE> [squid-dev] forward bumped traffic to parent in plain form |
| 5 | + </TITLE> |
| 6 | + <LINK REL="Index" HREF="index.html" > |
| 7 | + <LINK REL="made" HREF="mailto:squid-dev%40lists.squid-cache.org?Subject=Re%3A%20%5Bsquid-dev%5D%20forward%20bumped%20traffic%20to%20parent%20in%20plain%20form&In-Reply-To=%3C70faedf9-2e5d-4934-b837-874940f81a4b%40measurement-factory.com%3E"> |
| 8 | + <META NAME="robots" CONTENT="index,nofollow"> |
| 9 | + <style type="text/css"> |
| 10 | + pre { |
| 11 | + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ |
| 12 | + } |
| 13 | + </style> |
| 14 | + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> |
| 15 | + <LINK REL="Previous" HREF="009979.html"> |
| 16 | + |
| 17 | + </HEAD> |
| 18 | + <BODY BGCOLOR="#ffffff"> |
| 19 | + <H1>[squid-dev] forward bumped traffic to parent in plain form</H1> |
| 20 | + <B>Alex Rousskov</B> |
| 21 | + <A HREF="mailto:squid-dev%40lists.squid-cache.org?Subject=Re%3A%20%5Bsquid-dev%5D%20forward%20bumped%20traffic%20to%20parent%20in%20plain%20form&In-Reply-To=%3C70faedf9-2e5d-4934-b837-874940f81a4b%40measurement-factory.com%3E" |
| 22 | + TITLE="[squid-dev] forward bumped traffic to parent in plain form">rousskov at measurement-factory.com |
| 23 | + </A><BR> |
| 24 | + <I>Wed Mar 4 18:43:45 UTC 2026</I> |
| 25 | + <P><UL> |
| 26 | + <LI>Previous message (by thread): <A HREF="009979.html">[squid-dev] forward bumped traffic to parent in plain form |
| 27 | +</A></li> |
| 28 | + |
| 29 | + <LI> <B>Messages sorted by:</B> |
| 30 | + <a href="date.html#9980">[ date ]</a> |
| 31 | + <a href="thread.html#9980">[ thread ]</a> |
| 32 | + <a href="subject.html#9980">[ subject ]</a> |
| 33 | + <a href="author.html#9980">[ author ]</a> |
| 34 | + </LI> |
| 35 | + </UL> |
| 36 | + <HR> |
| 37 | +<!--beginarticle--> |
| 38 | +<PRE>On 2026-03-04 11:03, Anthony Pankov wrote: |
| 39 | + |
| 40 | +><i> I still want to modify squid in such a way that it can forward |
| 41 | +</I>><i> clients http traffic to a parent cache in plain form. I mean after |
| 42 | +</I>><i> bumping ssl (forntend-squid establish tls connection with a client) |
| 43 | +</I>><i> requests from client should goes to parent cache as a plain http ( |
| 44 | +</I>><i> GET etc.) |
| 45 | +</I> |
| 46 | +Let's split this problem into two parts: |
| 47 | + |
| 48 | +Part 1: Bumping the client. |
| 49 | + |
| 50 | +Do you want your Squid to bump the TLS client connection without talking |
| 51 | +to the TLS origin server? Bugs notwithstanding, that should already be |
| 52 | +possible using unsupported "ssl_bump client-first all" or, after |
| 53 | +defining step1, |
| 54 | + |
| 55 | + ssl_bump stare step1 |
| 56 | + ssl_bump bump all |
| 57 | + |
| 58 | +Or does the client need to see something from the TLS origin server |
| 59 | +certificate to work correctly? In that case, you have to use something |
| 60 | +like "ssl_bump stare all" but it will complicate Part 2 changes. |
| 61 | + |
| 62 | + |
| 63 | +Part 2: Forwarding bumped GET requests to cache_peers "as is", without a |
| 64 | +second layer of encryption. |
| 65 | + |
| 66 | +This part depends on Part 1. Let's come back to this after Part 1 is |
| 67 | +working. |
| 68 | + |
| 69 | + |
| 70 | +HTH, |
| 71 | + |
| 72 | +Alex. |
| 73 | + |
| 74 | + |
| 75 | +><i> Connection between squids servers is already encrypted so I don't need any additional tls(security) layer. |
| 76 | +</I>><i> |
| 77 | +</I>><i> Also, for simplification, I assume never_direct directive for this traffic on a front-end. |
| 78 | +</I>><i> I understand that it will preclude any checks for origin server certificate but this is not a problem because policy for origin may be applied in a parent cache. |
| 79 | +</I>><i> |
| 80 | +</I>><i> I tried to modify FwdState::noteConnection to avoid establishTunnelThruProxy() and FwdState::secureConnectionToPeerIfNeeded to avoid secureConnectionToPeer() but has no lack. |
| 81 | +</I>><i> |
| 82 | +</I>><i> They use request.flags sslBumped and sslPeek that I do not fully understand. sslPeek described as "internal ssl-bump request to get server cert" but it always True when I'm in noteConnection. |
| 83 | +</I>><i> |
| 84 | +</I>><i> Also I noted async SslBumpEstablish which call switchToHttps. Because of asyncs I can't fully understand where I can preclude switching connections to parent cache to "CONNECT" mode rather than using it plain. |
| 85 | +</I>><i> |
| 86 | +</I>><i> Any help would be appreciated. |
| 87 | +</I>><i> |
| 88 | +</I>><i> |
| 89 | +</I> |
| 90 | +</PRE> |
| 91 | + |
| 92 | +<!--endarticle--> |
| 93 | + <HR> |
| 94 | + <P><UL> |
| 95 | + <!--threads--> |
| 96 | + <LI>Previous message (by thread): <A HREF="009979.html">[squid-dev] forward bumped traffic to parent in plain form |
| 97 | +</A></li> |
| 98 | + |
| 99 | + <LI> <B>Messages sorted by:</B> |
| 100 | + <a href="date.html#9980">[ date ]</a> |
| 101 | + <a href="thread.html#9980">[ thread ]</a> |
| 102 | + <a href="subject.html#9980">[ subject ]</a> |
| 103 | + <a href="author.html#9980">[ author ]</a> |
| 104 | + </LI> |
| 105 | + </UL> |
| 106 | + |
| 107 | +<hr> |
| 108 | +<a href="https://lists.squid-cache.org/listinfo/squid-dev">More information about the squid-dev |
| 109 | +mailing list</a><br> |
| 110 | +</body></html> |
0 commit comments