[squid-dev] on_unsupported_protocol rewrite to support tcp connection relay

2017-03-24 Thread 钱国正
Hi gurus: For below code in client_side.cc, I want to know what's the pinning.serverConnection mean? and what it is used for? I want to rewrite the on_unsupported_protocol to support tcp connection (non-http protocol, called httpdns not readable, no http header) and relay it the server. Except

Re: [squid-dev] on_unsupported_protocol rewrite to support tcp connection relay

2017-03-24 Thread Alex Rousskov
On 03/24/2017 04:54 AM, 钱国正 wrote: > I want to know what's the > pinning.serverConnection mean? and what it is used for? Before we dive into low-level details, please allow me to ask an important high-level question. Your answer may render those low-level detail irrelevant: > I want to rewrite t

Re: [squid-dev] on_unsupported_protocol rewrite to support tcp connection, relay

2017-03-26 Thread Amos Jeffries
On 27/03/2017 3:15 p.m., 钱国正 wrote: >>> I want to know what's the >>> pinning.serverConnection mean? and what it is used for? > >> Before we dive into low-level details, please allow me to ask an >> important high-level question. Your answer may render those low-level >> detail irrelevant: > >>>

Re: [squid-dev] on_unsupported_protocol rewrite to support tcp connection, relay

2017-03-26 Thread 钱国正
>If you want port 80 to just be relayed through - dont send it to Squid. >You will probably be able to identify the DNS packets with your firewall >rules easier than Squid can tell it apart from a mangled HTTP message. What I want to do is to use Squid ecap adaptation to modify some http respon

Re: [squid-dev] on_unsupported_protocol rewrite to support tcp connection, relay

2017-03-27 Thread Amos Jeffries
On 27/03/2017 7:35 p.m., 钱国正 wrote: >> If you want port 80 to just be relayed through - dont send it to Squid. > >> You will probably be able to identify the DNS packets with your firewall >> rules easier than Squid can tell it apart from a mangled HTTP message. > > > > What I want to do is to

Re: [squid-dev] on_unsupported_protocol rewrite to support tcp connection, relay

2017-04-04 Thread Alex Rousskov
On 03/27/2017 12:35 AM, 钱国正 wrote: > What if the protocol is not http, but using 80 port, can squid relay it > to its target server? Yes, if you intercept port 80 connections. Assuming you do intercept, what you want should be already supported by on_unsupported_protocol. However, there is a kno