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.
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!
[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:
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.
> 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 /
> 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!
> [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.
> 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.
> 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.
> > 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 /
> > 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!