RE: [Snort-users] Snort -> Mysql formatting IP addresses

This is a discussion on RE: [Snort-users] Snort -> Mysql formatting IP addresses within the Snort forums, part of the System Security and Security Related category; > > Hey all. I have a problem with the way MySQL / ACID stores IP > addresses from > Snort. ...


Go Back   Usenet Forums > System Security and Security Related > Snort

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-17-2003
Steve Halligan
 
Posts: n/a
Default RE: [Snort-users] Snort -> Mysql formatting IP addresses

>
> Hey all. I have a problem with the way MySQL / ACID stores IP
> addresses from
> Snort. It stores them in the database in a 10 digit integer
> format, but I
> need to convert that to a real 4 octet IP address. What is
> the mathematics
> used to do the conversion?
>
> Does anyone have a perl script that will do this?
>
> Thanks
>
> -Jason



First off, one drink penalty for a signature longer that the actual
message. (or was it 2 drinks?)

When you run the query wrap a INET_NTOA() around the table column that
you want in dotted decimal.

If you want to query based on a dotted decimal use INET_ATON('1.2.3.4')
in your WHERE clause.


-steve


-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
_______________________________________________
Snort-users mailing list
Snort-users@lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/...fo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.p...st=snort-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0