From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@lists.netfilter.org
Subject: Re: redirect all HTTP traffic
Date: Wed, 04 Oct 2006 12:30:12 +0200 [thread overview]
Message-ID: <45238D34.8040104@plouf.fr.eu.org> (raw)
In-Reply-To: <452387A9.3010906@eccotours.co.za>
Hello,
Brent Clark a écrit :
>
> Ive been trying to redirect all HTTP traffic to my newly built proxy
> (squid).
>
> But I cant seem to get it working.
Please elaborate. What's happening exactly ?
> This is what I have
>
> $IPT -t nat -A PREROUTING -i eth1 -s 192.168.111.0/24 -p tcp --dport 80
> -j DNAT --to 192.168.111.9:3128
> $IPT -t nat -A POSTROUTING -o eth1 -s 192.168.111.0/24 -j SNAT --to
> 192.168.111.10
>
> and
>
> $IPT -t filter -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
> $IPT -t filter -A FORWARD -i eth1 -o eth1 -p tcp --dport 3128 -m state
> --state NEW -j ACCEPT
It seems that the proxy is in the same network as the clients. Does it
use the same gateway too ? If so, you need to set a no-DNAT exception in
PREROUTING for the proxy source address and a rule in FORWARD to allow
NEW packets from the proxy to the outside.
next prev parent reply other threads:[~2006-10-04 10:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-04 10:06 redirect all HTTP traffic Brent Clark
2006-10-04 10:15 ` Brent Clark
2006-10-04 10:30 ` Pascal Hambourg [this message]
2006-10-04 12:32 ` Brent Clark
2006-10-04 12:34 ` redirect all HTTP traffic (nfcan: addressed to exclusive sender for this address) Jim Laurino
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=45238D34.8040104@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=netfilter@lists.netfilter.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