<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>I am also facing the same problem - Need to
blacklist range of IPs</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=nev@itsnev.co.uk href="mailto:nev@itsnev.co.uk">Neville</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeradius-users@lists.freeradius.org
href="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, January 05, 2010 11:55
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Reject Calling-Station-Id</DIV>
<DIV><BR></DIV>
<DIV>First, please let me wish everyone a Happy New Year in the list.
I've learned a lot in the past 12 months and have a fairly stable installation
of 2.1.6 on CentOS 5.4.</DIV>
<DIV> </DIV>
<DIV>The question, I would like to ask is how can I improve on this and use a
DB List/Table to Blacklist certain IP addresses.</DIV>
<DIV> </DIV>
<DIV>if(Calling-Station-Id ==
218.18.XX.XX){<BR>
reject<BR>}<BR>if(Calling-Station-Id ==
113.237.XX.XX){<BR>
reject<BR>}</DIV>
<DIV> </DIV>
<DIV>The reason I'm having to do this is that we offer a 1hr Free Trial of our
services and use the Email Address and IP address at the point of
registration to ensure that the same person does not keep requesting more and
more free trials. Obviously this not perfect and manages to address most
of our requirements.</DIV>
<DIV> </DIV>
<DIV>However, there are a view people out there, that registered with a spoof
IP Address and another free hotmail account etc, thus getting another Free
Trial over and over again. The way I'm stop this currently, is manually
check the record we had at the point of request for the Free Trial, and the IP
address used to access the Service, if these are different then I block the IP
address using the unlang above.</DIV>
<DIV> </DIV>
<DIV>There is only a few currently, but should this increase and I would like
a more fool proof way to manage this and register the fact that someone has
abused our free trial service and BLOCK there IP from accessing our service,
even if they have been given a Username/Password via the Free Trial
Page.</DIV>
<DIV> </DIV>
<DIV>Thanks in advance,</DIV>
<DIV> </DIV>
<DIV>Nev</DIV>
<P></P>
<P></P>________________________________________________________________
<DIV
style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 468px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; solid: ">
<FORM method=get action=http://order.1and1.com/dcjump target=_blank>
<P align=center>5 free Domains with Select Hosting Plans. Get yours!</P>
<CENTER>
<TABLE border=0 width=320>
<TBODY>
<TR>
<TD class=form><INPUT value=25085883 type=hidden name=k_id> <INPUT
maxLength=500 name=domain> </TD>
<TD><SELECT style="WIDTH: 60px" name=tld> <OPTION selected
value=com>com</OPTION> <OPTION value=net>net</OPTION> <OPTION
value=org>org</OPTION> <OPTION value=info>info</OPTION> <OPTION
value=us>us</OPTION> <OPTION value=name>name</OPTION> <OPTION
value=biz>biz</OPTION> <OPTION value=cc>cc</OPTION> <OPTION
value=tv>tv</OPTION> <OPTION value=ws>ws</OPTION> <OPTION
value=mobi>mobi</OPTION></SELECT> </TD>
<TD> </TD>
<TD><INPUT value="Check Domain" type=submit name=Submit>
</TD></TR></TBODY></TABLE></CENTER></FORM></DIV>
<P>
<HR>
<P></P>-<BR>List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html</BLOCKQUOTE><p></p><p></p>________________________________________________________________
<div style='border:0px; solid black; width:468px;'>
<form method='get' target='_blank' ACTION='http://order.1and1.com/dcjump'>
<p align='center'>5 free Domains with Select Hosting Plans. Get yours!</p>
<center> <table border='0' width='320'>
<tr>
<td class='form'>
<input name='k_id' value='25085883' type='hidden'/>
<input size='20' maxlength='500' name='domain' type='text'/>
</td>
<td>
<select style='width:60px' name='tld'>
<option value='com'>com</option>
<option value='net'>net</option>
<option value='org'>org</option>
<option value='info'>info</option>
<option value='us'>us</option>
<option value='name'>name</option>
<option value='biz'>biz</option>
<option value='cc'>cc</option>
<option value='tv'>tv</option>
<option value='ws'>ws</option>
<option value='mobi'>mobi</option>
</select>
</td>
<td>
</td>
<td>
<input type='submit' name='Submit' value='Check Domain'/>
</td>
</tr>
</table>
</center> </form>
</div>
</BODY></HTML>