[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-security] ipchains adding to rc.local



'fi' closes 'if' statements in Bash shell scripts, and is otherwise
unnecessary.

At 12:34 PM 7/25/01 +0200, R. Hamburg wrote:
>I have installed IPchains. And have added some ip to block. However I
>understand that when you have reboot the server all
>/sbin/ipchains -I input -s 203.232.240.215 -j DENY -l
>/sbin/ipchains -I input -s 63.25.226.171 -j DENY -l
>are lost.
>So I thought adding this lines to /etc/rc.d/rc.local
>But I wondering right wheter the lines added to the bottum should be closed
>by an 'fi' command, like all other entries in the rc.local file ??
>
>is this correct so the list must look like this:
>
>/sbin/ipchains -I input -s 203.232.240.215 -j DENY -l
>/sbin/ipchains -I input -s 63.25.226.171 -j DENY -l
>fi
>
>or can I just them and no fi command at the end ?


-------------------------------------------------------------------------
Ted Behling, Web Application Developer, Monarch Information Systems, Inc.

43 Folly Field Road, Unit 4, Hilton Head Island, SC 29928-5434
E-mail: mailto:TBehling@xxxxxxxxxxxxx
Phone/Fax: 1-800-842-7894    Local or Outside the USA: 1-843-842-7894
Cell Phone (urgent issues): 843-816-7895
Cell Phone E-mail: mailto:TedPhone@xxxxxxxxxxxxx (116 letter limit)
Web site: http://www.monarchis.net
-------------------------------------------------------------------------