From: Martin Bangiev <martin.bangiev@borsabg.com>
To: Ferry Huberts <ferry@Hupie.com>, netfilter-devel@lists.netfilter.org
Subject: Re: DNAT & SNAT delay
Date: Wed, 15 Jun 2005 09:58:14 +0300 [thread overview]
Message-ID: <42AFD186.2070302@borsabg.com> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAMMn0WexgHkOTUvbQ/69qyoKAAAAQAAAAjlR56nNTu0GJg7EDUtBYpwEAAAAA@hupie.com>
Thanks guys
I'm using 2.6 kernel and I did
echo "0" > /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout
everything works perfectly now:)
Ferry Huberts wrote:
>You can also use a hack I sometimes use:
>- reconfigure rules
>- set the connection tracking timeout for your connection type to zero in
>/proc
>- wait 1 second
>- restore the connection tracking timeout for your connection type in /proc
>
>Or use connection tracking flushing; I had a short discussion with Pablo
>Neira a while ago on this on the list but continued it privately because his
>solution was for 2.6 only and I use 2.4
>
>I have a 2.4 kernel patch for connection tracking entry flushing and Pablo
>can point you to a 2.6 solution (but first check the list for our
>discussion...)
>
>Good luck!
>
>________________________________
>
>Ferry Huberts
>
> Linux Rocks!
>________________________________
>
>Brady's First Law of Problem Solving:
>
>When confronted by a difficult problem, you can solve it more easily by
>reducing it to the question: "How would the Lone Ranger have handled this?"
>
>
>
>
>
>>-----Original Message-----
>>From: netfilter-devel-bounces@lists.netfilter.org
>>[mailto:netfilter-devel-bounces@lists.netfilter.org] On
>>Behalf Of Jan Engelhardt
>>Sent: Tuesday, June 14, 2005 15:17
>>To: Martin Bangiev
>>Cc: netfilter-devel@lists.netfilter.org
>>Subject: Re: DNAT & SNAT delay
>>
>>
>>
>>
>>>Just before the communication starts I add rules to DNAT
>>>
>>>
>>udp packets
>>
>>
>>>from
>>>Client1 to Client2, and to SNAT packets to Client2 to be from
>>>Firewall:IP2. I do it for the Client2 respective (of course
>>>
>>>
>>I set up the ports too).
>>
>>
>>>The problem is that the NAT starts with about 30 seconds delay.
>>>tcpdump shows
>>>
>>>
>>>Can you please tell me where this delay can be coming from?
>>>Thanks in advance:)
>>>
>>>
>>Exactly 30? Then this:
>>
>>the default conntrack time-to-live for udp "connections" is
>>30 seconds so you need to wait 30 seconds until the
>>old-and-stale udp conn (the one "without"
>>DNAT/SNAT) expires.
>>
>>Well, that's a guess.
>>
>>
>>
>>Jan Engelhardt
>>
>>--
>>
>>| Gesellschaft fuer Wissenschaftliche Datenverarbeitung
>>Goettingen, Am
>>| Fassberg, 37077 Goettingen, www.gwdg.de
>>
>>
>>
>
>
>
>
>
next prev parent reply other threads:[~2005-06-15 6:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-13 12:11 DNAT & SNAT delay Martin Bangiev
2005-06-14 13:16 ` Jan Engelhardt
2005-06-14 16:33 ` Ferry Huberts
2005-06-15 6:58 ` Martin Bangiev [this message]
2005-06-16 13:48 ` Jan Engelhardt
2005-06-16 13:52 ` Ferry Huberts
-- strict thread matches above, loose matches on Subject: below --
2005-06-14 9:13 Martin Bangiev
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=42AFD186.2070302@borsabg.com \
--to=martin.bangiev@borsabg.com \
--cc=ferry@Hupie.com \
--cc=netfilter-devel@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.