Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 1998 16:23:26 -0700 (PDT)
From:      Julian Elischer <julian@whistle.com>
To:        "Daniel M. Eischen" <deischen@iworks.interworks.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: NATD problems
Message-ID:  <Pine.BSF.3.95.980707162146.1462I-100000@current1.whistle.com>
In-Reply-To: <199807072106.QAA24268@iworks.interworks.org>

next in thread | previous in thread | raw e-mail | index | archive | help
divert/ipfw went through a rough patch around then in 2.2

make sure you have new versions of:
ip_fw.c, ip_divert.c, ip_input.c and ip_output.c


On Tue, 7 Jul 1998, Daniel M. Eischen wrote:

> 
> I can't get NATD to properly translate addresses.  Can
> someone point out what I'm doing wrong?  BTW, this is all
> on a 2.2-stable system CVSup'd and make world'd on or
> around June 28th.
> 
> I've got the following IPFW rules:
> 
> bash# ipfw show
> 00100         88       7738 allow ip from any to any via lo0
> 00110          0          0 deny ip from any to 127.0.0.0/8
> 00200         18       1512 divert 6668 ip from any to any via ep0
> 00600     128437   30529826 allow ip from any to any
> 
> ep0 is the private interface (192.168.x.y) and de0 and de1
> are public interfaces.  de1 is our connection to the outside world,
> while de0 is another small subnet, both with legal addresses.
> 
> de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 153.11.109.129 netmask 0xffffff80 broadcast 153.11.109.255
>         ether 00:80:c8:3e:34:02 
>         media: autoselect (10baseT/UTP) status: active
> de1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 153.11.109.11 netmask 0xffffffc0 broadcast 153.11.109.63
>         ether 00:c0:d1:30:08:02 
>         media: autoselect (10baseT/UTP) status: active
> ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.254.1 netmask 0xffffff00 broadcast 192.168.254.255
>         ether 00:a0:24:0a:ed:f6 
> 
> If I try to ping a system on the de1 network from the ep0 network,
> I can see this from NATD.
> 
> bash# natd -l -v -interface de1
> 
> In  [ICMP] 192.168.254.2 -> 153.11.109.1 aliased to
>            192.168.254.2 -> 153.11.109.1
> Out [ICMP] 192.168.254.1 -> 192.168.254.2 aliased to
>            153.11.109.11 -> 192.168.254.2
> In  [ICMP] 192.168.254.2 -> 153.11.109.1 aliased to
>            192.168.254.2 -> 153.11.109.1
> Out [ICMP] 192.168.254.1 -> 192.168.254.2 aliased to
>            153.11.109.11 -> 192.168.254.2
> In  [ICMP] 192.168.254.2 -> 153.11.109.1 aliased to
>            192.168.254.2 -> 153.11.109.1
> Out [ICMP] 192.168.254.1 -> 192.168.254.2 aliased to
>            153.11.109.11 -> 192.168.254.2
> 
> How do I get it to change the In addresses?
> 
> Thanks
> 
> Dan Eischen
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980707162146.1462I-100000>