All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Сергеев Сергей Николаевич" <serg@dinfo.ru>
To: netfilter@lists.netfilter.org
Subject: iptables -j REDIRECT
Date: Tue, 6 Jul 2004 01:08:41 +0400	[thread overview]
Message-ID: <1276578354.20040706010841@dinfo.ru> (raw)

Hello!
I'm using iptables v1.2.11 with kernel 2.4.26 at RH8.
Also there is squid-cache 2.5.STABLE1 listening at port 3128.

They works as transparent proxy gateway for small office:

[]# iptables -A PREROUTING -t nat -i LAN -p tcp --dport 80 -j REDIRECT --to-port 3128

to manage and account data going to 80 port I did something like this:
[]# iptables -A PREROUTING -t mangle -i LAN -p tcp --dport 80 -j LOG

the question is:
how can I manage packets incoming from 80 port to my LAN?
All chains and tables(OUTPUT:mangle,nat,filter and POSTROUTING:mangle,nat) shows that one go from local_ip_of_gateway:3128.
But tcpdump started at LAN interface shows that packets go from real ip addresses and src_port 80....
In what chain and table netfilter replaces SRC_ip & SRC_port back by real?

Thank you!
-- 
Best regards,
 Sergeyev , Moscow RU                          mailto:serg@dinfo.ru



             reply	other threads:[~2004-07-05 21:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-05 21:08 Сергеев Сергей Николаевич [this message]
2004-07-07 14:57 ` iptables -j REDIRECT Cedric Blancher
2004-07-08 16:08   ` Martijn Lievaart
2004-07-10 15:37     ` Cedric Blancher

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=1276578354.20040706010841@dinfo.ru \
    --to=serg@dinfo.ru \
    --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.