Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > using NAT on Xserve

using NAT on Xserve
Thread Tools
Fresh-Faced Recruit
Join Date: May 2003
Status: Offline
Reply With Quote
May 26, 2003, 09:00 AM
 
Hi there ,

I'm setting up a Mac Xserve as a gateway for a small LAN. I am pretty formilliar with FreeBSD which is the core distribution of the new Xserve (they did however change the directory structure a lot, so i still have to search for everything).

Anyway, here is my problem. Im trying to set up a NAT internet sharing system (very odd that this isnt a standard service btw). I use this script which i got from the Mac support site:

#!/bin/sh
/usr/sbin/natd -dynamic -interface en0
/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 yes i did enable IPFORWARDING=-YES- in the /etc/hostconfig file. Plus i also disabled the Firewall function cause those ipfw rules could disrupt the ipfw rules in the script. All this according to the support site.

Now all this works. At least when i manually run the script above. BUT when i put this script in the /Library/StartupItems directory (along with a StartupParameters.plist) it does run on startup (i verified this), however nobody on the LAN can connect to the net. Then when i run the script manually again everybody is online.

I do not want to start this script manually everytime the server reboots. Please help me, what am i doing wrong?

Thanks for helping in advance,


Fili

ps. i do need a solution soon
     
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status: Offline
Reply With Quote
May 26, 2003, 11:57 AM
 
     
fili000  (op)
Fresh-Faced Recruit
Join Date: May 2003
Status: Offline
Reply With Quote
May 30, 2003, 07:15 AM
 
thnx that works perfectly! do you know of a nice ftp server app for the mac xserve?
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
May 31, 2003, 07:11 AM
 
Originally posted by fili000:
thnx that works perfectly! do you know of a nice ftp server app for the mac xserve?
You have a problem with the built-in ftp server?
Gods don't kill people - people with Gods kill people.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:01 AM.
All contents of these forums © 1995-2013 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2013, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2