netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Hendrie <mike@hendrienet.com>
To: Andrew Beverley <andy@andybev.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Proxy Filter iptable Settings
Date: Wed, 27 Apr 2011 06:26:37 -0500	[thread overview]
Message-ID: <BANLkTikUnSoefT3Xy=O+43zWGEw3tgb7wQ@mail.gmail.com> (raw)
In-Reply-To: <1303885014.18916.10.camel@andybev-desktop>

Thanks for the response. Once I implemented your suggestion, I get the
following error when trying to access the school's website from WITHIN
the LAN. Why can it not find the URL?

ERROR

The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL:
http://www.twinlakes.k12.wi.us/

Connection to 216.56.4.133 failed.
The system returned: (110) Connection timed out


Best Regards,
Mike

On Wed, Apr 27, 2011 at 1:16 AM, Andrew Beverley <andy@andybev.com> wrote:
> On Tue, 2011-04-26 at 22:07 -0500, Mike Hendrie wrote:
>> All,
>> I have a PROXY server with 2 Nics.  One is public facing NIC, the
>> other is private facing Nic.
>
> I assume that you mean a web proxy and that all your clients already use
> the server as their default gateway?
>
>> What would be the best settings to force all private IPs, on the LAN,
>> to pass through the Proxy server?
>
> Depending on the answer to the above, something like this:
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 \
>        -j REDIRECT --to-port 3128
>
> Your proxy server will need to support transparent proxying.
>
> Andy
>
>
>

  reply	other threads:[~2011-04-27 11:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-27  3:07 Proxy Filter iptable Settings Mike Hendrie
2011-04-27  6:16 ` Andrew Beverley
2011-04-27 11:26   ` Mike Hendrie [this message]
2011-04-27 12:17     ` Vigneswaran R
2011-04-27 12:45       ` Mike Hendrie
2011-04-27 13:18         ` Vigneswaran R
2011-04-27 13:41           ` Mike Hendrie
2011-04-27 17:24             ` Andrew Beverley
2011-04-28  6:36             ` Vigneswaran R
2011-04-28 21:43               ` Mike Hendrie
2011-04-29  9:16                 ` Vigneswaran R
2011-04-30  8:02                 ` Andrew Beverley
2011-04-30 16:50                   ` /dev/rob0
2011-04-30 17:47                     ` Mike Hendrie
2011-04-30 18:02                       ` Andrew Beverley
2011-04-30 18:23                         ` Mike Hendrie
2011-04-30 19:08                           ` Andrew Beverley
2011-04-30 19:24                             ` /dev/rob0
2011-05-03 17:23                               ` Mike Hendrie
2011-04-30 18:04                       ` Jan Engelhardt
2011-04-30 18:28                       ` /dev/rob0
2011-04-27 16:46         ` Mike Hendrie

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='BANLkTikUnSoefT3Xy=O+43zWGEw3tgb7wQ@mail.gmail.com' \
    --to=mike@hendrienet.com \
    --cc=andy@andybev.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;
as well as URLs for NNTP newsgroup(s).