[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] fire 1.2.0

Ari Brown

9/26/2007 11:59:00 PM

For the three people who downloaded this before..... You REALLY need
to download this one.

fire version 1.2.0 has been released!

* <http://fire.rubyforg...

## SYNOPSIS:

Here's how to set up a Port Knocking Daemon with a key of ports 15,
99, and 1632!
When the password is accepted, it says "hello, world":

class MyPorter < Porter

rule_set :normal { |pkt|
rule { pkt.tcp? }
rule { Time.now - $pkt.knock(1).time == 3 }

}

rule_set :mondays { |pkt|
rule { false} #=> Always fails
}

accept :mondays {
puts "DIEEEEEEEE"
}

accept :normal {
puts "hello, world"
}

use :normal
end

MyPorter.new([15, 99, 1632], true)


Here's how to set up a quick firewall, which saves it as an IPTables
script:
Firewall :write, "/Users/ari/Desktop/firewall.sh" do
@debug = true

Filter do
chain "extra_packets"

etc ....

Changes:

## 1.2.0 / 2007-09-26

* 1 major enhancement
* Changed Porter DSL and Usage

* <http://fire.rubyforg...

~ Ari
English is like a pseudo-random number generator - there are a
bajillion rules to it, but nobody cares.


1 Answer

Ari Brown

9/27/2007 12:01:00 AM

0

BTW, you need ruby/pcap installed

On Sep 26, 2007, at 7:59 PM, Ari Brown wrote:

> For the three people who downloaded this before..... You REALLY
> need to download this one.
>
> fire version 1.2.0 has been released!
>
> * <http://fire.rubyforg...
>
> ## SYNOPSIS:
>
> Here's how to set up a Port Knocking Daemon with a key of ports 15,
> 99, and 1632!
> When the password is accepted, it says "hello, world":
>
> class MyPorter < Porter
>
> rule_set :normal { |pkt|
> rule { pkt.tcp? }
> rule { Time.now - $pkt.knock(1).time == 3 }
>
> }
>
> rule_set :mondays { |pkt|
> rule { false} #=> Always fails
> }
>
> accept :mondays {
> puts "DIEEEEEEEE"
> }
>
> accept :normal {
> puts "hello, world"
> }
>
> use :normal
> end
>
> MyPorter.new([15, 99, 1632], true)
>
>
> Here's how to set up a quick firewall, which saves it as an
> IPTables script:
> Firewall :write, "/Users/ari/Desktop/firewall.sh" do
> @debug = true
>
> Filter do
> chain "extra_packets"
>
> etc ....
>
> Changes:
>
> ## 1.2.0 / 2007-09-26
>
> * 1 major enhancement
> * Changed Porter DSL and Usage
>
> * <http://fire.rubyforg...
>
> ~ Ari
> English is like a pseudo-random number generator - there are a
> bajillion rules to it, but nobody cares.
>
>
>

-------------------------------------------|
Nietzsche is my copilot