I'm posting this because I came here looking for an answer and had to look _way_ too hard to find one.
This script will setup MacOS X to share your dial-up ppp/modem connection over ethernet:
#!/bin/sh
##
# Start natd and set ipfw rules to enable NAT
# Built in port upstream exposed, no limits
# To disable this service, modify this file
##
/usr/sbin/natd -interface ppp0 -dynamic -s -m
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via ppp0
/sbin/ipfw add pass all from any to any
/usr/sbin/sysctl -w net.inet.ip.forwarding=1
simply execute that script as root, and you're set.
Thanx to Theed, who originally posted the bulk of that script.
This script will setup MacOS X to share your dial-up ppp/modem connection over ethernet:
#!/bin/sh
##
# Start natd and set ipfw rules to enable NAT
# Built in port upstream exposed, no limits
# To disable this service, modify this file
##
/usr/sbin/natd -interface ppp0 -dynamic -s -m
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via ppp0
/sbin/ipfw add pass all from any to any
/usr/sbin/sysctl -w net.inet.ip.forwarding=1
simply execute that script as root, and you're set.
Thanx to Theed, who originally posted the bulk of that script.