From: Filip Sneppe <filip.sneppe@gmail.com>
To: "LinuxMurah.com" <linux_murah@yahoo.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: redirect port 80 to 8080 for single PC
Date: Sat, 24 Sep 2005 13:34:41 +0200 [thread overview]
Message-ID: <9151ac2a0509240434647df2b@mail.gmail.com> (raw)
In-Reply-To: <20050924105950.69207.qmail@web36108.mail.mud.yahoo.com>
Hi,
On 9/24/05, LinuxMurah.com <linux_murah@yahoo.com> wrote:
>
> now how to redirect this port 80 request from local
> user to SQUID proxy server with port 8080.
>
> I've try transparant proxy:
>
> iptables -t nat -A PREROUTING -i eth1 -p tcp -dport 80
> -j REDIRECT --to-port 8080
>
> but still failure, I mean all user still can access
> internet without proxy.
>
Well, if the rule should work for local users, then
you should use "-A OUTPUT" instead of "-A PREROUTING".
Also, the input interface will not work with "-A OUTPUT",
so if you want to specify an interface, add the outgoing
interface with "-o eth0". That should do the trick.
Regards,
Filip
prev parent reply other threads:[~2005-09-24 11:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-24 10:59 redirect port 80 to 8080 for single PC LinuxMurah.com
2005-09-24 11:34 ` Filip Sneppe [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=9151ac2a0509240434647df2b@mail.gmail.com \
--to=filip.sneppe@gmail.com \
--cc=linux_murah@yahoo.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.