Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Maurício S. Mudrik" <mudrik@intercomax.com.br>
To: netfilter@lists.samba.org
Subject: Problems removing rules
Date: Wed, 30 Apr 2003 20:58:00 +0300	[thread overview]
Message-ID: <20030430235716.49E371B9927@server.aeroshopping.net> (raw)
In-Reply-To: <1051736666.14478.4.camel@il.npn>

I'm having a huge problem:

I have those rules:

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       tcp  --  anywhere             anywhere           tcp dpt:www 
to:192.168.0.1:80

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

I inserted iptables -t nat -I PREROUTING -s xxx.xxx.xxx.xxx -j RETURN

OK. The rules works fine.

Then I removed the RETURN iptables -t nat -D PREROUTING -s xxx.xxx.xxx.xxx -j 
RETURN and... The IP still access some pages that accessed before!

Why?

I need to redirect all internal requests to a specific page and then, after a 
login, masquerade them to the Internet...

That's it.

Thanks in advance.

Maurício S. Mudrik


  reply	other threads:[~2003-04-30 17:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-25 16:45 Local rule for Port Forward Patrick Nelson
2003-04-25 21:12 ` David Gaudine
2003-04-26  8:05   ` Patrick Nelson
2003-04-26 15:44     ` Brad Morgan
2003-04-26 17:35       ` Andy Wood
2003-04-30 21:04         ` Patrick Nelson
2003-04-30 17:58           ` Maurício S. Mudrik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-05-01  0:07 Problems removing rules Intercomax
2003-05-01  3:02 ` SaVaGE

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=20030430235716.49E371B9927@server.aeroshopping.net \
    --to=mudrik@intercomax.com.br \
    --cc=netfilter@lists.samba.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