# Fire 1.2.0

**URL:** <https://www.ruby-forum.com/t/fire-1-2-0/115634>\
**Category:** Ruby\
**Created:** [September 27, 2007, 2:00am UTC](https://www.ruby-forum.com/t/fire-1-2-0/115634 "2007-09-27T02:00:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [September 27, 2007, 2:00am UTC](https://www.ruby-forum.com/t/fire-1-2-0/115634/1 "2007-09-27T02:00:13Z")

</div>

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.rubyforge.com/](http://fire.rubyforge.com/)

## 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

- [http://fire.rubyforge.com/](http://fire.rubyforge.com/)

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

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [September 27, 2007, 2:01am UTC](https://www.ruby-forum.com/t/fire-1-2-0/115634/2 "2007-09-27T02:01:23Z")

</div>

BTW, you need ruby/pcap installed

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

> 99, and 1632!  
> rule\_set :mondays { |pkt|
> 
> - Changed Porter DSL and Usage
> 
> - [http://fire.rubyforge.com/](http://fire.rubyforge.com/)
> 
> ~ Ari  
> English is like a pseudo-random number generator - there are a  
> bajillion rules to it, but nobody cares.

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