From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 66-197-196-101.hostnoc.net ([66.197.196.101] helo=www5.stonewebs.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1HpY0m-0000zc-00 for ; Sat, 19 May 2007 19:06:57 -0400 Received: from 75-120-0-7.dyn.centurytel.net ([75.120.0.7] helo=[192.168.2.103]) by www5.stonewebs.com with esmtp (Exim 4.63) (envelope-from ) id 1HpY0r-0005RU-7l for speakup@braille.uwo.ca; Sat, 19 May 2007 18:07:01 -0500 Message-Id: <5DDB0BF1-F87A-48F3-9992-6B241EE3AC66@softcon.com> From: Travis Siegel To: "Speakup is a screen review system for Linux." In-Reply-To: <003b01c79a65$3b5689d0$6501a8c0@GRANDMA> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v880) Subject: Re: shell script request? possibly? X-Priority: 3 Date: Sat, 19 May 2007 18:06:52 -0500 References: <003b01c79a65$3b5689d0$6501a8c0@GRANDMA> X-Mailer: Apple Mail (2.880) X-PopBeforeSMTPSenders: books@softcon.com,tsiegel@softcon.com X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - www5.stonewebs.com X-AntiAbuse: Original Domain - braille.uwo.ca X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - softcon.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.9 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 23:06:57 -0000 If you want them in a file, why not just use the ip_deny file itself? Why do you need to put them in a different file? On May 19, 2007, at 5:29 PM, Littlefield, Tyler wrote: > hello list, > Could I possibly bauther someone to tell me how to do this? > I have little to no experience with ssh scripting at all. > My idea is this: > I want to take the ip addresses from /etc/hosts.deny and put them in > a file, or just do the following: > iptables -A INPUT -s x.x.x.x -j DROP > where x.x.x.x would be the IP found in the hosts.deny file. > I have a or will have a script in init.d that will add all the rules > to iptables when it starts, so the script can be executed. > Any help with this would be appriciated. > Thanks, > ~~TheCreator~~ > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup