Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moel

macrumors 6502
Original poster
Nov 7, 2007
452
0
Hi guys, first post in this section for me...it may not be in the appropriate section, but I figured that terminal is sort of programming, and the terminal is a bit too specific for people in the OS

Anyway basically what i was hoping is if you could tell me how to (or spend 30 seconds actually making) a shell script (or maybe applescript) that i can run at startup to achieve the following

sudo killall natd

sudo natd -interface en1 \
-redirect_port tcp 192.168.2.10:3074 3074 \
-redirect_port udp 192.168.2.10:88 88 \
-redirect_port udp 192.168.2.10:3074 3074


Any help would be greatfully recieved!

Alex.
 
Cheers guys for something that would have taken you about 3 minutes and would have made a few quid with the right marketing.

Oh well.
 
Why would anyone pay for this? It's built into OS X, and there's already freeware out there to configure it beyond what System Preferences will already do.

If you want something run at startup, launchd is the way to do it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.