All of lore.kernel.org
 help / color / mirror / Atom feed
From: joeask <joeask@gmx.de>
To: lartc@vger.kernel.org
Subject: [LARTC] ppp nat mappings
Date: Sat, 06 Nov 2004 02:34:35 +0000	[thread overview]
Message-ID: <418C383B.9000307@gmx.de> (raw)

Hi all,

i hope i'm not totally wrong on this list.

I setup a NAT router with the help of adsl-setup and shorewall. I've got 
a ppp link to the net and shorewall created the iptables. after a 
reconnect of the ppp link i get a new ip-address, but as long as the 
existing kernel udp mappings| which were create by outgoing udp traffic| 
don't get timed out, the router sends out udp packets belonging to this 
mapping still contain the previous public ip-address.

i can see this in /proc/net/ip_conntrack and ethereal:


udp      17 178 src\x192.168.0.160 dst!7.10.79.9 sportP60 dportP60 
src!7.10.79.9 dst€.135.x.y sportP60 dportP60 [ASSURED] use=1

but 80.135.x.y was my ipaddress some hours ago. if i stop sending udp 
packets for about 5 minutes, the mapping is gone and replaced by a 
mapping containing the correct public ip address.

ethereal shows, that the source address of the outgoing udp packets is 
the old address, so i'm spoofing my ip address.

the kernel should notice that the ipaddress belonging to the mapping 
changed and remove the mapping, shouldn't it?

Any suggestions on how to solve this problem?

Thanks,

joe



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

                 reply	other threads:[~2004-11-06  2:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=418C383B.9000307@gmx.de \
    --to=joeask@gmx.de \
    --cc=lartc@vger.kernel.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.