Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN] Rubyipq v0.1.0: Bindings for Netfilter's libipq

4 views
Skip to first unread message

Leonardo Eloy

unread,
Nov 3, 2005, 9:48:24 AM11/3/05
to
Hi there!

Rubyipq are Ruby bindings for Netfilter's libipq (ip queue), making it
possible for developers to intercept the incoming IP traffic, deciding
whether to accept or drop it (issuing a verdict) according to the
iptables rule set.

Project Homepage: http://rubyipq.rubyforge.org
Downloads (Source, Gem): http://rubyforge.org/frs/?group_id=959

Version 0.1.0 features:
* Built-in IP, TCP and UDP headers implementation;
* Possibility to obtain packet data;
* Implemented the whole ipq_packet_msg_t structure;
* Added the whole bunch of protocol numbers;
* Dynamic buffer size setting.


Installation from sources:
# tar -xzvf rubyipq-0.1.0.tar.gz
# cd rubyipq-0.1.0
# make
# make install


It's also available via RubyGems:
# gem install rubyipq

if you try to run the sample file and it cannot find the library, try
using something like this:
# export RUBYLIB=$RUBYLIB:/usr/local/lib/ruby/gems/1.8/gems/rubyipq-0.10-i686-linux/

I'm currently writing the manual and RDoc for this extension, I hope
in a week or so I'll have something ready. If anything goes wrong,
drop me a line, though. I'm also looking for someone to make a new
site for Rubyipq!

Att,.
Leonardo Eloy


Guillaume Marcais

unread,
Nov 3, 2005, 7:35:12 PM11/3/05
to
I have problem with the gem:

[gus@comp tmp]$ sudo gem install rubyipq
Password:
Attempting local installation of 'rubyipq'
Local gem file not found: rubyipq*.gem
Attempting remote installation of 'rubyipq'
Updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find rubyipq (> 0) in the repository

[gus@comp tmp]$ sudo gem
install /home/gus/Source/Ruby/gem/rubyipq-0.1.0-i686-linux.gem
Attempting local installation of
'/home/gus/Source/Ruby/gem/rubyipq-0.1.0-i686-linux.gem'
ERROR: Error installing
gem /home/gus/Source/Ruby/gem/rubyipq-0.1.0-i686-linux.gem[.gem]: parse
error on line 0, col 31: `!ruby/object:Gem::Specification '

I modified the extconf.rb as followed for it to work:

--- extconf.rb.org 2005-11-03 18:29:23.000000000 -0500
+++ extconf.rb 2005-11-03 18:30:11.000000000 -0500
@@ -5,8 +5,8 @@
have_header("libipq.h")
have_header("linux/netfilter.h")

-find_header("rubyipq.h", ".")
-find_header("rubyipq_proto.h", ".")
+have_header("rubyipq.h")
+have_header("rubyipq_proto.h")

create_makefile("Rubyipq")

After this it compiled with no problem. I hope to get you some more
feedback. I think this will be a useful library for me.

Thanks,
Guillaume.


On Thu, 2005-11-03 at 23:48 +0900, Leonardo Eloy wrote:
> Hi there!
>
> Rubyipq are Ruby bindings for Netfilter's libipq (ip queue), making it
> possible for developers to intercept the incoming IP traffic, deciding
> whether to accept or drop it (issuing a verdict) according to the
> iptables rule set.
>
> Project Homepage: http://rubyipq.rubyforge.org
> Downloads (Source, Gem): http://rubyforge.org/frs/?group_id=959
>
> Version 0.1.0 features:
> * Built-in IP, TCP and UDP headers implementation;
> * Possibility to obtain packet data;
> * Implemented the whole ipq_packet_msg_t structure;
> * Added the whole bunch of protocol numbers;
> * Dynamic buffer size setting.
>
>
> Installation from sources:
> # tar -xzvf rubyipq-0.1.0.tar.gz
> # cd rubyipq-0.1.0
> # make
> # make install
>
>
> It's also available via RubyGems:
> # gem install rubyipq
>
> if you try to run the sample file and it cannot find the library, try
> using something like this:

> # export RUBYLIB=$RUBYLIB:/usr/local/lib/ruby/gems/1.8/gems/rubyipq-0.1.0-i686-linux/

Tom Copeland

unread,
Nov 3, 2005, 8:18:51 PM11/3/05
to
On Fri, 2005-11-04 at 09:35 +0900, Guillaume Marcais wrote:
> ERROR: Error installing
> gem /home/gus/Source/Ruby/gem/rubyipq-0.1.0-i686-linux.gem[.gem]: parse
> error on line 0, col 31: `!ruby/object:Gem::Specification '

Yup, this is a sign of the problem described here:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/161508

Yours,

tom


Leonardo Eloy

unread,
Nov 3, 2005, 11:37:34 PM11/3/05
to
On 11/3/05, Guillaume Marcais <gus...@free.fr> wrote:
> I have problem with the gem:
>
> [gus@comp tmp]$ sudo gem install rubyipq
> Password:
> Attempting local installation of 'rubyipq'
> Local gem file not found: rubyipq*.gem
> Attempting remote installation of 'rubyipq'
> Updating Gem source index for: http://gems.rubyforge.org
> ERROR: While executing gem ... (Gem::GemNotFoundException)
> Could not find rubyipq (> 0) in the repository
>
> [gus@comp tmp]$ sudo gem
> install /home/gus/Source/Ruby/gem/rubyipq-0.1.0-i686-linux.gem
> Attempting local installation of
> '/home/gus/Source/Ruby/gem/rubyipq-0.1.0-i686-linux.gem'
> ERROR: Error installing
> gem /home/gus/Source/Ruby/gem/rubyipq-0.1.0-i686-linux.gem[.gem]: parse
> error on line 0, col 31: `!ruby/object:Gem::Specification '
>
> I modified the extconf.rb as followed for it to work:
>

Thanks a lot Guillaume, I'm correcting this issue right now.

> --- extconf.rb.org 2005-11-03 18:29:23.000000000 -0500
> +++ extconf.rb 2005-11-03 18:30:11.000000000 -0500
> @@ -5,8 +5,8 @@
> have_header("libipq.h")
> have_header("linux/netfilter.h")
>
> -find_header("rubyipq.h", ".")
> -find_header("rubyipq_proto.h", ".")
> +have_header("rubyipq.h")
> +have_header("rubyipq_proto.h")
>
> create_makefile("Rubyipq")
>
> After this it compiled with no problem. I hope to get you some more
> feedback. I think this will be a useful library for me.

Thanks again! Please send me a mail if you have any trouble getting it
to work or suggestions... I'll be kinda busy this weekend but I'll try
to finish the "manual" ASAP.


--
Leonardo Eloy, LPIC-1, FCSE, SCPJ


0 new messages