There is nothing wrong with FreeBSD 6.0
It's the way you activated ipf that is wrong.
Ipfilter's ipnat function is not an independent function.
You have to code this in rc.conf
ipfilter_enable = "YES"
ipnat_enable = "YES"

and make sure there is no default ipf.rules file

Then ipf will use its default pass all rule which results in the
ipnat function working with a firewall rule of pass all

Also your nat rules are incorrect.
The special alias 0.0.0.0/32 should be 0/32

The FreeBSD handbook has a good section on ipfilter.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Arnold Lee
Sent: Wednesday, April 12, 2006 4:34 AM
To: freebsd-questions@freebsd.org
Subject: problem with ipfilter(ipnat)


  I am in a small lan and want to use fb 6.0 as a router to share
internet access. I use mpd 3.18 to dial adsl on demand. I configured
ipnat with :
   map rl0 10.0.0.0/8 -> 0.0.0.0/32 portmap tcp/udp auto
 map rl0 10.0.0.0/8 -> 0.0.0.0/32
And then I use my client compute(windows 2000 Pro) to access
internet, it seems ok, but soon I realize that there are some
websites I can not access! For example, www.chinaunix.net is
unacessable! So are some ftp sites such as ftp.freebsd.org. It must
be a problem of the FB6 box, because if i access internet directly
from the win2000 box, all those sites above is ok ! what is wrong?
By the way, I donot use ipfirewall and other firewall, and in
rc.conf, I wrote "ipfilter_enable = NO, ipnat_enable= YES". Can you
help me?


---------------------------------
无限容量雅虎相册,原图等大下载,超快速度,赶快抢注!
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to