Date: Sat, 20 Jan 2001 23:08:14 -0500 From: seek3r2k <hbessaha@home.com> To: freebsd-questions@freebsd.org Subject: IP Aliasing Problems Message-ID: <3A6A60AE.6BFC3C0C@home.com>
next in thread | raw e-mail | index | archive | help
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="<ISP ADDRESS>" 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 -> <isp address>/32 port 80 tcp/udp 10000:60000 map fxp0 192.168.1.0/24 port 80 -> <isp address>/32 port 80 rdr fxp0 "<isp address>" 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 can 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-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A6A60AE.6BFC3C0C>