On Apr 26, 2007, at 11:35 AM, Miguel Alcántara wrote:
/etc/rc.conf
gateway_enable = "YES"
ifconfig_vr0="inet 192.168.1.2 netmask 255.255.255.0"
ifconfig_xl0="inet 192.168.1.3 netmask 0xffffffff"
squid_enable="YES"
You're not going to have much luck trying to do NAT if both
interfaces are on the same subnet. Other machines will simply
broadcast to the other LAN addresses without being re-written by this
machine.
For NAT to work, the traffic has to flow through this machine as a
router (or gateway), which means that they can't be using something
like 192.168.1.1 as the router. You'll have to change vr0 to use a
publicly routable IP if your want to use it as the "external NIC".
--
-Chuck
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"