[#217504] is a timepoint DSL possible, like: 10:31 instead of "10:29"? — "Dirk Lüsebrink" <ruby-forum@...>

i could not think of any way to include the ':' character in a DSL, so

11 messages 2006/10/01

[#217603] Why can't I get on Top? — "Trans" <transfire@...>

More Toplevel blow:

17 messages 2006/10/02

[#217634] Creating modules — benjohn@...

21 messages 2006/10/02
[#217643] Re: Creating modules — David Vallner <david@...> 2006/10/02

benjohn@fysh.org wrote:

[#217651] Re: Creating modules — benjohn@... 2006/10/02

I wrote before about the modules I'm trying to build on the fly. I'm

[#217656] Creating dynamically named singleton methods. Syntax question. — "Luke Stark" <Luke.Stark@...> 2006/10/02

You may create singleton methods like so:

[#217700] Special variable within iterators to hold results? — Wes Gamble <weyus@...>

I have this:

11 messages 2006/10/02

[#217783] JRuby scripting for Mozilla? — Kenneth McDonald <kenneth.m.mcdonald@...>

Given that JRuby runs on Java, and Java can, I believe be used to script

12 messages 2006/10/03

[#217812] dynamically changing superclass/mixins — Michael Keller <ask@...>

I have strong interest in highly dynamic languages, particularly

16 messages 2006/10/03

[#217903] NET::HTTP behind a firewall? — Joe Regular <kristapestry@...>

I recently deployed an app to my production server that accesses other

27 messages 2006/10/03
[#217908] Re: NET::HTTP behind a firewall? — "Francis Cianfrocca" <garbagecat10@...> 2006/10/03

On 10/3/06, Joe Regular <kristapestry@yahoo.com> wrote:

[#217909] Re: NET::HTTP behind a firewall? — Jeremy Tregunna <jtregunna@...> 2006/10/03

[#217917] Re: NET::HTTP behind a firewall? — Joe Regular <kristapestry@...> 2006/10/03

Jeremy Tregunna wrote:

[#217919] Re: NET::HTTP behind a firewall? — Joe Regular <kristapestry@...> 2006/10/03

Joe Regular wrote:

[#217921] Re: NET::HTTP behind a firewall? — "Francis Cianfrocca" <garbagecat10@...> 2006/10/03

On 10/3/06, Joe Regular <kristapestry@yahoo.com> wrote:

[#217933] Re: NET::HTTP behind a firewall? — Joe Regular <kristapestry@...> 2006/10/04

Yes, eth1 is the public nic. I can not ping anything with the firewall

[#217945] rb_funcall() Ruby code callback invoked from within a native thread? — "Serge Kruppa" <serge.kruppa@...>

Dear All,

9 messages 2006/10/04
[#217950] Re: rb_funcall() Ruby code callback invoked from within a native thread? — "Francis Cianfrocca" <garbagecat10@...> 2006/10/04

On 10/4/06, Serge Kruppa <serge.kruppa@simitel.com> wrote:

[#217997] Enterprise-Ruby Wish List by Francis Cianfrocca — "zoat" <enogrob@...>

In all the recent talk (some would say hype) about the Ruby programming

32 messages 2006/10/04
[#218006] Re: Enterprise-Ruby Wish List by Francis Cianfrocca — Joel VanderWerf <vjoel@...> 2006/10/04

zoat wrote:

[#218007] Re: Enterprise-Ruby Wish List by Francis Cianfrocca — "Francis Cianfrocca" <garbagecat10@...> 2006/10/04

On 10/4/06, Joel VanderWerf <vjoel@path.berkeley.edu> wrote:

[#218012] Re: Enterprise-Ruby Wish List by Francis Cianfrocca — Jeremy Tregunna <jtregunna@...> 2006/10/04

[#218019] Re: Enterprise-Ruby Wish List by Francis Cianfrocca — "Francis Cianfrocca" <garbagecat10@...> 2006/10/04

On 10/4/06, Jeremy Tregunna <jtregunna@blurgle.ca> wrote:

[#218208] Re: Enterprise-Ruby Wish List by Francis Cianfrocca — Brian McCallister <brianm@...> 2006/10/05

On Oct 4, 2006, at 10:59 AM, Francis Cianfrocca wrote:

[#218031] What is the reason for this syntax? — Kevin Olemoh <darkintent@...>

Hello I have been using ruby off and on for a few months and I have been

83 messages 2006/10/04
[#218059] Re: What is the reason for this syntax? — "Just Another Victim of the Ambient Morality" <ihatespam@...> 2006/10/04

Just to add to a very good response to the original post...

[#218256] Re: What is the reason for this syntax? — Kevin Olemoh <darkintent@...> 2006/10/05

Just Another Victim of the Ambient Morality wrote:

[#218284] Re: What is the reason for this syntax? — David Vallner <david@...> 2006/10/05

Kevin Olemoh wrote:

[#218295] Re: What is the reason for this syntax? — Charles Oliver Nutter <Charles.O.Nutter@...> 2006/10/05

David Vallner wrote:

[#218306] Re: What is the reason for this syntax? — "Louis J Scoras" <louis.j.scoras@...> 2006/10/06

On 10/5/06, Charles Oliver Nutter <Charles.O.Nutter@sun.com> wrote:

[#218339] Re: What is the reason for this syntax? — "Jean Helou" <jean.helou@...> 2006/10/06

On 10/6/06, Louis J Scoras <louis.j.scoras@gmail.com> wrote:

[#218397] Re: What is the reason for this syntax? — "Louis J Scoras" <louis.j.scoras@...> 2006/10/06

On 10/6/06, Jean Helou <jean.helou@gmail.com> wrote:

[#218430] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/06

People really should be able to write code in the way that they

[#218493] Re: What is the reason for this syntax? — David Vallner <david@...> 2006/10/06

Kevin Olemoh wrote:

[#218501] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/06

I don't think of the blocks in the same way the real problem is that

[#218510] Re: What is the reason for this syntax? — "Louis J Scoras" <louis.j.scoras@...> 2006/10/06

On 10/6/06, Kevin Olemoh <darkintent@gmail.com> wrote:

[#218513] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/07

Thats why I keep sayind defacto (by default) in other words this style

[#219041] Re: What is the reason for this syntax? — "Tom Armitage" <tom.armitage@...> 2006/10/11

On 07/10/06, Kevin Olemoh <darkintent@gmail.com> wrote:

[#219738] Re: What is the reason for this syntax? — "rpardee@..." <rpardee@...> 2006/10/14

But isn't almost everybody coming from *somewhere*? This seems to me a

[#219763] Re: What is the reason for this syntax? — dblack@... 2006/10/15

Hi --

[#219779] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/15

Personally I don't think else if needs to be an actual reserved word.

[#219780] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/15

I wanted to add that it may not be so advantageous to have so many

[#219886] Re: What is the reason for this syntax? — "Austin Ziegler" <halostatue@...> 2006/10/15

On 10/15/06, Kevin Olemoh <darkintent@gmail.com> wrote:

[#219897] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/15

All I said was that perhps there needs to be a movement to remove some

[#219916] Re: What is the reason for this syntax? — "Austin Ziegler" <halostatue@...> 2006/10/16

On 10/15/06, Kevin Olemoh <darkintent@gmail.com> wrote:

[#219919] Re: What is the reason for this syntax? — "Rick DeNatale" <rick.denatale@...> 2006/10/16

On 10/15/06, Austin Ziegler <halostatue@gmail.com> wrote:

[#219934] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/16

Having ten dialects of the same language does not nessecarily improve

[#219943] Re: What is the reason for this syntax? — "Austin Ziegler" <halostatue@...> 2006/10/16

Note: this has moved far beyond Ruby. This will, therefore, be my last

[#219947] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/16

Just because creating commonality almost always requires supression

[#220022] Re: What is the reason for this syntax? — "Tom Armitage" <tom.armitage@...> 2006/10/16

On 16/10/06, Kevin Olemoh <darkintent@gmail.com> wrote:

[#220023] Re: What is the reason for this syntax? — "Martin Coxall" <pseudo.meta@...> 2006/10/16

> My point is: diversity of language leads to diversity of culture and

[#220056] Re: What is the reason for this syntax? — "Kevin Olemoh" <darkintent@...> 2006/10/16

Who said you had to force anything? Why do you assume that in all

[#220070] Re: What is the reason for this syntax? — "Louis J Scoras" <louis.j.scoras@...> 2006/10/16

On 10/16/06, Kevin Olemoh <darkintent@gmail.com> wrote:

[#218056] Associating data with a function — "Gavin Kistner" <gavin.kistner@...>

Because I just had to solve this problem in both JavaScript and Lua, and

17 messages 2006/10/04

[#218159] Re: traits question — ara.t.howard@...

14 messages 2006/10/05

[#218209] nil being empty — Ohad Lutzky <lutzky@...>

Show of hands - who thinks this is bad form?

59 messages 2006/10/05
[#218400] Re: nil being empty — "Trans" <transfire@...> 2006/10/06

[#218602] Re: nil being empty — "Matthew Harris" <shugotenshi@...> 2006/10/08

I'd like to use the common Python term, "sequence", and ask if a nil

[#218604] Re: nil being empty — Hal Fulton <hal9000@...> 2006/10/08

Matthew Harris wrote:

[#218609] Re: nil being empty — "Robert Dober" <robert.dober@...> 2006/10/08

On 10/8/06, Hal Fulton <hal9000@hypermetrics.com> wrote:

[#218222] Ruby Cookbook review — "zoat" <enogrob@...>

Because of the recent and sudden interest in Ruby on Rails, there is

18 messages 2006/10/05
[#218226] Re: Ruby Cookbook review — "Justin Bailey" <jgbailey@...> 2006/10/05

On 10/5/06, zoat <enogrob@hotmail.com> wrote:

[#218267] Re: Ruby Cookbook review — darren kirby <bulliver@...> 2006/10/05

quoth the Justin Bailey:

[#218366] Re: Ruby Cookbook review — "zoat" <enogrob@...> 2006/10/06

...I think I can answer that myself. Why are you so concerned with

[#218230] question mark at end of method name — "py" <codecraig@...>

what does the question mark at the end of a method name represent?

12 messages 2006/10/05

[#218252] Compound Parallel Operators — "Gavin Kistner" <gavin.kistner@...>

(I didn't see an RCR for this, and my lazy 60s of searching didn't find

17 messages 2006/10/05
[#218336] Re: Compound Parallel Operators — "Martin Coxall" <pseudo.meta@...> 2006/10/06

> Wouldn't it be nice if all compound operators worked with parallel

[#218385] Posix Pangrams (#97) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

23 messages 2006/10/06

[#218404] tabs and parse errors with Ruby 1.8.4 and Windows — Will Rogers <wjrogers@...>

This is a cross-post from the Rails list in hopes of getting some

13 messages 2006/10/06

[#218522] In the year 2525 — "Jim v. Tess" <jimvtess@...>

Is there a reason why Time.local can't handle dates beyond 2038? I know

21 messages 2006/10/07

[#218577] Ruby vs. Rails — "Giles Bowkett" <gilesb@...>

OK, this question came up on a local list, and I don't have the answer.

48 messages 2006/10/07
[#218596] Re: Ruby vs. Rails — Devin Mullins <twifkak@...> 2006/10/08

Giles Bowkett wrote:

[#218607] Re: Ruby vs. Rails — "M. Edward (Ed) Borasky" <znmeb@...> 2006/10/08

Devin Mullins wrote:

[#218854] Re: Ruby vs. Rails — "Martin DeMello" <martindemello@...> 2006/10/10

On 10/8/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:

[#218896] Re: Ruby vs. Rails — "M. Edward (Ed) Borasky" <znmeb@...> 2006/10/10

Martin DeMello wrote:

[#219018] Re: Ruby vs. Rails — "John W. Kennedy" <jwkenne@...> 2006/10/11

M. Edward (Ed) Borasky wrote:

[#218600] HTML reporter for Test::Unit — Benjamin Curtis <ruby@...>

Tesly Jr. (http://junior.tesly.com) is a hosted web app that provides

18 messages 2006/10/08

[#218663] || explanation in ruby... in pseudolanguage — Tuka Opaleye <tuka@...>

Hi,

20 messages 2006/10/08
[#218687] Re: || explanation in ruby... in pseudolanguage — Dave Burt <dave@...> 2006/10/09

Tuka Opaleye wrote:

[#218762] Re: || explanation in ruby... in pseudolanguage — Tuka Opaleye <tuka@...> 2006/10/09

Thanks for the input guys. This really helps.

[#218776] Re: || explanation in ruby... in pseudolanguage — Dave Burt <dave@...> 2006/10/09

Tuka Opaleye wrote:

[#218817] Re: || explanation in ruby... in pseudolanguage — "Max Muermann" <ruby@...> 2006/10/09

On 10/10/06, Dave Burt <dave@burt.id.au> wrote:

[#218861] Re: || explanation in ruby... in pseudolanguage — "Tom Armitage" <tom.armitage@...> 2006/10/10

> Anyway, if it helps, I tend to think of the |var| notation as "with", e.g.

[#218705] Removing Duplicate Objects from Object List — "Jeff Nyman" <jeffnyman_nospam@..._gmail.com>

Greetings all.

10 messages 2006/10/09

[#218733] Ruva: Pure-ruby toy (J)VM — Ross Bamford <rossrt@...>

Hi,

25 messages 2006/10/09
[#218792] Re: [ANN] Ruva: Pure-ruby toy (J)VM — Christian Neukirchen <chneukirchen@...> 2006/10/09

Ross Bamford <rossrt@roscopeco.co.uk> writes:

[#218944] rubyforge.org down — "Tom Copeland" <tom@...>

RubyForge is down... investigating now.

18 messages 2006/10/10
[#218958] Re: rubyforge.org down — Gaspard Gaspard <gaspard@...> 2006/10/10

Tom Copeland wrote:

[#218972] Re: rubyforge.org down — "Tom Copeland" <tom@...>

> RubyForge is down... investigating now.

29 messages 2006/10/10
[#218974] Re: rubyforge.org down — James Edward Gray II <james@...> 2006/10/10

On Oct 10, 2006, at 3:52 PM, Tom Copeland wrote:

[#218975] Re: rubyforge.org down — "Tom Copeland" <tom@...> 2006/10/10

> > It's back up now. We may be having hardware issues - the machine

[#218978] Re: rubyforge.org down — Tim Bray <tbray@...> 2006/10/10

On Oct 10, 2006, at 2:08 PM, Tom Copeland wrote:

[#219008] Re: rubyforge.org down — Tom Copeland <tom@...> 2006/10/11

On Wed, 2006-10-11 at 06:21 +0900, Tim Bray wrote:

[#219019] Re: rubyforge.org down — Charles Oliver Nutter <Charles.O.Nutter@...> 2006/10/11

Tom Copeland wrote:

[#219031] Re: rubyforge.org down — Tom Copeland <tom@...> 2006/10/11

On Wed, 2006-10-11 at 13:41 +0900, Charles Oliver Nutter wrote:

[#218977] Booksales @Rubyconf? — Tim Bray <tbray@...>

Will someone be setting up a bookstand at Rubyconf? I see this at

15 messages 2006/10/10

[#219033] Execution of rubyfile in remote machines — Sampurna Mishra <tanushree.bhoi@...>

Hi All,

13 messages 2006/10/11

[#219045] scanning strings, backward? — Bil Kleb <Bil.Kleb@...>

Hi,

17 messages 2006/10/11

[#219152] Re: rubyforge.org still down ? — "Tom Copeland" <tom@...>

> Cool, yup, right on. I'm going to take rubyforge down around

14 messages 2006/10/11
[#219153] Re: rubyforge.org still down ? — "Thiago Jackiw" <tjackiw@...> 2006/10/11

On 10/11/06, Tom Copeland <tom@infoether.com> wrote:

[#219177] case ... when and arrays (or what was why_ showing us at railsconf europe) — "J2M" <james2mccarthy@...>

Hi,

9 messages 2006/10/11

[#219218] Counting Frequency of Values in an Array (And Sorting by Frequency?) — x1 <caldridge@...>

Is there no method for an array that will tell me the # of occurrences

10 messages 2006/10/12

[#219276] Debugging in the large, modern practice? — Hugh Sasse <hgs@...>

I think the following may be a badly formed question, but if you'd

19 messages 2006/10/12

[#219285] My .irbrc for console/irb — Dr Nic <drnicwilliams@...>

I recently discovered that I can create a .irbrc file to run setup for

15 messages 2006/10/12

[#219325] Isolating non-unique items in an array — Jason Burgett <jasbur@...>

I'm basically trying to the opposite of .uniq Let's say I have an array:

16 messages 2006/10/12

[#219330] IO.readint ? — "Rolando Abarca" <funkaster@...>

Hi all,

16 messages 2006/10/12

[#219429] Any way to get lists to throw exceptions on incorrect accesses? — Kenneth McDonald <kenneth.m.mcdonald@...>

I'm slowly doing more in Ruby (in addition to what I do in Python), as I

10 messages 2006/10/13

[#219502] A* (#98) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

26 messages 2006/10/13

[#219512] YART - Yet Another Ruby Tutorial!!! — Paul Barry <paul.barry@...>

12 messages 2006/10/13

[#219522] Why does 'chroot' interfere with 'system'? — "Sy Ali" <sy1234@...>

This always fails.

13 messages 2006/10/13

[#219649] Ruby Tutorial for beginners — "Dibya Prakash" <prakash.dibya@...>

Hi All,

15 messages 2006/10/14
[#219652] Re: [Adv] Ruby Tutorial for beginners — "Kevin Olemoh" <darkintent@...> 2006/10/14

Neat thanks for the heads up.

[#219653] Re: [Adv] Ruby Tutorial for beginners — "Kevin Olemoh" <darkintent@...> 2006/10/14

One quick question in one of his examples he states that using single

[#219719] What books to buy? — Kyrre Nyg蚌d <kyrreny@...>

26 messages 2006/10/14
[#219726] Re: What books to buy? — James Britt <james.britt@...> 2006/10/14

Kyrre Nyg蚌d wrote:

[#219797] Re: What books to buy? — Kyrre Nyg蚌d <kyrreny@...> 2006/10/15

At 23:09 14.10.2006, James Britt wrote:

[#219817] Re: What books to buy? — Hal Fulton <hal9000@...> 2006/10/15

Kyrre Nyg蚌d wrote:

[#220076] Re: "Good Ideas, Through the Looking Glass" — "Rick DeNatale" <rick.denatale@...>

On 10/16/06, Rich Morin <rdm@cfcl.com> wrote:

13 messages 2006/10/16

[#220210] Ruby Quiz - Degree of Difficulty — Mark Woodward <markonlinux@...>

Hi all,

19 messages 2006/10/17

[#220304] ruby way to say this? — matt@... (matt neuburg)

In Ruby, zero isn't false and there is no equivalent of the ?: operator

13 messages 2006/10/17

[#220355] Newbie: Ruby and Writing Variables In Strings — Lovell Mcilwain <lovell.mcilwain@...>

Hello all,

11 messages 2006/10/18

[#220424] Another topic for RubyConf — "M. Edward (Ed) Borasky" <znmeb@...>

As if the folks at RubyConf don't have enough to talk about already,

22 messages 2006/10/18

[#220435] My first feeling of Ruby — Florent Guiliani <fguiliani@...>

Hi all,

15 messages 2006/10/18

[#220531] whats this lambda code doing? — hemant <gethemant@...>

I came across following code in typo's application.rb and I can't

17 messages 2006/10/19

[#220536] Is anyone using Ruby for 24/7 financial applications? — "John Baylor" <john.baylor@...>

I know a lot of people are using ruby on rails for web apps, usually with

21 messages 2006/10/19

[#220574] RejectConf — Ryan Davis <ryand-ruby@...>

Jacob Harris and I came up with the idea of doing RejectConf. If you

24 messages 2006/10/19

[#220754] filling an array excepted first and last position... — Josselin <josselin@...>

ldom = 30 # variable (last day of a month...)

11 messages 2006/10/20

[#220769] — "gaurav bagga" <gaurav.v.bagga@...>

Hi All,

19 messages 2006/10/20
[#221041] Re: [OT:usage of uml] — "Chris Carter" <cdcarter@...> 2006/10/22

Hi,

[#220787] break from block — "Farrel Lifson" <farrel.lifson@...>

I've just run into the following problem. Doing this:

15 messages 2006/10/20

[#220964] A Comparison Of Dynamic and Static Languiges — atbusbook@...

I'm doing a report on the speed of develipment and executionin varius

30 messages 2006/10/21

[#220999] DRY fanatics? — "Giles Bowkett" <gilesb@...>

Anybody know a way to make this DRYer?

15 messages 2006/10/22

[#221025] downcase part of a string — "ilhamik" <ilhami.kilic@...>

hi,

39 messages 2006/10/22
[#221405] Re: downcase part of a string — "F. Senault" <fred@...> 2006/10/24

Le 23 octobre 2006 03:16, Wilson Bilkovich a 馗rit :

[#221520] Re: downcase part of a string — Hal Fulton <hal9000@...> 2006/10/24

F. Senault wrote:

[#221036] Recommendations for a Ruby Wiki, preferably with bidi support? — "Alder Green" <alder.green@...>

We are going to deploy a Wiki system for a medium load website. Any

24 messages 2006/10/22
[#221040] Re: Recommendations for a Ruby Wiki, preferably with bidi support? — James Britt <james.britt@...> 2006/10/22

Alder Green wrote:

[#221043] Re: Recommendations for a Ruby Wiki, preferably with bidi support? — "Alder Green" <alder.green@...> 2006/10/22

On 10/22/06, James Britt

[#221058] Re: Recommendations for a Ruby Wiki, preferably with bidi support? — James Britt <james.britt@...> 2006/10/22

Alder Green wrote:

[#221071] Re: Recommendations for a Ruby Wiki, preferably with bidi support? — "Bret Pettichord" <bpettichord@...> 2006/10/22

> http://en.wikipedia.org/wiki/Instiki

[#221078] Re: Recommendations for a Ruby Wiki, preferably with bidi support? — Joel VanderWerf <vjoel@...> 2006/10/22

Bret Pettichord wrote:

[#221108] Fast portable storage for queues — snacktime <snacktime@...>

I've tested out a couple of ways of storing a queue structure and

18 messages 2006/10/22
[#221133] Re: Fast portable storage for queues — "Francis Cianfrocca" <garbagecat10@...> 2006/10/23

On 10/22/06, snacktime <snacktime@gmail.com> wrote:

[#221151] Re: Fast portable storage for queues — khaines@... 2006/10/23

On Mon, 23 Oct 2006, Francis Cianfrocca wrote:

[#221212] How to remove empty element in an array — Li Chen <chen_li3@...>

Hi all,

13 messages 2006/10/23

[#221213] How to remove empty element in an array — Li Chen <chen_li3@...>

Hi all,

12 messages 2006/10/23

[#221249] What's the difference between send and instance_eval? — "michele" <michelemendel@...>

What's the difference between send and instance_eval (except the

11 messages 2006/10/23

[#221287] '**' as hash splat? — "Trans" <transfire@...>

We can:

16 messages 2006/10/24

[#221293] Ruby's garbage collector... — "Just Another Victim of the Ambient Morality" <ihatespam@...>

Is there a name for Ruby's garbage collecting strategy?

12 messages 2006/10/24

[#221311] Chunky Bacon — Joe Ruby MUDCRAP-CE <joeat303@...>

WTF, I ask. I know it's in why's Poignant guide, but...WTF?

26 messages 2006/10/24
[#221394] Re: Chunky Bacon — David Roberts <smartgpx@...> 2006/10/24

Joe Ruby MUDCRAP-CE wrote:

[#221325] Ruby in a Nutshell .. worth it? — EB <ebonakDUH_@...>

Hi,

18 messages 2006/10/24

[#221381] How can my boss take rails seriously with bugs like this? — Chris Richards <evilgeenius@...>

15 messages 2006/10/24

[#221404] How do I tell when I'm on Cygwin? — James Edward Gray II <james@...>

HighLine has some code like this:

72 messages 2006/10/24
[#221415] Re: How do I tell when I'm on Cygwin? — "Nick Sieger" <nicksieger@...> 2006/10/24

On 10/24/06, James Edward Gray II <james@grayproductions.net> wrote:

[#221432] Re: How do I tell when I'm on Cygwin? — "Gregory Brown" <gregory.t.brown@...> 2006/10/24

On 10/24/06, Nick Sieger <nicksieger@gmail.com> wrote:

[#221532] Re: How do I tell when I'm on Cygwin? — James Edward Gray II <james@...> 2006/10/25

On Oct 24, 2006, at 1:40 PM, Gregory Brown wrote:

[#221538] Re: How do I tell when I'm on Cygwin? — "Gregory Brown" <gregory.t.brown@...> 2006/10/25

On 10/24/06, James Edward Gray II <james@grayproductions.net> wrote:

[#221544] Re: How do I tell when I'm on Cygwin? — "M. Edward (Ed) Borasky" <znmeb@...> 2006/10/25

Gregory Brown wrote:

[#221560] Re: How do I tell when I'm on Cygwin? — ara.t.howard@... 2006/10/25

On Wed, 25 Oct 2006, M. Edward (Ed) Borasky wrote:

[#221565] Re: [OT] Re: How do I tell when I'm on Cygwin? — "M. Edward (Ed) Borasky" <znmeb@...> 2006/10/25

ara.t.howard@noaa.gov wrote:

[#221573] Re: [OT] Re: How do I tell when I'm on Cygwin? — "Wilson Bilkovich" <wilsonb@...> 2006/10/25

On 10/24/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:

[#221576] Re: [OT] Re: How do I tell when I'm on Cygwin? — "M. Edward (Ed) Borasky" <znmeb@...> 2006/10/25

Wilson Bilkovich wrote:

[#221578] Re: [OT] Re: How do I tell when I'm on Cygwin? — "Robert Oliver" <rob@...> 2006/10/25

On 10/24/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:

[#221600] Re: [OT] Re: How do I tell when I'm on Cygwin? — "Austin Ziegler" <halostatue@...> 2006/10/25

On 10/24/06, Robert Oliver <rob@ocstech.com> wrote:

[#221941] Re: How do I tell when I'm on Cygwin? — Chris Lowis <chris.lowis@...> 2006/10/26

Austin Ziegler wrote:

[#222115] Re: How do I tell when I'm on Cygwin? — "Austin Ziegler" <halostatue@...> 2006/10/26

On 10/26/06, Chris Lowis <chris.lowis@gmail.com> wrote:

[#221474] RubyConf2006 Retrospective — Bil Kleb <Bil.Kleb@...>

Hi,

36 messages 2006/10/24
[#221518] Re: RubyConf2006 Retrospective — James Britt <james.britt@...> 2006/10/24

M. Edward (Ed) Borasky wrote:

[#221534] Re: RubyConf2006 Retrospective — "M. Edward (Ed) Borasky" <znmeb@...> 2006/10/25

James Britt wrote:

[#221622] Re: RubyConf2006 Retrospective — "Austin Ziegler" <halostatue@...> 2006/10/25

On 10/24/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:

[#221483] Freeride, FXRuby, FXScintilla, etc. (Includes [Fwd: [fxscintilla-users] ANNOUNCE: FXScintilla 1.71 and stopping]) — "M. Edward (Ed) Borasky" <znmeb@...>

I just received this in my email. As most of you know by now, I run

8 messages 2006/10/24

[#221545] Best way to automate web browser tasks? — Hal Fulton <hal9000@...>

I know there's Watir or something... but I'm not using

14 messages 2006/10/25

[#221620] Is there really an impending Ruby fracture??? — "M. Edward (Ed) Borasky" <znmeb@...>

Well ... I've been home from RubyConf for a day now. I sort of expected

26 messages 2006/10/25

[#221635] Documentation formats (RDoc to PDF output?) — Alex Gutteridge <alexg@...>

Hi,

13 messages 2006/10/25

[#221651] Potential Brit ruby meeting formally Chunky Bacon — "Cameron, Gemma (UK)" <Gemma.Cameron@...>

11 messages 2006/10/25

[#221730] ruby mysql errors -where am I going wrong here? — Mer Gilmartin <merrua@...>

Here is my test code. I am wondering where I am going wrong.

13 messages 2006/10/25

[#221814] Re: Pass block instead of here document? — "Gavin Kistner" <gavin.kistner@...>

From: Morton Goldberg [mailto:m_goldberg@ameritech.net]

16 messages 2006/10/25

[#221866] simple math question — Brad Tilley <rtilley@...>

What's the quickest way to determine if an int is an even number

27 messages 2006/10/25

[#221938] Beginner would like help with oo-modelling — Pa Per <xxx@...>

I'm new to ruby and basically oop as well, but based on what I've seen

15 messages 2006/10/26

[#221985] Re: [ANN] Potential Brit ruby meeting formally Chunky Bacon — "Cameron, Gemma (UK)" <Gemma.Cameron@...>

18 messages 2006/10/26
[#222006] Re: [ANN] Potential Brit ruby meeting formally Chunky Bacon — "Tom Armitage" <tom.armitage@...> 2006/10/26

On 26/10/06, Cameron, Gemma (UK) <Gemma.Cameron@baesystems.com> wrote:

[#222029] Re: [ANN] Potential Brit ruby meeting formally Chunky Bacon — Paul Lynch <paul@...> 2006/10/26

On 26 Oct 2006, at 16:49, Tom Armitage wrote:

[#222030] Re: [ANN] Potential Brit ruby meeting formally Chunky Bacon — "Tom Armitage" <tom.armitage@...> 2006/10/26

On 26/10/06, Paul Lynch <paul@plsys.co.uk> wrote:

[#222186] why is my singleton method called before the class is initialize? — "bachase@..." <bachase@...>

Consider:

12 messages 2006/10/27

[#222253] Fuzzy Time (#99) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

27 messages 2006/10/27

[#222263] Ruby's book list is out of date... — "Jeremy McAnally" <jeremymcanally@...>

Hello all,

13 messages 2006/10/27

[#222270] a regex — "Alexandru Popescu" <the.mindstorm.mailinglist@...>

Hi!

18 messages 2006/10/27

[#222328] classless methods — Dave Rose <bitdoger2@...>

what class does a classless independent method belong too?

15 messages 2006/10/27

[#222362] can there be a "with" construction? — matt@... (matt neuburg)

Some languages have a "with" construction, where undefined methods are

17 messages 2006/10/27

[#222408] What are closures, continuations? — Joe Ruby MUDCRAP-CE <joeat303@...>

I've seen these mentioned in various places. From what I can tell:

18 messages 2006/10/27

[#222432] Another nail in CygWin's coffin (attached) — "M. Edward (Ed) Borasky" <znmeb@...>

Austin is basically right -- *nobody* should use CygWin as a Windows

14 messages 2006/10/27

[#222453] SouthWest RubyConf? — James Britt <james.britt@...>

Is anyone aware of, or interested in helping prepare, plans for a U.S.

16 messages 2006/10/28

[#222460] Efficient parsing of large Excel documents in Ruby — Wes Gamble <weyus@...>

All,

17 messages 2006/10/28

[#222535] symetrical encryption algo's ? — dc <lister@...>

Hi list.

18 messages 2006/10/28

[#222569] Define a hash using %q? — Joe Ruby MUDCRAP-CE <joeat303@...>

Is there a way for us lazy typists to define a hash using %q? I tried

16 messages 2006/10/29
[#222571] Re: Define a hash using %q? — Joel VanderWerf <vjoel@...> 2006/10/29

Joe Ruby MUDCRAP-CE wrote:

[#222580] Interesting trival example of why open classes are good? — "Peter Michaux" <petermichaux@...>

Hi,

15 messages 2006/10/29

[#222713] DNS library released — alexd@...

Hello -

17 messages 2006/10/30
[#222724] Re: [ANN] DNS library released — Daniel Berger <djberg96@...> 2006/10/30

alexd@nominet.org.uk wrote:

[#222744] Re: [ANN] DNS library released — James Edward Gray II <james@...> 2006/10/30

On Oct 30, 2006, at 6:44 AM, Daniel Berger wrote:

[#222765] Ruby performance on Windows XP — "Dark Ambient" <sambient@...>

While I am working in Rails, I'm noticing that Ruby many times completely

20 messages 2006/10/30

[#222804] QtRuby 1.4.7 — "richard.j.dale@..." <richard.j.dale@...>

URIS

15 messages 2006/10/30

[#222925] Ruby tools for managing static websites? — "Chris Pearl" <chrispearl@...>

Are there Ruby tools to help webmasters manage static websites?

22 messages 2006/10/31

[#222932] Re: [ANN] bfts 1.0.0 Released — "Jeff Dik" <s450r1@...>

This is excellent news!

15 messages 2006/10/31

[#223035] Nonblocking IO read — srobertjames@...

How can I perform a nonblocking IO read? That is, read whatever is

32 messages 2006/10/31
[#223038] Re: Nonblocking IO read — ara.t.howard@... 2006/10/31

On Wed, 1 Nov 2006 srobertjames@gmail.com wrote:

[#223039] still more relentless non-repetition — "Giles Bowkett" <gilesb@...>

ok, I have this Rails code which I want to make more Rubyish.

14 messages 2006/10/31

Re: NET::HTTP behind a firewall?

From: Joe Regular <kristapestry@...>
Date: 2006-10-03 22:41:06 UTC
List: ruby-talk #217919
Joe Regular wrote:
> Jeremy Tregunna wrote:
>>>> requests?
>>>
>> 
>> Outgoing connections are almost always made on high ports. It doesn't
>> matter what you're using to connect out, the fact that you're making
>> a client request to some remote server on some port, will cause your
>> client ip:port to be <ip you're going out over>:<some high port,
>> probably over 10000>.
>> 
>> So be sure you open up say 10000 - 65535 outgoing tcp
>> 
>> If this still doesn't work, there's probably some sort of transparent
>> firewall between your router and your destination blocking this.
> 
> 
> Jeremy, thanks for the help. I knew the outgoing connections were made 
> on higher ports but I was not sure which range of ports they would be 
> made on and I wanted to keep my config as tight as possible. I also 
> wanted to know if there was a way to allow a specific process (such as 
> the one running ruby) to access all outgoing ports.
> 
> Francis, thanks for your support.


Francis, I do not know much about iptables so I am using the KISS script 
to manage iptables. I am not that stupid and have obviously tried to 
open 80 and 443. I suppose I could read more about configuring iptables 
manually but KISS has worked fine for all the other applications I am 
running for a year and I would rather stick with it. If you don't mind, 
I would appreciate it if you could tell me if their is a problem with 
KISS config that is causing iptables to constrain outbound traffic based 
on the local port. Here is my kiss config...

#!/bin/bash
#
# http://www.geocities.com/steve93138/
#
#

##############################################################################
#
# Optional KISS Configurtion Variables:
#
BLOCK_LIST=""
TCP_IN="20 21 25 53 80 110 143 443 995 3306 8443 10000 19638"
TCP_OUT="21 22 25 37 43 53 80 443 55000"
UDP_IN="53"
UDP_OUT="53"
TCP_IN_TRUSTED="22"
TRUSTED_IPS="0.0.0.0/0"
SERVER_IPS="0.0.0.0/0"

##############################################################################
#
PUB_IFACE="eth1"
PRIV_IFACE="eth0"

#####
# Please note that only the PRIVATE_IP needs to be found as PUB_IFACE
# IP is detected in the MAIN_IP variable below.
#####
if [ ! "$PRIV_IFACE" == "" ]; then
	PRIVATE_IP=`ifconfig $PRIV_IFACE | grep "inet addr" | cut -d: -f2 | awk 
'{print $1}'`
fi


##############################################################################
#
# ALL DONE WITH CONFIGURATIONS!
#
# No real need to modify anything for the remainder of this file except 
to
# maybe remove the comments from certains lines at the end of this file.
#

# Some variables here. Modify if needed for your system.
IPTABLES="/sbin/iptables"
MODPROBE="/sbin/modprobe"
LOOPBACK="127.0.0.0/8"
CLASS_A="10.0.0.0/8"
CLASS_B="172.16.0.0/12"
CLASS_C="192.168.0.0/16"
CLASS_D_MULTICAST="224.0.0.0/4"
CLASS_E_RESERVED_NET="240.0.0.0/4"
BROADCAST_SRC="0.0.0.0"
BROADCAST_DEST="255.255.255.255"
PRIVPORTS="0:1023"
UNPRIVPORTS="1024:65535"


##############################################################################
# Determine if iptables and modprobe exist
#
if [ ! -e "$IPTABLES" ]; then
    echo "$IPTABLES does not exist. Firewall script aborted!"
    exit 1
fi
if [ ! -e "$MODPROBE" ]; then
    echo "$MODPROBE does not exist. Firewall script aborted!"
    exit 1
fi


##############################################################################
# Determine MAIN_IP & SERVER_IPS if needed
#
MAIN_IP=`ifconfig $PUB_IFACE | grep "inet addr" | cut -d: -f2 | awk 
'{print $1}'`
if [ "$MAIN_IP" == "" ]; then
    echo "Could not determine MAIN_IP. Firewall script aborted!"
    exit 1
fi
if [ "$SERVER_IPS" == "" ]; then
    SERVER_IPS=$MAIN_IP
fi
if [ "$SERVER_IPS" == "" ]; then
    echo "Could not determine SERVER_IPS. Firewall script aborted!"
    exit 1
fi


##############################################################################

# Arguments:
if [ "$1" == "stop" ] || [ "$1" == "-stop" ] || [ "$1" == "--stop" ]; 
then
    $IPTABLES -P INPUT ACCEPT
    $IPTABLES -P OUTPUT ACCEPT
    $IPTABLES -F
    $IPTABLES -L -n
    echo ""
    echo ""
    echo -e "\033[31mKISS My Firewall - Stopped!"
    echo -e -n "\033[0m "
    echo ""
    exit 0
fi
if [ "$1" == "status" ] || [ "$1" == "-status" ] || [ "$1" == "--status" 
]; then
    NUM_LINES=`$IPTABLES -L -n | wc -l | awk '{print $1}'`
    $IPTABLES -L -n
    echo ""
    echo ""
    if [ "$NUM_LINES" -le "15" ]; then
        echo -e "\033[31mKISS My Firewall - Stopped!"
    else
        echo -e "\033[32mKISS My Firewall - Running!"
    fi
    echo -e -n "\033[0m "
    echo ""
    exit 0
fi


##############################################################################

# We don't want ipchains loaded:
IPCHAINS=`/sbin/lsmod | grep ipchains`
if [ ! "$IPCHAINS" == "" ]; then
    /sbin/rmmod ipchains
fi



##############################################################################

# Note: KISS requires that ip_tables, ipt_state, and ipt_multiport 
exist:
if [ ! -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ip_tables.ko" ] || [ ! -e 
"/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_state.ko" ] || [ 
! -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ipt_multiport.ko" ]; then
    echo "Since the ip_tables, ipt_state, and/or ipt_multiport modules 
do not exist, KISS can not function. Firewall script aborted!"
    exit 1
fi

# All is well, load modules:
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ip_tables.ko" ]; then
    $MODPROBE ip_tables
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ipt_state.ko" ]; then
    $MODPROBE ipt_state
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ipt_multiport.ko" ]; then
    $MODPROBE ipt_multiport
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ip_tables.ko" ]; then
    $MODPROBE ip_tables
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ipt_state.ko" ]; then
    $MODPROBE ipt_state
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ipt_multiport.ko" ]; then
    $MODPROBE ipt_multiport
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/iptable_filter.ko" ]; then
    $MODPROBE iptable_filter
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ipt_unclean.ko" ]; then
    $MODPROBE ipt_unclean
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ipt_limit.ko" ]; then
    $MODPROBE ipt_limit
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_LOG.ko" 
]; then
    $MODPROBE ipt_LOG
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ipt_REJECT.ko" ]; then
    $MODPROBE ipt_REJECT
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ip_conntrack.ko" ]; then
    $MODPROBE ip_conntrack
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ip_conntrack_irc.ko" ]; then
    $MODPROBE ip_conntrack_irc
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/ip_conntrack_ftp.ko" ]; then
    $MODPROBE ip_conntrack_ftp
fi
if [ -e "/lib/modules/$(uname 
-r)/kernel/net/ipv4/netfilter/iptable_mangle.ko" ]; then
    $MODPROBE iptable_mangle
fi


##############################################################################

# Remove any existing rules from all chains
$IPTABLES --flush
$IPTABLES -t nat --flush
$IPTABLES -t mangle --flush

# Allow unlimited traffic on the loopback interface
$IPTABLES -A INPUT  -i lo -j ACCEPT
$IPTABLES -A OUTPUT -o lo -j ACCEPT

# Set the default policy to DROP
$IPTABLES --policy INPUT   DROP
$IPTABLES --policy OUTPUT  DROP
$IPTABLES --policy FORWARD DROP

# DO NOT MODIFY THESE!
#
# If you set these to DROP, you will be locked out of your server.
#
$IPTABLES -t nat --policy PREROUTING ACCEPT
$IPTABLES -t nat --policy OUTPUT ACCEPT
$IPTABLES -t nat --policy POSTROUTING ACCEPT
$IPTABLES -t mangle --policy PREROUTING ACCEPT
$IPTABLES -t mangle --policy OUTPUT ACCEPT

# Remove any pre-existing user-defined chains
$IPTABLES --delete-chain
$IPTABLES -t nat --delete-chain
$IPTABLES -t mangle --delete-chain


##############################################################################

# Enable broadcast echo Protection
if [ -e /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts ]; then
    echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
fi

# Disable Source Routed Packets
if [ -e /proc/sys/net/ipv4/conf/all/accept_source_route ]; then
    echo "0" > /proc/sys/net/ipv4/conf/all/accept_source_route
fi

# Enable TCP SYN Cookie Protection
if [ -e /proc/sys/net/ipv4/tcp_syncookies ]; then
    echo "1" > /proc/sys/net/ipv4/tcp_syncookies
fi

# Disable ICMP Redirect Acceptance
if [ -e /proc/sys/net/ipv4/conf/all/accept_redirects ]; then
    echo "0" > /proc/sys/net/ipv4/conf/all/accept_redirects
fi

# Don't send Redirect Messages
if [ -e /proc/sys/net/ipv4/conf/all/send_redirects ]; then
  echo "0" > /proc/sys/net/ipv4/conf/all/send_redirects
fi


# Drop Spoofed Packets coming in on an interface, which if replied to, 
would
# result in the reply going out a different interface.
if [ -e /proc/sys/net/ipv4/conf/all/rp_filter ]; then
    echo "1" > /proc/sys/net/ipv4/conf/all/rp_filter
fi

# Log packets with impossible addresses
if [ -e /proc/sys/net/ipv4/conf/all/log_martians ]; then
    echo "1" > /proc/sys/net/ipv4/conf/all/log_martians
fi


# Reduce DoS'ing ability by reducing timeouts
if [ -e /proc/sys/net/ipv4/tcp_fin_timeout ]; then
  echo "1800" > /proc/sys/net/ipv4/tcp_fin_timeout
fi
if [ -e /proc/sys/net/ipv4/tcp_keepalive_time ]; then
  echo "1800" > /proc/sys/net/ipv4/tcp_keepalive_time
fi
if [ -e /proc/sys/net/ipv4/tcp_window_scaling ]; then
  echo "0" > /proc/sys/net/ipv4/tcp_window_scaling
fi
if [ -e /proc/sys/net/ipv4/tcp_sack ]; then
  echo "0" > /proc/sys/net/ipv4/tcp_sack
fi


##############################################################################
# Silently Drop Stealth Scans

# All of the bits are cleared
$IPTABLES -A INPUT -p tcp --tcp-flags ALL NONE -j DROP

# SYN and FIN are both set
$IPTABLES -A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP

# SYN and RST are both set
$IPTABLES -A INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j DROP

# FIN and RST are both set
$IPTABLES -A INPUT -p tcp --tcp-flags FIN,RST FIN,RST -j DROP

# FIN is the only bit set, without the expected accompanying ACK
$IPTABLES -A INPUT -p tcp --tcp-flags ACK,FIN FIN -j DROP

# PSH is the only bit set, without the expected accompanying ACK
$IPTABLES -A INPUT -p tcp --tcp-flags ACK,PSH PSH -j DROP

# URG is the only bit set, without the expected accompanying ACK
$IPTABLES -A INPUT -p tcp --tcp-flags ACK,URG URG -j DROP


##############################################################################
# Provide some syn-flood protection
#
# THIS CODE SLOWS DOWN WEB PAGE LOADS DRAMATICALLY!!!
#
# Only enable this code if you find that you are the victim of a 
syn-flood
# attack!
#
#$IPTABLES -N syn-flood
#$IPTABLES -A INPUT -p tcp --syn -j syn-flood
#$IPTABLES -A syn-flood -m limit --limit 1/s --limit-burst 4 -j RETURN
#$IPTABLES -A syn-flood -j DROP
#


##############################################################################
# BLOCK_LIST
#
# To add someone to this block list, use the BLOCK_LIST configuration 
variable
# above.
#
# We block here, before our stateful packet inspection below, because if 
the
# offender is already logged in, he won't be kicked out. Note also that 
we
# include the offender's IP in the OUTPUT chain. This should help to 
reduce
# the threat a little bit more.
#
for blocked_ip in $BLOCK_LIST; do
    # Lock him out:
    $IPTABLES -A INPUT  -s $blocked_ip -j DROP
    # Make sure that he never hears from us again:
    $IPTABLES -A OUTPUT -d $blocked_ip -j DROP
done

##############################################################################
#
# To define your private network, use the PRIV_IFACE configuration
# variable above.
#
# We allow all traffic in and out of the private network
if [ ! "$PRIV_IFACE" == ""]; then
	$IPTABLES -A INPUT -s 0/0 -e $PRIV_IFACE -d $PRIVATE_IP -p ALL -j 
ACCEPT
fi

##############################################################################
# Use Connection State to Bypass Rule Checking
#
# By accepting established and related connections, we don't need to
# explicitly set various input and output rules. For example, by 
accepting an
# established and related output connection, we don't need to specify 
that
# the firewall needs to open a hole back out to client when the client
# requests SSH access.
#
$IPTABLES -A INPUT  -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

$IPTABLES -A INPUT  -m state --state INVALID -j DROP
$IPTABLES -A OUTPUT -m state --state INVALID -j DROP


##############################################################################
# Source Address Spoofing and Other Bad Addresses

# Refuse Spoofed packets pretending to be from the external interface's 
IP
#for server_ips in $SERVER_IPS; do
#    $IPTABLES -A INPUT -i $PUB_IFACE -s $server_ips -j DROP
#done
#for server_ips in $SERVER_IPS; do
#    for subnet_broadcast in $SUBNET_BROADCAST; do
#        $IPTABLES -A INPUT -i $PUB_IFACE -s $server_ips -d 
!$subnet_broadcast -j DROP
#    done
#done

# Refuse packets claiming to be from a Class A private network
$IPTABLES -A INPUT -i $PUB_IFACE -s $CLASS_A -j DROP

# Refuse packets claiming to be from a Class B private network
$IPTABLES -A INPUT -i $PUB_IFACE -s $CLASS_B -j DROP

# Refuse packets claiming to be from a Class C private network
#$IPTABLES -A INPUT -i $PUB_IFACE -s $CLASS_C -j DROP

# Refuse packets claiming to be from the loopback interface
$IPTABLES -A INPUT -i $PUB_IFACE -s $LOOPBACK -j DROP

# Refuse malformed broadcast packets
$IPTABLES -A INPUT -i $PUB_IFACE -s $BROADCAST_DEST -j DROP
$IPTABLES -A INPUT -i $PUB_IFACE -d $BROADCAST_SRC -j DROP

# Refuse directed broadcasts
# Used to map networks and in Denial of Service attacks
#for subnet_base in $SUBNET_BASE; do
#    $IPTABLES -A INPUT -i $PUB_IFACE -d $subnet_base -j DROP
#done
#for subnet_broadcast in $SUBNET_BROADCAST; do
#    $IPTABLES -A INPUT -i $PUB_IFACE -d $subnet_broadcast -j DROP
#done

# Refuse limited broadcasts
$IPTABLES -A INPUT -i $PUB_IFACE -d $BROADCAST_DEST -j DROP

# Refuse Class D multicast addresses - illegal as a source address
#$IPTABLES -A INPUT -i $PUB_IFACE -s $CLASS_D_MULTICAST -j DROP
#$IPTABLES -A INPUT -i $PUB_IFACE -p ! udp -d $CLASS_D_MULTICAST -j DROP
#$IPTABLES -A INPUT -i $PUB_IFACE -p udp -d $CLASS_D_MULTICAST -j ACCEPT
#
$IPTABLES -A INPUT -i $PUB_IFACE -s $CLASS_D_MULTICAST -j DROP
$IPTABLES -A INPUT -i $PUB_IFACE -p udp -d $CLASS_D_MULTICAST -j ACCEPT
$IPTABLES -A INPUT -i $PUB_IFACE -p 2 -d $CLASS_D_MULTICAST -j ACCEPT
$IPTABLES -A INPUT -i $PUB_IFACE -p all  -d $CLASS_D_MULTICAST -j DROP


# Refuse Class E reserved IP addresses
$IPTABLES -A INPUT -i $PUB_IFACE -s $CLASS_E_RESERVED_NET -j DROP

# Refuse addresses defined as reserved by the IANA
# 0.*.*.*         - Can't be blocked unilaterally with DHCP
# 169.254.0.0/16  - Link Local Networks
# 192.0.2.0/24    - TEST-NET
$IPTABLES -A INPUT -i $PUB_IFACE -s 0.0.0.0/8 -j DROP
$IPTABLES -A INPUT -i $PUB_IFACE -s 169.254.0.0/16 -j DROP
$IPTABLES -A INPUT -i $PUB_IFACE -s 192.0.2.0/24 -j DROP



##############################################################################
# Now we can open up some holes in our firewall...
#


##############################################################################
# If we are not accepting 113 (ident), then we explicitly reject it!
#
if [ "$(echo $IN_PORTS | tr ',' '\n' | grep -w 113)" == "" ]; then
    $IPTABLES -A INPUT -p tcp -s 0/0 -d 0/0 --dport 113 -j REJECT
    $IPTABLES -A INPUT -p udp -s 0/0 -d 0/0 --dport 113 -j REJECT
fi


##############################################################################
# TCP IN
#
for tcp_in in $TCP_IN; do
    for server_ips in $SERVER_IPS; do
        $IPTABLES -A INPUT -i $PUB_IFACE -s 0/0 -d $server_ips -p tcp -m 
state --state NEW --sport $UNPRIVPORTS --dport $tcp_in -j ACCEPT
    done
done

##############################################################################
# TCP OUT
#
for tcp_out in $TCP_OUT; do
    $IPTABLES -A OUTPUT -o $PUB_IFACE -p tcp -m state --state NEW 
--sport $UNPRIVPORTS --dport $tcp_out -j ACCEPT
done

##############################################################################
# UDP IN
#
for udp_in in $UDP_IN; do
    for server_ips in $SERVER_IPS; do
        $IPTABLES -A INPUT -i $PUB_IFACE -s 0/0 -d $server_ips -p udp -m 
state --state NEW --sport $UNPRIVPORTS --dport $udp_in -j ACCEPT
    done
done

##############################################################################
# UDP OUT
#
for udp_out in $UDP_OUT; do
    $IPTABLES -A OUTPUT -o $PUB_IFACE -p udp -m state --state NEW 
--sport $UNPRIVPORTS --dport $udp_out -j ACCEPT
done

##############################################################################
# TCP IN TRUSTED
#
#for tcp_in_trusted in $TCP_IN_TRUSTED; do
#    for server_ips in $SERVER_IPS; do
#        for trusted_ips in $TRUSTED_IPS; do
#            $IPTABLES -A INPUT -i $PUB_IFACE -s $trusted_ips -d 
$server_ips -p tcp -m state --state NEW --sport $UNPRIVPORTS --dport 
$tcp_in_trusted -j ACCEPT
#        done
#    done
#done
for tcp_in_trusted in $TCP_IN_TRUSTED; do
    for trusted_ips in $TRUSTED_IPS; do
        $IPTABLES -A INPUT -i $PUB_IFACE -s $trusted_ips -d $MAIN_IP -p 
tcp -m state --state NEW --sport $UNPRIVPORTS --dport $tcp_in_trusted -j 
ACCEPT
    done
done


##############################################################################
# Allow pinging of this server's MAIN_IP by trusted IPs only.
#
for trusted_ips in $TRUSTED_IPS; do
    $IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i $PUB_IFACE -m 
state --state NEW -p icmp --icmp-type ping -j ACCEPT
done


##############################################################################
# OUTPUT - PORT 113 - IDENTD
#
#for server_ips in $SERVER_IPS; do
#	$IPTABLES -A OUTPUT -o $PUB_IFACE -s $server_ips -p tcp --syn --sport 
$UNPRIVPORTS --dport 113 -m state --state NEW -j REJECT --reject-with 
tcp-reset
#done


##############################################################################
# Uncomment to allow DNS zone transfers
#
$IPTABLES -A INPUT -i $PUB_IFACE -p udp --sport 53 --dport 53 -m state 
--state NEW -j ACCEPT
$IPTABLES -A INPUT -i $PUB_IFACE -p tcp --sport 53 --dport 53 -m state 
--state NEW -j ACCEPT
$IPTABLES -A OUTPUT -o $PUB_IFACE -p udp --sport 53 --dport 53 -m state 
--state NEW -j ACCEPT
$IPTABLES -A OUTPUT -o $PUB_IFACE -p tcp --sport 53 --dport 53 -m state 
--state NEW -j ACCEPT


##############################################################################
# Uncomment to allow for outgoing ping
#
#$IPTABLES -A OUTPUT -o $PUB_IFACE -s $MAIN_IP -m state --state NEW -p 
icmp --icmp-type ping -j ACCEPT


##############################################################################
# Uncomment to allow outgoing traceroutes
#
#$IPTABLES -A OUTPUT -o $PUB_IFACE -p udp -s $MAIN_IP --sport 
32769:65535 --dport 33434:33523 -m state --state NEW -j ACCEPT

$IPTABLES -L -n
echo ""
echo ""
echo -e "\033[32mKISS My Firewall - Running!"
echo -e -n "\033[0m "
echo ""

exit 0



-- 
Posted via http://www.ruby-forum.com/.

In This Thread