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 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to