From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@lists.netfilter.org
Subject: Re: [MASQUERADING] iptables keeps sending from old IP after ppp0's IP has changed
Date: Wed, 30 Aug 2006 15:25:37 +0200 [thread overview]
Message-ID: <44F591D1.5080008@plouf.fr.eu.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0608301500440.4610@yvahk01.tjqt.qr>
Hello,
Jan Engelhardt a écrit :
>>Every night the router's ppp0 goes down and after about a minute up again with
>>a new IP. But iptables keeps on sending the NATted UDP packets _from_ the old
>>IP address. `iptables -F` and reloading the rules doesn't help. The only
>>workaround is to stop asterisk on the NAT client for about 2 minutes.
>
> That is how it is. The -t nat table is only consulted for NEW connections.
>
>>Why isn't this table deleted when ppp0 goes down?
>
> netfilter does not know it has gone down, I think.
Unlike SNAT, isn't the MASQUERADE target supposed to delete obsolete
masqueraded conntrack entries when the related interface goes down - or
maybe when it goes up again with a different address ?
>>How can I force iptables to use ppp0's real IP address as sender IP in
>>outgoing packets?
>
> Flush the conntrack table when ppp0 has gone up (yes, up)
Why not when ppp0 has gone down ?
next prev parent reply other threads:[~2006-08-30 13:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 12:07 [MASQUERADING] iptables keeps sending from old IP after ppp0's IP has changed Daniel Musketa
2006-08-30 13:01 ` Jan Engelhardt
2006-08-30 13:25 ` Pascal Hambourg [this message]
2006-08-30 13:57 ` Jan Engelhardt
2006-08-30 13:47 ` Daniel Musketa
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=44F591D1.5080008@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--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.