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

L

Leonardo Eloy

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=3D959

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=3D$RUBYLIB:/usr/local/lib/ruby/gems/1.8/gems/rubyipq-0.1=
0-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
 
G

Guillaume Marcais

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.
 
L

Leonardo Eloy

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top