Subject: Re: ipnat problem
To: None <port-macppc@netbsd.org>
From: Jean-Edouard BABIN <Jeb@jeb.com.fr>
List: port-macppc
Date: 11/02/2001 05:18:23
Robert Schmid écrit:
> This should be remarkably simple but I seem to have myself turned around
> on it.
> I have a Mac 9600 with 2 ethernet interfaces (mc0 & ep0).
>
> mc0 is configured a public network at aaa.bbb.ccc.42.
> ep0 is configured for the internal network at 192.168.1.1
>
> gateway is aaa.bbb.ccc.41
>
> dhcpd is enabled and dhcp client machines can connect to the server at
> either address.
> dhcpd.conf is as follows;
>
> allow unknown-clients;
> ddns-update-style ad-hoc;
>
> option subnet-mask 255.255.255.0;
> default-lease-time 3599;
> max-lease-time 604800;
>
> # Set parameters for the 192.168.1.0/24 subnet.
> subnet 192.168.1.0 netmask 255.255.255.0 {
> range 192.168.1.2 192.168.1.254;
> }
>
> ipnat is configured as;
>
> map ep0 192.168.1.0/24 -> 0/32
>
> Although I can ping aaa.bbb.ccc.42 I can't ping aaa.bbb.ccc.41. i.e. my
> packets don't really seem to be forwarding. I've tried other mappings
> with no luck.
> What am I doing wrong?
i think you don't want to map ep0 but mc0 so try this:
map mc0 192.168.1.0/24 -> 0/32
map mc0 192.168.1.0/24 -> 0/32 proxy port ftp ftp/tcp
map mc0 192.168.1.0/24 -> 0/32 portmap tcp/udp 1025:65535
--
Jean-Edouard BABIN
Jeb-Soft: http://www.jeb.com.fr