From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ip-206-123-194-16.static.fasttrackcomm.net ([206.123.194.16] helo=tysdomain.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1HpYDT-0001Kj-00 for ; Sat, 19 May 2007 19:20:03 -0400 Received: from [192.168.1.101] (helo=GRANDMA) by tysdomain.com with smtp (Exim 3.36 #1 (Debian)) id 1HpSc5-0000eS-00 for ; Sat, 19 May 2007 11:21:06 -0600 Message-ID: <005701c79a6c$3bafc930$6501a8c0@GRANDMA> From: "Littlefield, Tyler" To: "Speakup is a screen review system for Linux." References: <003b01c79a65$3b5689d0$6501a8c0@GRANDMA> <5DDB0BF1-F87A-48F3-9992-6B241EE3AC66@softcon.com> Subject: Re: shell script request? possibly? Date: Sat, 19 May 2007 17:20:04 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Antivirus: avast! (VPS 000741-4, 05/18/2007), Outbound message X-Antivirus-Status: Clean 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:20:03 -0000 I don't have an ip.deny file. Second, I see: sshd: x.x.x.x and some more garble. I don't think iptables would parse that very well, which was why I wanted to go through a loop and do it. Thanks, ----- Original Message ----- From: "Travis Siegel" To: "Speakup is a screen review system for Linux." Sent: Saturday, May 19, 2007 5:06 PM Subject: Re: shell script request? possibly? > 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 > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup