Awesome, thank you.<br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 9:55 PM, Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruslan.zakirov@gmail.com">ruslan.zakirov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Re.<br>
<br>
"exit 0" is totally incorrect and will break RT. use "next". Something like:<br>
<br>
next unless $bits == 32;<br>
<div><div></div><div class="h5"><br>
On Thu, Oct 8, 2009 at 8:25 AM, Landon Stewart <<a href="mailto:lstewart@superb.net">lstewart@superb.net</a>> wrote:<br>
> I think I've done it. I've edited<br>
> local/plugins/RT-IR/lib/RT/Action/RTIR_FindIP.pm and inserted a line at line<br>
> 50:<br>
><br>
> 49 while ( my ($addr, $bits) = splice @CIDRs, 0, 2 ) {<br>
> 50 if ($bits < 32) { exit 0; }<br>
> 51 my $cidr = join( '.', map $_||0, (split /\./, $addr)[0..3] )<br>
> ."/$bits";<br>
> 52 my $range = (Net::CIDR::cidr2range( $cidr ))[0] or next;<br>
> 53 $self->AddIP( IP => $range, CustomField => $cf, Skip => \%existing<br>
> );<br>
> 54 }<br>
><br>
> On Wed, Oct 7, 2009 at 9:08 PM, Landon Stewart <<a href="mailto:lstewart@superb.net">lstewart@superb.net</a>> wrote:<br>
>><br>
>> I want to record the IP addresses but not the ranges of IP addresses.<br>
>> I'll have a look at the scrip and see what I can do.<br>
>><br>
>> On Wed, Oct 7, 2009 at 8:58 PM, Ruslan Zakirov <<a href="mailto:ruslan.zakirov@gmail.com">ruslan.zakirov@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Landon, it's a scrip and you can just disable it.<br>
>>><br>
>>> On Wed, Oct 7, 2009 at 10:44 PM, Landon Stewart <<a href="mailto:lstewart@superb.net">lstewart@superb.net</a>><br>
>>> wrote:<br>
>>> > Even if there was some way to stop RTIR from expanding and storing<br>
>>> > ranges<br>
>>> > when creating the ticket that would be fine since there's really no<br>
>>> > need for<br>
>>> > the range data to be maintained for us. If anyone knows of a way to do<br>
>>> > this<br>
>>> > or where this is done so I can kludge something together that would be<br>
>>> > awesome. I find it difficult to trace how things are done when the MTA<br>
>>> > calls the URL using the API.<br>
>>> ><br>
>>> > On Wed, Oct 7, 2009 at 1:34 AM, Ruslan Zakirov<br>
>>> > <<a href="mailto:ruslan.zakirov@gmail.com">ruslan.zakirov@gmail.com</a>><br>
>>> > wrote:<br>
>>> >><br>
>>> >> Hello Landon,<br>
>>> >><br>
>>> >> I don't think it's supported out of the box. However it can be<br>
>>> >> improved.<br>
>>> >><br>
>>> >> On Wed, Oct 7, 2009 at 1:48 AM, Landon Stewart <<a href="mailto:lstewart@superb.net">lstewart@superb.net</a>><br>
>>> >> wrote:<br>
>>> >> > When using "Lookup IP" how do I not get hits from CIDR ranges? Some<br>
>>> >> > incident reports included CIDR ranges when they include our own<br>
>>> >> > whois<br>
>>> >> > information for an IP address. I'd like to not see tickets that are<br>
>>> >> > not<br>
>>> >> > directly related to the IP address for the ticket I'm looking at<br>
>>> >> > when I<br>
>>> >> > do a<br>
>>> >> > search to see if other tickets about that IP address are received.<br>
>>> >> > In<br>
>>> >> > other<br>
>>> >> > words I'd like to limit the search to exact matches only. Can I<br>
>>> >> > change<br>
>>> >> > the<br>
>>> >> > "$type" in the GET to something other than "ip" to make lookuptype<br>
>>> >> > not<br>
>>> >> > search inside ranges that match the one IP?<br>
>>> >> ><br>
>>> >> > --<br>
>>> >> > Landon Stewart <<a href="mailto:LStewart@SUPERB.NET">LStewart@SUPERB.NET</a>><br>
>>> >> > SuperbHosting.Net by Superb Internet Corp.<br>
>>> >> > Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
>>> >> > Web hosting and more "Ahead of the Rest":<br>
>>> >> > <a href="http://www.superbhosting.net" target="_blank">http://www.superbhosting.net</a><br>
>>> >> ><br>
>>> >> > _______________________________________________<br>
>>> >> > Rtir mailing list<br>
>>> >> > <a href="mailto:Rtir@lists.bestpractical.com">Rtir@lists.bestpractical.com</a><br>
>>> >> > <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir</a><br>
>>> >><br>
>>> >><br>
>>> >> --<br>
>>> >> Best regards, Ruslan.<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > --<br>
>>> > Landon Stewart <<a href="mailto:LStewart@SUPERB.NET">LStewart@SUPERB.NET</a>><br>
>>> > SuperbHosting.Net by Superb Internet Corp.<br>
>>> > Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
>>> > Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net" target="_blank">http://www.superbhosting.net</a><br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > Rtir mailing list<br>
>>> > <a href="mailto:Rtir@lists.bestpractical.com">Rtir@lists.bestpractical.com</a><br>
>>> > <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir</a><br>
>>> ><br>
>>> ><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Best regards, Ruslan.<br>
>><br>
>><br>
>><br>
>> --<br>
>> Landon Stewart <<a href="mailto:LStewart@SUPERB.NET">LStewart@SUPERB.NET</a>><br>
>> SuperbHosting.Net by Superb Internet Corp.<br>
>> Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
>> Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net" target="_blank">http://www.superbhosting.net</a><br>
><br>
><br>
><br>
> --<br>
> Landon Stewart <<a href="mailto:LStewart@SUPERB.NET">LStewart@SUPERB.NET</a>><br>
> SuperbHosting.Net by Superb Internet Corp.<br>
> Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
> Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net" target="_blank">http://www.superbhosting.net</a><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Best regards, Ruslan.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Landon Stewart <<a href="mailto:LStewart@SUPERB.NET">LStewart@SUPERB.NET</a>><br>SuperbHosting.Net by Superb Internet Corp.<br>Toll Free: 888-354-6128 x 4199 (US/Canada)<br>
Web hosting and more "Ahead of the Rest": <a href="http://www.superbhosting.net">http://www.superbhosting.net</a><br>