hnelis
02-26-2002, 12:34 PM
shell script
Can anyone give me information about how to make and use a shell script ? In which program (Apple script ???) does this have to be made ? I (unsuccesfully) tried to make the following one :
#!/bin/sh
/sbin/ipfw add 0 deny udp from any to any 2222 /sbin/ipfw add 0 deny tcp from any to any 3464
- end of clip
I do not know how to apply this, despite instructions from another forum user ("It's a simple shell script that blocks port 2222 UDP and 3464 TCP. Place it in /Library/StartupItems ; it will take care of things at startup").
Please note that I know nothing about UNIX, so not knowing the basics I may have a hard time to understand (supposedly known) instructions.
Thanks for any assistance.
Hans.
Can anyone give me information about how to make and use a shell script ? In which program (Apple script ???) does this have to be made ? I (unsuccesfully) tried to make the following one :
#!/bin/sh
/sbin/ipfw add 0 deny udp from any to any 2222 /sbin/ipfw add 0 deny tcp from any to any 3464
- end of clip
I do not know how to apply this, despite instructions from another forum user ("It's a simple shell script that blocks port 2222 UDP and 3464 TCP. Place it in /Library/StartupItems ; it will take care of things at startup").
Please note that I know nothing about UNIX, so not knowing the basics I may have a hard time to understand (supposedly known) instructions.
Thanks for any assistance.
Hans.