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:
And my StartupParameters.plist file reads:
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!
#!/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!