All of lore.kernel.org
 help / color / mirror / Atom feed
* [MASQUERADING] iptables keeps sending from old IP after ppp0's IP has changed
@ 2006-08-30 12:07 Daniel Musketa
  2006-08-30 13:01 ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Musketa @ 2006-08-30 12:07 UTC (permalink / raw)
  To: netfilter

Hello list,

I'm using iptables v1.2.11 on Debian Sarge kernel 2.6.8-3-k7.

This router does masquerading for my NAT clients. One of them is an Asterisk 
server communicating over UDP port 5060 (SIP) with external SIP provider. 

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. 

I found out that there are still entrys in /proc/net/ip_conntrack containing 
yestrerday's external IP address.

Why isn't this table deleted when ppp0 goes down?

How can I force iptables to use ppp0's real IP address as sender IP in 
outgoing packets?


Thanks
Daniel


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-30 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-08-30 13:57     ` Jan Engelhardt
2006-08-30 13:47   ` Daniel Musketa

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.