Help! Routing breaks Classic networking?
Help! Routing breaks Classic networking?
- Subject: Help! Routing breaks Classic networking?
- From: Scott Ribe <email@hidden>
- Date: Fri, 29 Aug 2003 10:54:39 -0600
I need to setup dial-in access to a network where there is not a spare
ethernet port or IP address available to me. I've put a second ethernet card
into an OS X 10.2.6 box that is currently on 10.70.30/24, assigned it an IP
of 192.168.2.2/29, connected it to a Netopia R2020 router at 192.168.2.1
(LAN-side), configured PPP on the Netopia, with the WAN-side as
192.168.3.1/29. I then set up the OS X box to do the appropriate routing, so
I thought.
I tested dial-in access from another OS X box, simply by setting up PPP
through the networking preferences panel and using the Internet Connect
application. Everything appeared to me to be working; I could access
computers on the office LAN and out on the Internet as well.
But I missed something extremely important: my attempt to set up the OS X
box as a router causes Classic applications on that box to not be able to
use the network. Classic applications can access neither the internet nor
even the local subnet. A quick peek with FrameSeer shows that Classic
applications are not putting out packets onto either interface. Removing my
startup item causes Classic applications to work again, so it's not the
addition of the second card and the multihoming setup--it's my startup
script that's causing the problem.
/usr/sbin/sysctl -w net.inet.ip.forwarding=1
/usr/sbin/natd -dynamic -interface en0
/sbin/ipfw add divert natd all from any to any via en0
/sbin/route add -net 192.168.3.1/29 192.168.2.1
So what am I doing to screw up Classic networking? And how can I get the
routing working without this problem?
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.