2010年10月19日火曜日

てすとプリーズ

すみません、これは、アプレットのテストです。




え、何のテストかって? そりゃアプレットのテストなんですけどね、whois データベースで、ipアドレス引っ張ると、ネットーワークってこんな感じで表示されちゃうんですね(場所によりますけど)。

[Querying whois.ripe.net]
[whois.ripe.net]
% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf

% Note: This output has been filtered.
%       To receive output for a database update, use the "-B" flag.

% Information related to '212.154.153.80 - 212.154.153.95'

inetnum:        212.154.153.80 - 212.154.153.95
netname:        IP_One_Touch_Technologies
descr:          Erzhan Nurshanov
descr:          Co-location servers
descr:          Almaty
country:        KZ
admin-c:        EN1258-RIPE
tech-c:         EN1258-RIPE
status:         ASSIGNED PA
mnt-by:         KNIC-MNT
source:         RIPE # Filtered

person:         Erzhan Nurshanov
address:        LLC "One Touch Technologies"
address:        Almaty, 050043, microdistrict Orbita-3, 25, ap.8
address:        Kazakhstan
phone:          +7 727 3943755
e-mail:         info@ott.kz
nic-hdl:        EN1258-RIPE
source:         RIPE # Filtered

% Information related to '212.154.128.0/17AS9198'

route:        212.154.128.0/17
descr:        Kazakhtelecom Data Network Administration
origin:       AS9198
mnt-by:       KNIC-MNT
source:       RIPE # Filtered

% Information related to '212.154.128.0/19AS9198'

route:        212.154.128.0/19
descr:        Kazakhtelecom Data Network Administration
origin:       AS9198
mnt-by:       KNIC-MNT
source:       RIPE # Filtered

inetnum:        212.154.153.80 - 212.154.153.95

って書き方、iptables でパケット弾くにはすげー使いにくいわけです。「212.154.153.80/28」なんてCDIR形式で表示してほしいんですよね。でも、しょうがないので、「212.154.153.80 - 212.154.153.95」ってネットワークの表記から「212.154.153.80/28」というCDIR形式への変換を行う、アプレット作って使っているんですけど、それがここで動くかどうか。。。それのテストです。

ちなみに、一番上の欄に「212.154.153.80 - 212.154.153.95」って入れて、一番下のボタンをクリックすると、真ん中の欄にCDIR形式にしたネットワークの表記が出てきます(これを書いている時点では、「出てくるはず」ですね)。さぁ、保存して動くかどうかやってみよう。

あ、このアプレットに、バグはありますよー。1つのCDIRで表すことができない範囲を指定した場合、広く出ちゃいます

0 件のコメント:

コメントを投稿