From owner-freebsd-net Sat Jan 20 20:14:57 2001 Delivered-To: freebsd-net@freebsd.org Received: from mail.rdc1.nj.home.com (ha1.rdc1.nj.home.com [24.3.128.66]) by hub.freebsd.org (Postfix) with ESMTP id F051937B401 for ; Sat, 20 Jan 2001 20:14:38 -0800 (PST) Received: from home.com ([24.228.40.16]) by mail.rdc1.nj.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20010121041438.VHAV14368.mail.rdc1.nj.home.com@home.com> for ; Sat, 20 Jan 2001 20:14:38 -0800 Message-ID: <3A6A6239.412A2ED0@home.com> Date: Sat, 20 Jan 2001 23:14:49 -0500 From: seek3r2k X-Mailer: Mozilla 4.74 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: IP Aliasing Problems HELP! Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, I have aliased my single NIC with the IP address 192.168.1.1/24, so that i can port out a cable modem connection to my win machine, thus two machines on a subnet. This is what my rc.conf looks like host="host name" IPFILTER="YES" IPNAT="YES gateway_enable="YES" ifconfig fxp0="DHCP" ifconfig fxp0 inet 192.168.1.1 netmask 255.255.255.0 alias defaultrouter="" I have enabled IP Forwarding in the rc.local file. This is what i have in my IPNAT.CONF file: map fxp0 192.168.1.0/24 port 80 -> /32 port 80 tcp/udp 10000:60000 map fxp0 192.168.1.0/24 port 80 -> /32 port 80 rdr fxp0 "" port 80 -> 192.168.1.10/32 port 80 Now, when i run ipnat, i get a message: syntax error in "rdr". i have tried many times to edit it and still get the same error. If i try to echo the file on command line, i get the same message, and that it doesnt recognize "rdr" as a keyword. Why is that? Finally, after all this, i still can not get online with my internal machine, the windows machine on the subnet. I can ping the internal gateway address (192.168.1.10) and the external IP address from the windows machine, but i cant ping anything outside the network. what am I doing wrong? I compiled the kernel with IPFILTER on. Please help. Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message