Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Vimal <j.vimal@gmail.com>
To: John Haxby <john.haxby@oracle.com>
Cc: linux@arcoscom.com, netfilter@vger.kernel.org
Subject: Re: Https website is not accessible once transparent proxy is set up
Date: Tue, 16 Sep 2008 23:31:47 +0530	[thread overview]
Message-ID: <ff71fbf20809161101r772b3280vcbb6e49fa42a11c6@mail.gmail.com> (raw)
In-Reply-To: <48CFB994.1060404@oracle.com>

>   struct sockaddr_in sin;
>   socklen_t len = sizeof(sin);
>   getsockopt (sock, SOL_IP, SO_ORIGINAL_DST, &sin, &len);
>   sprintf(buf, "CONNECT %s:%d HTTP/1.0\r\n\r\n",
>          inet_ntoa(sin.sin_addr), ntohs(sin.sin_port));
>

The idea is wonderful.

> I can't remember if I found this by grepping the squid source code or from a
> different web proxy.  I really must find the time to pretty up my program
> (and remove the bug that makes it crash from time to time) so I can publish
> it somewhere for general consumption.   It saves having to configure
> world+dog to use a proxy.

This is something similar to what applications like: tsocks and
transconnect do. But, they work at the client side.

But, can one setup a NAT server that does the appropriate forwarding
for https connections? This would look like there is a transparent
proxy setup.

Apologies, if the thread actually talks about the above mentioned stuff ... :)

-- 
Vimal

      reply	other threads:[~2008-09-16 18:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-16  6:49 Https website is not accessible once transparent proxy is set up Sam Chan
2008-09-16 11:03 ` ArcosCom Linux User
2008-09-16 11:19   ` John Haxby
2008-09-16 11:50     ` ArcosCom Linux User
2008-09-16 13:50       ` John Haxby
2008-09-16 18:01         ` Vimal [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ff71fbf20809161101r772b3280vcbb6e49fa42a11c6@mail.gmail.com \
    --to=j.vimal@gmail.com \
    --cc=john.haxby@oracle.com \
    --cc=linux@arcoscom.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox