*BSD News Article 98207


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!como.dpie.gov.au!news.gan.net.au!act.news.telstra.net!news.telstra.net!psgrain!reuter.cse.ogi.edu!uwm.edu!vixen.cso.uiuc.edu!howland.erols.net!newsfeed.internetmci.com!dimensional.com!flatland.dimensional.com!not-for-mail
From: mfuhr@dimensional.com (Michael Fuhr)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: natd -dynamic not seeing new address?
Date: 21 Jun 1997 09:57:54 -0600
Organization: Dimensional Communications
Lines: 43
Message-ID: <5ogtm2$a2j@flatland.dimensional.com>
NNTP-Posting-Host: flatland.dimensional.com
X-Newsreader: NN version 6.5.1 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43288

I'm running natd thusly:

    natd -v -dynamic -interface ppp0

Here's the problem:

1.  I make a PPP connection to my ISP and get a dynamic IP address,
    208.206.177.239 in this case.  Natd works fine:

        Out [ICMP] 192.168.1.2 -> 208.206.176.24 aliased to
                   208.206.177.239 -> 208.206.176.24
        In  [ICMP] 208.206.176.24 -> 208.206.177.239 aliased to
                   208.206.176.24 -> 192.168.1.2

2.  I drop the connection.

3.  I make another connection and get a different address, this
    time 208.206.177.225.  Natd still tries to use the old address:

        Out [ICMP] 192.168.1.2 -> 208.206.176.24 aliased to
                   208.206.177.239 -> 208.206.176.24
        Failed to write 84 byte packet.: Permission denied

4.  If I HUP natd, it picks up the new address:

        Out [ICMP] 192.168.1.2 -> 208.206.176.24 aliased to
                   208.206.177.225 -> 208.206.176.24
        In  [ICMP] 208.206.176.24 -> 208.206.177.225 aliased to
                   208.206.176.24 -> 192.168.1.2

HUP'ing natd is easy enough, but I thought -dynamic was supposed to
pick up the new address automagically:

   -dynamic  If the -n or -interface option is used, natd will monitor the
             routing socket for alterations to the interface passed.  If
             the interfaces IP number is changed, natd will dynamically
             alter its concept of the alias address.

Have I just misunderstood something?

-- 
Michael Fuhr
http://www.dimensional.com/~mfuhr/