Re: All China, All The Time Jan 20 2010 04:29PM
Lawrence Pingree (ntpeck yahoo com) (1 replies)
RE: All China, All The Time Jan 20 2010 04:44PM
Tim Mullen (Thor hammerofgod com)
If you can parse out XML, I'm sure you can script up something to "build" sets for IPTables. However, I don't know that IPTables has the ability to "group" the individual IP ranges into "sets" as opposed to simply putting them in as line-by-line rules.

That's the beauty of ISA/TMG/UAG - the xml files build individual sets comprised of IP ranges which you can apply by themselves to whatever protocols you wants to/from whatever network sources you want. But, regardless of the chosen platform, at least you can parse out the XML to get what you want.

The important fields are:

<fpc4:IPFrom dt:dt="string"></fpc4:IPFrom>

<fpc4:IPTo dt:dt="string"></fpc4:IPTo>

<fpc4:Name dt:dt="string">AL1122173577-1122173584</fpc4:Name>

Where IPFrom is the beginning IP of the range, IPTo is the ending IP of the range, and "Name" is a unique name for the range itself. I chose to have the same simply be the country code followed by the range so it could be immediately identified even if used outside of a set.

Hope that has some use for you.


-----Original Message-----

From: Lawrence Pingree [mailto:ntpeck (at) yahoo (dot) com [email concealed]]

Sent: Wednesday, January 20, 2010 8:29 AM

To: Tim Mullen

Cc: bugtraq (at) securityfocus (dot) com [email concealed]

Subject: Re: All China, All The Time

Hey thor,

I would love if you had something for IPtables to do this.

Best Regards,

Lawrence Pingree

On Jan 13, 2010, at 12:28 PM, "Thor (Hammer of God)" <thor (at) hammerofgod (dot) com [email concealed]> wrote:

With all the hubbub around China yet again, I would like to remind you of the utilities available at Hammer of God that allow one to completely block any or all traffic to or from China or any other country in the world via ISA/TMG.

As many of you know, Iâ??ve been totally blocking China for years, mostly because Iâ??m a Porcelain kind of guy. Oh, and the fact that the entire countryâ??s network is a festering cesspool of scum and villainy.

Hereâ??s an article I wrote about a 1.5 years ago on the subject if it has any relevance to you.


å¦?æ??æ?¨å¯ä»¥ç??å?°è¿?ä¸?ç?¹ï¼?不å??ç­? - æ??不ä¼?å¾?å?°å®?ã??



Timothy (Thor) Mullen

thor (at) hammerofgod (dot) com [email concealed]


[ reply ]


Privacy Statement
Copyright 2010, SecurityFocus