All of lore.kernel.org
 help / color / mirror / Atom feed
From: Askar <askarali@gmail.com>
To: netfilter <netfilter@lists.netfilter.org>
Subject: mangling stop working
Date: Wed, 18 May 2005 10:34:32 +0500	[thread overview]
Message-ID: <a0f69e5050517223439804fad@mail.gmail.com> (raw)

hi list from few days we are getting very strange problem on our
office gateway running 2.6.11.8 kernel (custom compiled)

We are using iproute2 + iptables marking feature to select different
route and to route port 80 towards our cache server which again
running linux + custom kernel.


#echo 221 cache.out >> /etc/iproute2/rt_tables
#ip rule add fwmark 1 table cache.out
#ip route add default via xxx.xxx.xxx.xx dev eth0 table cache.out
#ip route flush cache

#Mangle for Above Rule######
iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 80 -j MARK
--set-mark 1 (marking for port 80, directed towards cache server)
iptables -A PREROUTING -i eth0 -t mangle -p tcp -d xxx.xxx.xxx.xx -j
MARK --set-mark 2 (direct the traffic for our company webserver)
.
.
# then the SNAT rule

From last two days if I checked on webserver (httpd) access.log, found
that few of our LAN clients accessing web with proxy server IP, and
the rest LAN clients with gatway IP. The problem is that we have few
secure links which is restricted to be access from few IPs including
the gateway IP. So if client coming with proxy server IP they got
permission denied page.
Then I have to add the proxy server IP in "allow", however this is not
the solution thigns were working just fine from last few months its
only from two days we are getting this problem.
Yesterday I delete all the "ip rule" and rerun the firewall script, 
things start working but later in the morning I got the call from work
that again few clients "LAN" getting the same "permission denied"

Is this a bug in iproute2 or iptables ?

Any help in this regard will be greatly appreciated.


regards

Askar Ali
-- 
I love deadlines. I like the whooshing sound they make as they fly by.
Douglas Adams


                 reply	other threads:[~2005-05-18  5:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=a0f69e5050517223439804fad@mail.gmail.com \
    --to=askarali@gmail.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.