From: Konrad Meyer Date: 2007-09-21T11:17:02+09:00 Subject: Re: [ANN] fire 1.0.0 --nextPart2007577.ajauJnozSG Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth Ari Brown: > fire version 1.8.6 has been released! >=20 > * >=20 > ## SYNOPSIS: >=20 > Here's how to set up a Port Knocking Daemon with a key of ports 15, =20 > 99, and 1632! > When the password is accepted, it prints w007! >=20 > #### > class MyPorter < Porter >=20 > def initialize(*arr) > super(*arr) > end >=20 > def rules(pkt) > return false unless pkt.to_s =3D~ /192.168.15.1/ > true > end >=20 > def accept(pkt) > puts "w007" > end > end >=20 > MyPorter.new([15, 99, 1632]) >=20 >=20 >=20 > Here's how to set up a quick firewall, which saves it as an IPTables =20 > script: >=20 > ###### > Firewall :write, "/Users/ari/Desktop/firewall.sh" do > @debug =3D true >=20 > Filter do > chain "extra_packets" >=20 > extra_packets do > log :all > end >=20 > INPUT do > drop :all, :protocol =3D> "tcp --syn", > :dest =3D> "192.168.15.1" > drop :all, :not =3D> {:port =3D> "80"}, > :ip =3D> "192.168.0.0/16", > :dest_ip =3D> "192.168.0.0/16", > :interface =3D> "eth0" > send :all, :to =3D> "extra_packets" > end > end >=20 > NAT do > chain("TEST") > TEST do > accept :all > end > end >=20 > Mangle do > end >=20 > Raw do > end > end >=20 >=20 > ########## > And of course, you can manipulate IPTables within your script =20 > (experimental, but useable) >=20 > iptables =3D IPTables.new > iptables.drop :all >=20 >=20 > Changes: >=20 > ## 1.0.0 / 2007-09-15 >=20 > * 1 major enhancement > * Birthday! >=20 > * >=20 > -------------------------------------------| > Nietzsche is my copilot Sounds very cool. I am interested in setting up a port-knocking system, so I'll take a look :D. =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart2007577.ajauJnozSG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBG8ymaCHB0oCiR2cwRAnG9AKCDK6dxtFu0nqI0TMVwUxQDqwbSIACffita LAoDr19TNiKWR+gXp2GTT/Q= =+yyc -----END PGP SIGNATURE----- --nextPart2007577.ajauJnozSG--