i don't think na kaya syang makuha sa config lang both ovpn or squid.. since consider syang bug ng squid 3.4.4 and below ..kaya nagwork back inject payload .. google mo nalang Squid Bug 3371 ..
pero kung gusto nyong gamitin sa newer version ng squid .. you need to rebuild and compile ang squid na version na gusto mo .. and modify tunnel.cc .. search nyo Bug 3371 then alter nyo lang source .. here is a source from 3.5.20
Code:
// Bug 3371: shovel any payload already pushed into ConnStateData by the client request
if (tunnelState->http.valid() && tunnelState->http->getConn() && !tunnelState->http->getConn()->in.buf.isEmpty()) {
struct ConnStateData::In *in = &tunnelState->http->getConn()->in;
debugs(26, DBG_DATA, "Tunnel client PUSH Payload: \n" << in->buf << "\n----------");
// We just need to ensure the bytes from ConnStateData are in client.buf already to deliver
memcpy(tunnelState->client.buf, in->buf.rawContent(), in->buf.length());
// NP: readClient() takes care of buffer length accounting.
tunnelState->readClient(tunnelState->client.buf, in->buf.length(), Comm::OK, 0);
in->buf.consume(); // ConnStateData buffer accounting after the shuffle.
} else
tunnelState->copyRead(tunnelState->client, TunnelStateData::ReadClient);
syempre kanya-kanya nalang diskarte kung panong i alter yung code .. kahit simpleng tanggalin mo lang ! sa tunnelState like
Code:
- if (tunnelState->http.valid() && tunnelState->http->getConn() && !tunnelState->http->getConn()->in.buf.isEmpty())
+ if (tunnelState->http.valid() && tunnelState->http->getConn() && tunnelState->http->getConn()->in.buf.isEmpty())
anyway .. meron naman isa pang method needed some modded lang with prinzrainer's RemoteForwardingServer.cpp pero it will work
https://phcorner.net/threads/700148/#post-12228997