From: Ray Leach <raymondl@knowledgefactory.co.za>
To: Ian Moyce <ian@ianmoyce.co.uk>
Cc: netfilter@lists.netfilter.org
Subject: Re: Transparent web proxy
Date: Tue, 12 Jun 2007 15:14:18 +0200 [thread overview]
Message-ID: <200706121514.18368.raymondl@knowledgefactory.co.za> (raw)
In-Reply-To: <2A64E4F2-D73E-4E91-95EC-A80FCE6C33D3@ianmoyce.co.uk>
On Tuesday 12 June 2007 13:44:07 Ian Moyce wrote:
> On 12 Jun 2007, at 12:38, Ray Leach wrote:
> > On Tuesday 12 June 2007 13:13:08 Ian Moyce wrote:
> >> Hello,
> >>
> >> I am trying to set up transparent web proxy server, but from the
> >> examples I have found on the web, I can not make it work.
> >>
> >> I am trying:
> >>
> >> iptables -A FORWARD -i vnet0 -o tun0 -p tcp -m state --state
> >> ESTABLISHED,RELATED -j ACCEPT
> >> iptables -t nat -A PREROUTING -i venet0 -p tcp --dport 80 -j REDIRECT
> >> --to 8888
> >>
> >> Where tun0 is the VPN port, vnet0 (its actually vnet0:0) is the
> >> network interface.
> >>
> >> Squid is listening on localhost:8888
> >>
> >> I get an error message when I run these 2 lines:
> >>
> >> # iptables -t nat -A PREROUTING -i venet0 -p tcp --dport 80 -j
> >> REDIRECT --to 8888
> >> iptables: No chain/target/match by that name
> >>
> >>
> >> Help!!!
> >>
> >> Thanks
> >>
> >> Ian Moyce
> >
> > Seems like you're missing NAT support in your kernel maybe?
>
> Hi,
>
> NAT seems to be working okay as I am using it as a VPN server...!
Specifically the REDIRECT target needs to be compiled into the kernel or full
nat support.
------------------------------------------------------------------------------------------
This e-mail was checked by the e-Sweeper Service.
For more information visit our website, Clearswift Corporation e-Sweeper :
http://www.mimesweeper.com/products/esweeper/
------------------------------------------------------------------------------------------
next prev parent reply other threads:[~2007-06-12 13:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 11:13 Transparent web proxy Ian Moyce
2007-06-12 11:38 ` Ray Leach
2007-06-12 11:44 ` Ian Moyce
2007-06-12 13:14 ` Ray Leach [this message]
2007-06-12 13:39 ` Gáspár Lajos
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=200706121514.18368.raymondl@knowledgefactory.co.za \
--to=raymondl@knowledgefactory.co.za \
--cc=ian@ianmoyce.co.uk \
--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