From: "Jörg Harmuth" <harmuth@mnemon.de>
To: netfilter@lists.netfilter.org
Subject: Re: not solve yet!!!
Date: Wed, 27 Jul 2005 09:53:29 +0200 [thread overview]
Message-ID: <42E73D79.80202@mnemon.de> (raw)
In-Reply-To: <20050725060738.31653.qmail@web42405.mail.yahoo.com>
john decot schrieb:
> Hello all,
> i am facing a problem in iptables as follows:
> i have single nic which ip is eth0= x.x.x.x(public_ip)
> alias is eth0:1=y.y.y.y( private_ip)
> the proxy works when ip of server and port 3128 at lan connection is
> configured at client side(windows os).
> But doesn't work without that whenever i flow traffic to proxy server,
> again i have used ip tables as:
>
> iptables -A PREROUTING -t nat -p tcp --dport 80 -i eth0 -j REDIRECT --to-port 3128
>
> with above it doesn't work then i tried following
> iptables -A PREROUTING -t nat -p tcp --dport 80 -i eth0 -j DNAT
> $public_ip or $private_ip:3128
>
> again the same result.
First configure your proxy to act transparently as Sergio pointed out.
Make sure the proxy is listening on the correct IP(s).
Did you check if your REDIRECT rule is hit (iptables -t nat -nvxL) ? If
the counters increase with each connection attempt, the rule is ok and
the reason is probably the proxy configuration.
If your rule is not hit, try if omitting "-i eth0" changes something.
Possibly there are some more low hanging fruits. Does the clients
default gateway point to your proxy server ? Are there any other rules,
that make connections impossible ? Does the proxy server-name resolve to
your clients ? Did you tcpdump the traffic to see, if packets make it to
the proxy and if so, what is in the conntrack table ? What is your
complete ruleset (either the output of iptables-save or iptables -t
$TABLE_NAME -nvxL) ?
Just some thoughts ;)
HTH and have a nice time,
Joerg
next prev parent reply other threads:[~2005-07-27 7:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-25 6:07 not solve yet!!! john decot
2005-07-25 6:11 ` Anthony Sadler
2005-07-26 16:50 ` Sergio Basurto Juarez
2005-07-27 7:53 ` Jörg Harmuth [this message]
[not found] <200507261217.j6QCHbEN024479@linux01.gwdg.de>
2005-07-27 6:27 ` Jan Engelhardt
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=42E73D79.80202@mnemon.de \
--to=harmuth@mnemon.de \
--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