From: Wakko Warner <wakko@animx.eu.org>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: delete NAT conntrack entry.
Date: Thu, 10 May 2007 07:14:03 -0400 [thread overview]
Message-ID: <20070510111403.GA27624@animx.eu.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0705101150510.32349@yvahk01.tjqt.qr>
Jan Engelhardt wrote:
>
> On May 10 2007 16:10, ??? wrote:
> >We have some problems with nat.
> >We want to relay "udp packet" from a host to other host using SNAT, DNAT.
> >
> >iptables -t nat -A PREROUTING -p udp -d PACKET.RELAY.HOST.IP --dport 10000
> >-j DNAT --to-destination TO.OTHER.HOST.IP:10000
> >iptables -t nat -A POSTROUTING -p udp -d TO.OTHER.HOST.IP --dport 10000 -j
> >SNAT --to-source PACKET.RELAY.HOST.IP:10000
> >
> >It works well. But after removing the rules, packet still transferred. I can
> >find the conntrack entry in /proc/net/stat/ip_conntrack.
> >We know libnfnetlink & libnetfilter_conntrack with kernel 2.6 can delete
> >conntrack entries from userspace. But we use Redhat linux 2.4.21-32.EL.
> >How can I delete specified conntrack entry in kernel 2.4 without kernel code
> >??
>
> I suppose that the reason that "conntrack" (the userspace tool to
> monitor/delete conntrack entries) was written is because there was no
> prior way to do it from userland. (In short: you are toast with 2.4)
>
> Or wait for the UDP connection tracking timeout to happen.
Sometimes this may not be possible if the traffic doesn't stop long enough
for it to time out. I wish I had known about conntrack when I had this
problem occur. I just set the UDP timeout to 1 second (fortunately, that
worked).
If it were possible that when a rule like that is deleted, all active
conntrack entries that this rule causes would be removed.
--
Lab tests show that use of micro$oft causes cancer in lab animals
Got Gas???
next prev parent reply other threads:[~2007-05-10 11:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 7:10 delete NAT conntrack entry ???
2007-05-10 9:52 ` Jan Engelhardt
2007-05-10 11:14 ` Wakko Warner [this message]
2007-05-10 12:48 ` Jan Engelhardt
2007-05-10 16:16 ` Wakko Warner
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=20070510111403.GA27624@animx.eu.org \
--to=wakko@animx.eu.org \
--cc=jengelh@linux01.gwdg.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 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.