Terminal Shell Script for natd configuration

Discussion in 'Mac Programming' started by moel, Feb 5, 2010.

  1. moel macrumors 6502

    Joined:
    Nov 7, 2007
    #1
    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.
     
  2. moel thread starter macrumors 6502

    Joined:
    Nov 7, 2007
    #2
    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.
     
  3. Detrius macrumors 68000

    Joined:
    Sep 10, 2008
    Location:
    Asheville, NC
    #3
    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.
     

Share This Page