How to set up NAT w/ dial-up connection?
Does anyone know how to set up NAT so that it will work with my dial-up connection? I have a setup right now that should work but doesn't. In my /Library/StartupItems I have a folder called 'NAT'. Inside that are two files, 'NAT', and 'StartupParameters.plist'. Here's how my NAT file is set up:
#!/bin/sh
##
# NAT enables internet connection to be shared.
##
. /etc/rc.common
ConsoleMessage "Starting NAT"
ConsoleMessage "Setting NAT parameters"
#ifconfig
natd -dynamic -interface ppp0
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via en0
/sbin/ipfw add pass all from any to any
And my StartupParameters.plist file reads:
{
Description = "Network address translation";
Provides = ("NAT");
Requires = ("Network");
OrderPreference = "Late";
Messages =
{
start = "Starting network address translation services";
stop = "Stopping network address translation services";
};
}
ipforwarding is set to 'yes' in my hostconfig file... I don't know what I'm doing wrong! If anyone could help I would be greatly appreciative! Thanks!
If it's a penny for your thoughts and you always put your two cents worth in, who's getting all these extra pennies?!
The Home Network:
iceBook: 500mhz G3, 384MB RAM, Mac OS X.II.II
B&W Tower: 450mhz G3, 512MB RAM, Mac OS X.II.II
Rev. A iMac: 233mhz G3, 256MB RAM, Mac OS 9.2.2
Mac LC III+: 33mhz 68030, 12MB RAM, NetBSD 1.5.2
Stupid PC: 233mhz Athalon K-6, 80MB RAM, Rhapsody DR2
Bookmarks