Re: perl interface to pf?

2005-11-04 Thread Marc Peters
[EMAIL PROTECTED] schrieb: [snip] One problem is parsing and syntax checking of pf rules so that garbage isn't fed to for example pfctl if that is the method one chooses. [snip] that's where the -n option of pfctl is for, isn't it?

Re: perl interface to pf?

2005-11-03 Thread Jesper Louis Andersen
John N. Brahy wrote: Is there a perl interface to pf? No, and it would be totally insane to build one. PF is not a low-level assembly language for expressing ioctl(2) calls. It is an LALR(1) grammar for specifying firewall policies. Because of its high abstraction level compared to said

Re: perl interface to pf?

2005-11-03 Thread Markus Wernig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesper Louis Andersen wrote: John N. Brahy wrote: Is there a perl interface to pf? No, and it would be totally insane to build one. Well, the only use that came to my mind was a perl daemon running on the FW that accepts rule updates from

Re: perl interface to pf?

2005-11-03 Thread Chad M Stewart
On Nov 3, 2005, at 8:17 AM, Markus Wernig wrote: Well, the only use that came to my mind was a perl daemon running on the FW that accepts rule updates from a remote client. While that can be done with other means (ssh, sh scripts), i can imagine that a perl class for manipulating pf rules

Re: perl interface to pf?

2005-11-03 Thread jorgen . boberg
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Markus Wernig Sent: den 3 november 2005 14:17 To: Jesper Louis Andersen Cc: John N. Brahy; misc@openbsd.org Subject: Re: perl interface to pf? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesper Louis

Re: perl interface to pf?

2005-11-03 Thread Dylan Smith
On Thursday 03 November 2005 13:49, you wrote: I'd rather rely on ssh, keys, sudo, and scripts to do it. Erm, perl scripts ARE scripts!

perl interface to pf?

2005-11-01 Thread John N. Brahy
Is there a perl interface to pf?

Re: perl interface to pf?

2005-11-01 Thread Marco Peereboom
This is the weirdest thing I have heard all week. On Tue, Nov 01, 2005 at 08:36:59AM -0800, John N. Brahy wrote: Is there a perl interface to pf?

Re: perl interface to pf?

2005-11-01 Thread Bob Beck
* Marco Peereboom [EMAIL PROTECTED] [2005-11-01 10:11]: This is the weirdest thing I have heard all week. On Tue, Nov 01, 2005 at 08:36:59AM -0800, John N. Brahy wrote: Is there a perl interface to pf? 8 #!/usr/bin/perl if ((not 0 not 1) != (!0 !1)) { print No, just

Re: perl interface to pf?

2005-11-01 Thread Diana Eichert
On Tue, 1 Nov 2005, Bob Beck wrote: * Marco Peereboom [EMAIL PROTECTED] [2005-11-01 10:11]: This is the weirdest thing I have heard all week. On Tue, Nov 01, 2005 at 08:36:59AM -0800, John N. Brahy wrote: Is there a perl interface to pf? 8 #!/usr/bin/perl if ((not 0 not 1

Re: perl interface to pf?

2005-11-01 Thread Simon Dassow
On Tue, Nov 01, 2005 at 08:36:59AM -0800, John N. Brahy wrote: Is there a perl interface to pf? Perl is able to play with ioctl(2), maybe this fits your needs. If not go ahead, learn XS and write your own libs for that. But i hardly see any sense behind it : Regards Simon

Re: perl interface to pf?

2005-11-01 Thread Bob Beck
But, I need it in Ruby said the Whiney User. But I think Mauve has more RAM.

Re: perl interface to pf?

2005-11-01 Thread Jason Dixon
On Nov 1, 2005, at 1:02 PM, Simon Dassow wrote: On Tue, Nov 01, 2005 at 08:36:59AM -0800, John N. Brahy wrote: Is there a perl interface to pf? Perl is able to play with ioctl(2), maybe this fits your needs. If not go ahead, learn XS and write your own libs for that. But i hardly see any

Re: perl interface to pf?

2005-11-01 Thread John Brahy
You're totally correct and I replied to him and apologized. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Thomas Sent: Tuesday, November 01, 2005 1:09 PM To: OpenBSD-Misc Subject: Re: perl interface to pf? On 11/1/05, John Brahy [EMAIL PROTECTED

Re: perl interface to pf?

2005-11-01 Thread Marco Peereboom
Maybe you should look at the question again. On Nov 1, 2005, at 2:16 PM, John Brahy wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Diana Eichert Sent: Tuesday, November 01, 2005 9:47 AM To: misc@openbsd.org Subject: Re: perl interface to pf