JP5258676B2 - Rule information changing method, management apparatus and program in firewall - Google Patents
Rule information changing method, management apparatus and program in firewall Download PDFInfo
- Publication number
- JP5258676B2 JP5258676B2 JP2009141441A JP2009141441A JP5258676B2 JP 5258676 B2 JP5258676 B2 JP 5258676B2 JP 2009141441 A JP2009141441 A JP 2009141441A JP 2009141441 A JP2009141441 A JP 2009141441A JP 5258676 B2 JP5258676 B2 JP 5258676B2
- Authority
- JP
- Japan
- Prior art keywords
- rule
- query
- firewall
- information
- matching
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Description
本発明は、ファイアウォールにおけるルール情報変更方法、管理装置及びプログラムに関する。 The present invention relates to a rule information changing method, management apparatus, and program in a firewall.
ファイアウォール(Firewall)は、管理対象ネットワークと外部ネットワークとの接続点に設置されるルータの一種である。ファイアウォールは、管理対象ネットワークの安全性を高めるために、組織の方針(セキュリティ・ポリシ)に基づいて必要なパケットのみを通過させ、危険なパケットを阻止する。従って、ファイアウォール装置の構成情報、特にルール情報は、セキュリティ・ポリシに基づいて適切に設定される必要がある。尚、ファイアウォール装置は、管理対象ネットワーク内のセグメントネットワーク同士の間(例えば部署Aのイントラネットと部署Bのイントラネットとの間)に配置されるものであってもよい。 A firewall is a type of router installed at a connection point between a managed network and an external network. In order to increase the security of the managed network, the firewall allows only necessary packets to pass based on an organization policy (security policy) and blocks dangerous packets. Therefore, the configuration information of the firewall device, particularly the rule information, needs to be set appropriately based on the security policy. The firewall device may be disposed between the segment networks in the managed network (for example, between the intranet of department A and the intranet of department B).
ファイアウォール装置が保持するルール情報は、複数の「ルール要素」の順列によって構成される。ファイアウォール装置の管理者は、セキュリティ・ポリシを適切に実現するべく、ルール情報内のルール要素の内容及び順列を設定する。ファイアウォール装置は、外部ネットワーク(又は他のセグメントネットワーク)から受信したパケットが、いずれのルール要素に該当するか照合し、該当するルール要素に記述されるアクションに基づいて、そのパケットの転送可否を決定する。 The rule information held by the firewall device is composed of a permutation of a plurality of “rule elements”. The administrator of the firewall apparatus sets the content and permutation of the rule elements in the rule information in order to appropriately realize the security policy. The firewall device checks which rule element the packet received from the external network (or other segment network) corresponds to, and determines whether the packet can be forwarded based on the action described in the corresponding rule element To do.
ファイアウォール管理装置は、ファイアウォール装置におけるパケット転送性能を高めるために、以下の2つの方法でルール情報を制御することができる。 The firewall management apparatus can control the rule information by the following two methods in order to improve the packet transfer performance in the firewall apparatus.
第1に、ルール情報内のルール要素の数を少なくし、受信したパケットに対するルール要素の照合回数を全体的に少なくする。そのために、「アクセス・ログ」におけるルール要素毎のログ記録回数をカウントし、その記録回数0(又は0に近い)のルール要素を不要として削除する技術がある(例えば特許文献1参照)。 First, the number of rule elements in the rule information is reduced, and the number of times the rule elements are collated with respect to the received packet is reduced as a whole. For this purpose, there is a technique of counting the number of log recordings for each rule element in the “access log” and deleting the rule element having the recording count of 0 (or close to 0) as unnecessary (see, for example, Patent Document 1).
第2に、受信される複数のパケットについて、ルール情報の中で「適合」しやすいルール要素を上位に並べ、照合回数を全体的に少なくする。そのために、「アクセス・ログ」におけるルール要素毎のログ記録回数をカウントし、その記録回数が多いルール要素ほど、上位の順列に移動させる技術がある(例えば特許文献2参照)。 Secondly, for a plurality of received packets, rule elements that are likely to “fit” in the rule information are arranged at the top, and the number of matching times is reduced overall. For this purpose, there is a technique of counting the number of log recordings for each rule element in the “access log” and moving the rule element having the larger number of recordings to a higher permutation (see, for example, Patent Document 2).
ファイアウォール装置の管理者が、ルール情報を修正した場合、所望のセキュリティ・ポリシに適合しているか否かを確認する必要がある。ここで、「クエリ」を用いて、ルール情報を照合することができる。「クエリ」とは、ファイアウォールのルール情報(ルール要素群)が、所定のポリシを実現しているかを確認するリストである。クエリを、ルール情報と照合することによって、どのルール要素に該当し、転送許可(accept)若しくは転送禁止(deny)か、又は、どのルールにも適合しないか、を判定することができる。 When the administrator of the firewall apparatus corrects the rule information, it is necessary to check whether or not the firewall apparatus conforms to a desired security policy. Here, the rule information can be collated using a “query”. The “query” is a list for confirming whether the rule information (rule element group) of the firewall realizes a predetermined policy. By comparing the query with the rule information, it is possible to determine which rule element corresponds to whether transfer is permitted or prohibited (deny) or does not match any rule.
しかしながら、クエリQのクエリ要素Q(i)と、ファイアウォール装置j毎のルール情報RL(j)のルール要素RL(j,k)とを、逐一且つ順次に確認するために、著しく時間がかかる。また、ファイアウォール装置の数が多くなるほど、又は、ルール要素数及びクエリ要素数が多くなるほど、その確認に要する時間は著しく長くなる。 However, it takes much time to check the query element Q (i) of the query Q and the rule elements RL (j, k) of the rule information RL (j) for each firewall device j one by one. Further, as the number of firewall devices increases, or as the number of rule elements and the number of query elements increases, the time required for the confirmation becomes significantly longer.
そこで、本発明は、ファイアウォール装置のルール情報が、セキュリティ・ポリシに適合しているか否か判定する際に、クエリとルール情報との照合回数をできる限り少なくすることができるルール情報変更方法、管理装置及びプログラムを提供することを目的とする。 Therefore, the present invention provides a rule information changing method and management that can reduce the number of times of matching between a query and rule information as much as possible when determining whether or not the rule information of the firewall device conforms to the security policy. An object is to provide an apparatus and a program.
本発明によれば、クエリQに基づいて、ファイアウォール装置j毎に、蓄積されたルール情報RL(j)におけるルール要素RL(j,k)の照合順序を変更するファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法であって、
ルール情報RL(j)の中で、依存関係にあるルール要素RL(j,k)の対の組み合わせDRL(j)を検出する初期ステップを有し、
クエリQのクエリ要素Q(i)毎に、以下のステップを繰り返すものであり、
ルール情報RL(j)における最上位のルール要素RL(j,k)(k=1〜n)から順に、
クエリ要素Q(i)に適合する適合ルール要素MRを検出する第1のステップと、
ルール情報RL(j)の中で、適合ルール要素MRと依存関係にある1つ以上の依存ルール要素DRを検出する第2のステップと、
適合ルール要素MRと1つ以上の依存ルール要素DRとの相対順序を変更することなく、適合ルール要素MRを最上位へ移動させる第3のステップと
を繰り返すことを特徴とする。
According to the present invention, based on the query Q, for each firewall device j, the firewall apparatus in firewalls management apparatus for changing the collation rule elements RL (j, k) in the accumulated rule information RL (j) A rule information changing method,
In the rule information RL (j), it has an initial step of detecting a pair combination DRL (j) of rule elements RL (j, k) having a dependency relationship,
The following steps are repeated for each query element Q (i) of query Q,
In order from the highest rule element RL (j, k) (k = 1 to n) in the rule information RL (j),
A first step of detecting a matching rule element MR matching the query element Q (i);
A second step of detecting one or more dependent rule elements DR having a dependency relationship with the matching rule element MR in the rule information RL (j);
The third step of moving the matching rule element MR to the highest level is repeated without changing the relative order of the matching rule element MR and the one or more dependent rule elements DR.
本発明のファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法における他の実施形態によれば、
適合ルール要素MR毎に、適合カウンタMC(j,MR)を有し、
クエリQのクエリ要素Q(i)毎に、以下のステップを繰り返す際に、
第1のステップについて、クエリ要素Q(i)に適合する適合ルール要素MRの適合カウンタMC(j,MR)を1増分し、
第3のステップについて、複数の適合ルール要素MRが存在する場合、適合カウンタMC(j,MR)が大きい適合ルール要素MRほど上位へ移動させることも好ましい。
According to another embodiment of the rule information changing method of the firewall device in the firewall management device of the present invention,
Each conforming rule element MR has a conforming counter MC (j, MR)
When repeating the following steps for each query element Q (i) of query Q:
For the first step, the match counter MC (j, MR) of the match rule element MR that matches the query element Q (i) is incremented by 1,
As for the third step, when there are a plurality of matching rule elements MR, it is also preferable to move the matching rule element MR having a larger matching counter MC (j, MR) to the higher level.
本発明のファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法における他の実施形態によれば、
クエリ対象の想定パケットが通過すると想定される、複数のファイアウォール装置jと、それらの通過順番とを表す経路情報Rを有し、
経路情報に含まれる上流のファイアウォール装置jから順に、ルール要素の照合順序が変更されることも好ましい。
According to another embodiment of the rule information changing method of the firewall device in the firewall management device of the present invention,
It is assumed that the assumed packet to be queried passes, and has a plurality of firewall devices j and route information R indicating their passing order,
It is also preferable that the collation order of the rule elements is changed in order from the upstream firewall device j included in the route information.
本発明のファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法における他の実施形態によれば、
経路情報Rは、複数のファイアウォール装置jの構成情報から推定されることも好ましい。
According to another embodiment of the rule information changing method of the firewall device in the firewall management device of the present invention,
The route information R is also preferably estimated from configuration information of a plurality of firewall devices j.
本発明のファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法における他の実施形態によれば、
クエリQは、特定のパケットを想定した送信元アドレス、宛先アドレス、プロトコル、送信元ポート番号及び宛先ポート番号からなる複数のクエリ要素Q(i)から構成され、
ルール情報RL(j)は、送信元アドレス、宛先アドレス、プロトコル、送信元ポート番号、宛先ポート番号及びアクションからなる複数のルール要素RL(j,k)から構成されることも好ましい。
According to another embodiment of the rule information changing method of the firewall device in the firewall management device of the present invention,
Query Q is composed of a plurality of query elements Q (i) consisting of a source address, a destination address, a protocol, a source port number and a destination port number assuming a specific packet,
The rule information RL (j) is preferably composed of a plurality of rule elements RL (j, k) including a source address, a destination address, a protocol, a source port number, a destination port number, and an action.
本発明のファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法における他の実施形態によれば、
ファイアウォール装置は、アクセスコントロールリストに基づくパケット転送制御機能を有する汎用のルータであることも好ましい。
According to another embodiment of the rule information changing method of the firewall device in the firewall management device of the present invention,
The firewall device is also preferably a general-purpose router having a packet transfer control function based on an access control list.
本発明によれば、クエリQに基づいて、ファイアウォール装置j毎に、蓄積されたルール情報RL(j)におけるルール要素RL(j,k)の照合順序を変更するファイアウォール管理装置であって、
ルール情報RL(j)の中で、依存関係にあるルール要素RL(j,k)の対の組み合わせDRL(j)を検出する依存関係検出手段と、
クエリQのクエリ要素Q(i)に適合する適合ルール要素MRを検出する適合ルール要素検出手段と、
ルール情報RL(j)の中で、適合ルール要素MRと依存関係にある1つ以上の依存ルール要素DRを検出する依存ルール要素検出手段と、
適合ルール要素MRと1つ以上の依存ルール要素DRとの相対順序を変更することなく、適合ルール要素MRを最上位へ移動させるルール順序変更手段と、
適合ルール要素検出手段、依存ルール要素検出手段及びルール順序変更手段によって実行される処理を、ルール情報RL(j)における最上位のルール要素RL(j,k)(k=1〜n)から順に繰り返すルール要素回帰手段と、
ルール要素回帰手段によって実行される処理を、クエリQのクエリ要素Q(i)毎に繰り返すクエリ要素回帰手段と
を有することを特徴とする。
According to the present invention, based on the query Q, for each firewall device j, a firewall management apparatus for changing the collation accumulated rule information RL rule elements RL in (j) (j, k) ,
Dependency detection means for detecting a combination DRL (j) of rule element RL (j, k) pairs in the dependency relationship in the rule information RL (j),
A matching rule element detecting means for detecting a matching rule element MR that matches the query element Q (i) of the query Q;
Dependency rule element detecting means for detecting one or more dependency rule elements DR that are dependent on the matching rule element MR in the rule information RL (j);
A rule order changing means for moving the matching rule element MR to the highest level without changing the relative order of the matching rule element MR and one or more dependent rule elements DR;
The processing executed by the conforming rule element detecting means, the dependent rule element detecting means and the rule order changing means is performed in order from the highest rule element RL (j, k) (k = 1 to n) in the rule information RL (j). Rule element regression means to repeat,
And a query element regression unit that repeats the process executed by the rule element regression unit for each query element Q (i) of the query Q.
本発明のファイアウォール管理装置における他の実施形態によれば、
適合ルール要素MR毎に、適合カウンタMC(j,MR)を有し、
クエリ要素回帰手段によってクエリQのクエリ要素Q(i)が回帰される毎に、
適合ルール要素検出手段は、クエリ要素Q(i)に適合する適合ルール要素MRの適合カウンタMC(j,MR)を1増分し、
ルール順序変更手段は、複数の適合ルール要素MRが存在する場合、適合カウンタMC(j,MR)が大きい適合ルール要素MRほど上位へ移動させることも好ましい。
According to another embodiment of the firewall management device of the present invention,
Each conforming rule element MR has a conforming counter MC (j, MR)
Each time the query element Q (i) of the query Q is regressed by the query element regression means,
The matching rule element detection means increments the matching counter MC (j, MR) of the matching rule element MR that matches the query element Q (i) by one,
When there are a plurality of matching rule elements MR, the rule order changing means preferably moves the matching rule element MR having a larger matching counter MC (j, MR) to the higher order.
本発明のファイアウォール管理装置における他の実施形態によれば、
クエリ対象の想定パケットが通過すると想定される、複数のファイアウォール装置jと、それらの通過順番とを表す経路情報Rを有し、
適合ルール要素検出手段、依存ルール要素検出手段、ルール順序変更手段及びルール要素回帰手段によって実行される処理を、経路情報に含まれる上流のファイアウォール装置jから順に繰り返す経路情報回帰手段を更に有することも好ましい。
According to another embodiment of the firewall management device of the present invention,
It is assumed that the assumed packet to be queried passes, and has a plurality of firewall devices j and route information R indicating their passing order,
A route information regression unit that repeats the processing executed by the matching rule element detection unit, the dependency rule element detection unit, the rule order change unit, and the rule element regression unit in order from the upstream firewall device j included in the route information. preferable.
本発明のファイアウォール管理装置における他の実施形態によれば、
経路情報Rを、複数のファイアウォール装置jの構成情報から推定する経路情報推定手段を更に有することも好ましい。
According to another embodiment of the firewall management device of the present invention,
It is also preferable to further include route information estimation means for estimating the route information R from the configuration information of the plurality of firewall devices j.
本発明のファイアウォール管理装置における他の実施形態によれば、
クエリQは、特定のパケットを想定した送信元アドレス、宛先アドレス、プロトコル、送信元ポート番号及び宛先ポート番号からなる複数のクエリ要素Q(i)から構成され、
ルール情報RL(j)は、送信元アドレス、宛先アドレス、プロトコル、送信元ポート番号、宛先ポート番号及びアクションからなる複数のルール要素RL(j,k)から構成されることも好ましい。
According to another embodiment of the firewall management device of the present invention,
Query Q is composed of a plurality of query elements Q (i) consisting of a source address, a destination address, a protocol, a source port number and a destination port number assuming a specific packet,
The rule information RL (j) is preferably composed of a plurality of rule elements RL (j, k) including a source address, a destination address, a protocol, a source port number, a destination port number, and an action.
本発明のファイアウォール管理装置における他の実施形態によれば、
ファイアウォール装置は、アクセスコントロールリストに基づくパケット転送制御機能を有する汎用のルータであることも好ましい。
According to another embodiment of the firewall management device of the present invention,
The firewall device is also preferably a general-purpose router having a packet transfer control function based on an access control list.
本発明によれば、クエリQに基づいて、ファイアウォール装置j毎に蓄積されたルール情報RL(j)におけるルール要素RL(j,k)の照合順序を変更するファイアウォール管理装置に搭載されたコンピュータを機能させるプログラムであって、
ルール情報RL(j)の中で、依存関係にあるルール要素RL(j,k)の対の組み合わせDRL(j)を検出する依存関係検出手段と、
クエリQのクエリ要素Q(i)に適合する適合ルール要素MRを検出する適合ルール要素検出手段と、
ルール情報RL(j)の中で、適合ルール要素MRと依存関係にある1つ以上の依存ルール要素DRを検出する依存ルール要素検出手段と、
適合ルール要素MRと1つ以上の依存ルール要素DRとの相対順序を変更することなく、適合ルール要素MRを最上位へ移動させるルール順序変更手段と、
適合ルール要素検出手段、依存ルール要素検出手段及びルール順序変更手段によって実行される処理を、ルール情報RL(j)における最上位のルール要素RL(j,k)(k=1〜n)から順に繰り返すルール要素回帰手段と、
ルール要素回帰手段を、クエリQのクエリ要素Q(i)毎に繰り返すクエリ要素回帰手段と
してコンピュータを機能させることを特徴とする。
According to the present invention, based on the query Q, the computer installed in the firewall management device that changes the collation order of the rule elements RL (j, k) in the rule information RL (j) accumulated for each firewall device j A functioning program,
Dependency detection means for detecting a combination DRL (j) of rule element RL (j, k) pairs in the dependency relationship in the rule information RL (j),
A matching rule element detecting means for detecting a matching rule element MR that matches the query element Q (i) of the query Q;
Dependency rule element detecting means for detecting one or more dependency rule elements DR that are dependent on the matching rule element MR in the rule information RL (j);
A rule order changing means for moving the matching rule element MR to the highest level without changing the relative order of the matching rule element MR and one or more dependent rule elements DR;
The processing executed by the conforming rule element detecting means, the dependent rule element detecting means and the rule order changing means is performed in order from the highest rule element RL (j, k) (k = 1 to n) in the rule information RL (j). Rule element regression means to repeat,
The computer is caused to function as a query element regression unit that repeats the rule element regression unit for each query element Q (i) of the query Q.
本発明のルール情報変更方法、管理装置及びプログラムは、ファイアウォール装置のルール情報が、セキュリティ・ポリシに適合しているか否か判定する際に、クエリとルール情報との照合回数をできる限り少なくすることができる。 The rule information changing method, management device, and program of the present invention reduce the number of times that a query matches rule information as much as possible when determining whether the rule information of the firewall device conforms to the security policy. Can do.
以下、本発明の実施の形態について、図面を用いて詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は、本発明におけるシステム構成図である。 FIG. 1 is a system configuration diagram according to the present invention.
図1によれば、管理対象ネットワーク(イントラネット4)と、外部ネットワーク(インターネット5又は他企業のネットワーク6)との間に、ファイウォール装置2及びルータ3が接続されている。ファイアウォール装置2は、管理対象ネットワークに対するセキュリティ・ポリシに基づいたルール情報を保持する。尚、ファイアウォール装置2は、ファイアウォールとして独立した装置であってもよいし、アクセスコントロールリストに基づくパケット転送制御機能を有する汎用のルータであってもよい。
According to FIG. 1, a
図1のような大規模ネットワークの場合、多数のファイアウォール装置2が配置される。このような場合、その膨大なルール情報を一元管理するファイアウォール管理装置1を配置することが好ましい。ファイアウォール管理装置1は、各ファイアウォール装置2に保持されるルール情報を設定管理する。ファイアウォール装置1は、複数のイントラネット4を含む管理対象ネットワーク全体のセキュリティ・ポリシを維持するように、各ファイアウォール装置2に対してルール情報を設定する。
In the case of a large-scale network as shown in FIG. 1, a large number of
図2は、ファイアウォール管理装置がルール情報を生成するフローチャートである。 FIG. 2 is a flowchart in which the firewall management apparatus generates rule information.
(S21)ファイアウォール管理装置1は、ファイアウォール装置2及びルータ3から構成情報を収集する。
(S21) The
(S22)ファイアウォール管理装置1は、これら構成情報を自動的に解析し、ファイアウォール装置を含む経路情報を推定する。
(S22) The
(S23)次に、ファイアウォール装置j毎に、ルール情報RL(j)を生成する。図2によれば、ファイアウォール装置j(j=1)におけるルール情報RL(1)のルール要素RL(1,k)(k=1〜12)のリストが表されている。ファイアウォール装置j=1におけるルール情報RL(1)について、k番目のルール要素を、「RL(1,k)」と表記する。ルール情報RL(j)は、複数のルール要素RL(j,k)を照合順に並べたものである。 (S23) Next, rule information RL (j) is generated for each firewall device j. FIG. 2 shows a list of rule elements RL (1, k) (k = 1 to 12) of the rule information RL (1) in the firewall device j (j = 1). For the rule information RL (1) in the firewall device j = 1, the k-th rule element is expressed as “RL (1, k)”. The rule information RL (j) is a plurality of rule elements RL (j, k) arranged in the collation order.
ルール情報のルール要素RL(j,k)は、以下の2つのグループに対してアクションが定義される。
「ホスト・グループ」:
送信元アドレス(SrcIP)
宛先アドレス(DstIP)
(IPアドレスの範囲を表すものであってもよい。"0"は、任意"any"を表す。)
「サービス・グループ」:
プロトコル(Proto)
送信元ポート番号(SrcPort)
宛先ポート番号 (DstPort)
("0"は、任意"any"を表す。)
「アクション(Action)」:
転送許可(accept)又は転送禁止(deny)
In the rule element RL (j, k) of the rule information, actions are defined for the following two groups.
Host group:
Source address (SrcIP)
Destination address (DstIP)
(It may represent a range of IP addresses. “0” represents an arbitrary “any”.)
“Service Group”:
Protocol (Proto)
Source port number (SrcPort)
Destination port number (DstPort)
("0" represents any "any")
"Action":
Transfer permission (accept) or transfer prohibition (deny)
「ホスト・グループ」として、送信元アドレス(SrcIP)及び宛先アドレス(DstIP)は、特定のIPアドレスであってもよいし、一定のIPアドレス範囲であってもよい。例えば、ルール要素RL(1,1)の送信元アドレス(SrcIP)"140.192.36.20/32"は、特定のIPアドレス"140.192.36.20"を表す。また、ルール要素RL(1,2)の送信元アドレス(SrcIP)"140.192.36.0/8"は、ビット列のネットマスクが8ビットであり、IPアドレス範囲を意味する。 As the “host group”, the source address (SrcIP) and the destination address (DstIP) may be a specific IP address or a certain IP address range. For example, the source address (SrcIP) “140.192.36.20/32” of the rule element RL (1, 1) represents a specific IP address “140.192.36.20”. Further, the source address (SrcIP) “140.192.36.0/8” of the rule element RL (1,2) has a bit string netmask of 8 bits, which means an IP address range.
「サービス・グループ」として、プロトコル(Proto)は、例えばtcp(transport control protocol)又はudp(user datagram protocol)である。また、送信元ポート番号(SrcPort)及び宛先ポート番号(DstPort)は、特定のポート番号を表す。尚、ポート番号"0"は、任意"any"を表し、他のポート番号を包含する。 As the “service group”, the protocol (Proto) is, for example, tcp (transport control protocol) or udp (user datagram protocol). The transmission source port number (SrcPort) and the destination port number (DstPort) represent specific port numbers. The port number “0” represents an arbitrary “any” and includes other port numbers.
一般的なファイアウォール装置によれば、ルール情報は「オーダ・センシティブ」である。即ち、受信されたパケット毎に、ルール情報内に記述された先頭のルール要素から順次、末尾のルール要素へ、「適合」/「不適合」を照合していく。そして、最初に「適合」したルール要素のアクションが実行される。それ以降のルール要素については、照合されることなく(無視され)、処理を終了する。そのために、通常、ルール情報の末尾に記述されたルール要素には、あらゆるパケットに適合するべく、デフォルト・アクションが記述される。 According to a general firewall device, the rule information is “order sensitive”. That is, for each received packet, “conformity” / “nonconformity” is collated sequentially from the first rule element described in the rule information to the last rule element. Then, the action of the rule element that “matches” first is executed. Subsequent rule elements are not collated (ignored), and the process ends. Therefore, a default action is usually described in the rule element described at the end of the rule information so as to be suitable for every packet.
(S24)ファイアウォール管理装置1は、ルール情報RL(j)の中で、依存関係にあるルール要素RL(j,k)の対の組み合わせDRL(j)を検出する。
(S24) The
図2によれば、ルール要素間の依存関係を表すルール情報のリストが表されている。「依存関係(dependency)」とは、2つのルール要素におけるプロトコル、IPアドレス及びポート番号が、互いに共通部分を持つ、即ち互いに素(disjoint)でない関係をいう。具体的には、2つのルール要素が、以下の全ての条件を満たす関係にあることをいう。
・プロトコル(Proto)が、同一である。
・送信元アドレス(SrcIP)が、共通部分を持つ。
宛先アドレス(DstIP)が、共通部分を持つ。
・送信元ポート番号(SrcPort)が、共通部分を持つ。
・宛先ポート番号(DstPort)が、共通部分を持つ。
According to FIG. 2, a list of rule information representing the dependency relationship between rule elements is shown. “Dependency” refers to a relationship in which the protocol, IP address, and port number in the two rule elements have a common part to each other, that is, are not disjoint. Specifically, it means that two rule elements are in a relationship satisfying all the following conditions.
-The protocol (Proto) is the same.
-The source address (SrcIP) has a common part.
The destination address (DstIP) has a common part.
-The source port number (SrcPort) has a common part.
-The destination port number (DstPort) has a common part.
以下では、ルール要素RL(1,1)と依存関係のある全てのルール要素RL(1,k)(k=2〜n)を検出する場合について説明する。 Hereinafter, a case will be described in which all rule elements RL (1, k) (k = 2 to n) having a dependency relationship with the rule element RL (1, 1) are detected.
ルール要素RL(1,1)と以下の条件を全て満たすルール要素RL(1,k)が検出される。
RL(1,1):tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
・プロトコルは、tcpと同一。
・送信元アドレスは、140.192.36.20/32と共通部分を持つアドレス範囲。
即ち、140.192.36.20/32に等しいか、又は包含する。
・宛先アドレスは、0.0.0.0/0と共通部分を持つ。
即ち、0.0.0.0/0に等しいか又は包含される。
・送信元ポート番号は、"0"(any)と共通部分を持つ。
即ち、"0"(any)又は任意のポート番号である。
・宛先ポート番号は、80と共通部分を持つ。
即ち、80に等しいか又は包含するポート番号範囲。
(宛先ポート番号"80"は、宛先ポート番号"0"(any)に包含される)
Rule element RL (1,1) and rule element RL (1, k) satisfying all the following conditions are detected.
RL (1,1): tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
-The protocol is the same as tcp.
-The source address is an address range that has a common part with 140.192.36.20/32.
That is, equal to or includes 140.192.36.20/32.
-The destination address has a common part with 0.0.0.0/0.
That is, equal to or included in 0.0.0.0/0.
-The source port number has a common part with "0" (any).
That is, “0” (any) or an arbitrary port number.
-The destination port number has a common part with 80.
That is, a port number range equal to or including 80.
(Destination port number "80" is included in destination port number "0" (any))
(S241)最初に、プロトコル及びポート番号について、ルール要素RL(1,1)と依存関係にあるルール要素RL(1,k)のみを検出し、以下のようにリスト化する。
RL(1,1):tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
RL(1,2):tcp, 140.192.36.0/8, 0, 0.0.0.0/0, 80, accept
RL(1,3):tcp, 140.192.37.0/24, 0, 0.0.0.0/0, 80, deny
RL(1,9):tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80, accept
(S241) First, for the protocol and port number, only the rule element RL (1, k) having a dependency relation with the rule element RL (1,1) is detected and listed as follows.
RL (1,1): tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
RL (1,2): tcp, 140.192.36.0/8, 0, 0.0.0.0/0, 80, accept
RL (1,3): tcp, 140.192.37.0/24, 0, 0.0.0.0/0, 80, deny
RL (1,9): tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80, accept
(S242)次に、ルール要素RL(1,1)の送信元アドレス"140.192.36.20/32"と等しいか又は包含するアドレス範囲となる送信元アドレスであって、且つ、ルール要素RL(1,1)の宛先アドレス"0.0.0.0/0"と等しい宛先アドレスとなるルール要素RL(1,k)を検出する。ここで、ルール要素RL(1,2)の送信元アドレス"140.192.36.0/8"は、ルール要素RL(1,1)の"140.192.36.20/32"を包含する。また、ルール要素RL(1,2)の宛先アドレス"0.0.0.0/0"は、ルール要素RL(1,1)の宛先アドレス"0.0.0.0/0"と等しい。
RL(1,1):tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
RL(1,2):tcp, 140.192.36.0/8, 0, 0.0.0.0/0, 80, accept
(S242) Next, it is a source address that is equal to or includes the source address “140.192.36.20/32” of the rule element RL (1,1), and the rule element RL (1,1) A rule element RL (1, k) having a destination address equal to the destination address “0.0.0.0/0” in 1) is detected. Here, the source address “140.192.36.0/8” of the rule element RL (1,2) includes “140.192.36.20/32” of the rule element RL (1,1). In addition, the destination address “0.0.0.0/0” of the rule element RL (1,2) is equal to the destination address “0.0.0.0/0” of the rule element RL (1,1).
RL (1,1): tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
RL (1,2): tcp, 140.192.36.0/8, 0, 0.0.0.0/0, 80, accept
(S243)次に、ルール要素RL(1,3)の送信元アドレス"140.192.37.0/24"と等しいか又は包含するアドレス範囲となる送信元アドレスであって、且つ、ルール要素RL(1,3)の宛先アドレス"0.0.0.0/0"と等しい宛先アドレスとなるルール要素RL(1,k)を検出する。ここで、ルール要素RL(1,9)の送信元アドレス"0.0.0.0/0"は、ルール要素RL(1,3)の"140.192.37.0/24"を包含する。また、ルール要素RL(1,3)の宛先アドレス"0.0.0.0/0"は、ルール要素RL(1,9)の宛先アドレス"161.120.33.40/3"を包含する。
RL(1,3):tcp, 140.192.37.0/24, 0, 0.0.0.0/0, 80, deny
RL(1,9):tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80, accept
(S243) Next, it is a source address that is an address range equal to or including the source address “140.192.37.0/24” of the rule element RL (1,3), and the rule element RL (1,3) A rule element RL (1, k) having a destination address equal to the destination address “0.0.0.0/0” in 3) is detected. Here, the transmission source address “0.0.0.0/0” of the rule element RL (1,9) includes “140.192.37.0/24” of the rule element RL (1,3). In addition, the destination address “0.0.0.0/0” of the rule element RL (1,3) includes the destination address “161.120.33.40/3” of the rule element RL (1,9).
RL (1,3): tcp, 140.192.37.0/24, 0, 0.0.0.0/0, 80, deny
RL (1,9): tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80, accept
図2によれば、ルール要素RL(1,1)及びRL(1,2)は依存関係にあり、セキュリティ・ポリシを維持するためにも、RL(1,1)->RL(1,2)の順序を変更してはならない。同様に、ルール要素RL(1,3)及びRL(1,9)は依存関係にあり、RL(1,3)->RL(1,9)の順序を変更してはならない。 According to FIG. 2, rule elements RL (1,1) and RL (1,2) are in a dependency relationship, and in order to maintain the security policy, RL (1,1)-> RL (1,2 ) Do not change the order. Similarly, rule elements RL (1,3) and RL (1,9) are in a dependency relationship, and the order of RL (1,3)-> RL (1,9) should not be changed.
尚、図2のルール情報RL(j)には、ルール要素RL(j,k)毎に適合カウンタMC(j,RL(j,k))を有する。適合カウンタは、ルール要素RL(j,k)がクエリQ(i)と適合する毎に1増分されるカウンタである。適合カウンタの回数が多いルール要素RL(j,k)ほど、ルール情報RL(j)の上位に並べることによって、照合回数を少なくすることができる。適合カウンタの初期値は、0である。 Note that the rule information RL (j) in FIG. 2 includes a matching counter MC (j, RL (j, k)) for each rule element RL (j, k). The matching counter is a counter that is incremented by one every time the rule element RL (j, k) matches the query Q (i). By arranging rule elements RL (j, k) having a larger number of matching counters in higher order in the rule information RL (j), the number of collations can be reduced. The initial value of the adaptation counter is zero.
図3は、本発明におけるファイアウォール管理装置のフローチャートである。 FIG. 3 is a flowchart of the firewall management apparatus according to the present invention.
図3によれば、クエリのリストが表されている。「クエリ」とは、管理対象ネットワークに対するセキュリティ・ポリシに基づいて、ファイアウォール装置のルール情報(ルール要素群)を確認するためのリストである。クエリQは、複数のクエリ要素Q(i)を照合順に並べたものである。クエリ要素Q(i)は、ファイアウォール装置j毎のルール情報RL(j)におけるルール要素RL(j,k)と、逐一且つ順次、照合される。クエリ要素Q(i)が、どのルール要素R(j,k)に適合しaccept/denyされるか、又は、どのルール要素R(j,k)にも適合しないかを確認する。 According to FIG. 3, a list of queries is represented. The “query” is a list for confirming the rule information (rule element group) of the firewall device based on the security policy for the management target network. The query Q is a plurality of query elements Q (i) arranged in the collation order. The query element Q (i) is collated one by one with the rule element RL (j, k) in the rule information RL (j) for each firewall device j. It is confirmed whether the query element Q (i) matches any rule element R (j, k) and is accepted / deny, or does not match any rule element R (j, k).
(S301)セキュリティ・ポリシに基づいて、クエリQのクエリ要素Q(i)を展開する。クエリ要素Q(i)は、セキュリティ・ポリシに基づくパケットの送信元アドレス(SrcIP)、宛先アドレス(DstIP)及びサービスグループ(プロトコル(Proto)、送信元ポート番号(SrcPort)及び宛先ポート番号(DstPort))を有する。
(S302)クエリQのクエリ要素Q(i)毎に、S303〜S310のステップを繰り返す。
(S303)クエリ要素Q(i)の経路情報を特定する。その経路上にあるファイアウォール装置jが特定される。
(S304)特定された経路における上流のファイアウォール装置j(j=1〜n)から順に、S305〜S309のステップを繰り返す。
(S305)ルール情報RL(j)における先頭のルール要素RL(j,k)(k=1〜n)から順に、S306〜S308のステップを繰り返す。
(S306)クエリ要素Q(i)に適合する適合ルール要素MR(=RL(j,k))を検出する。このとき、クエリ要素Q(i)に適合する適合ルール要素MRの適合カウンタMC(j,MR)を1増分する。
(S307)ルール情報RL(j)の中で、適合ルール要素MRと依存関係にある1つ以上の依存ルール要素DRを検出する。
(S308)適合ルール要素MRと1つ以上の依存ルール要素DRとの相対順序を変更することなく、適合ルール要素MRを最上位へ移動させる。このとき、複数の適合ルール要素MRが存在する場合、適合カウンタMC(j,MR)が大きい適合ルール要素MRほど上位へ移動させる。
(S309)ルール情報RL(j)における最下位のルール要素RL(j,n)(k=n)まで、S305へ再帰する。
(S310)特定された経路における末端のファイアウォール装置j(j=n)まで、S304へ再帰する。
(S311)クエリQにおける最後のクエリ要素Q(i)(i=m)まで、S302へ再帰する。
(S301) The query element Q (i) of the query Q is expanded based on the security policy. The query element Q (i) includes the packet source address (SrcIP), destination address (DstIP) and service group (protocol (Proto), source port number (SrcPort) and destination port number (DstPort) based on the security policy. ).
(S302) Steps S303 to S310 are repeated for each query element Q (i) of query Q.
(S303) The route information of the query element Q (i) is specified. The firewall device j on the route is specified.
(S304) Steps S305 to S309 are repeated in order from the upstream firewall device j (j = 1 to n) in the identified route.
(S305) Steps S306 to S308 are repeated in order from the first rule element RL (j, k) (k = 1 to n) in the rule information RL (j).
(S306) A matching rule element MR (= RL (j, k)) that matches the query element Q (i) is detected. At this time, the matching counter MC (j, MR) of the matching rule element MR that matches the query element Q (i) is incremented by one.
(S307) In the rule information RL (j), one or more dependency rule elements DR having a dependency relationship with the matching rule element MR are detected.
(S308) The matching rule element MR is moved to the highest level without changing the relative order of the matching rule element MR and one or more dependent rule elements DR. At this time, when there are a plurality of matching rule elements MR, the matching rule element MR having a larger matching counter MC (j, MR) is moved higher.
(S309) The process returns to S305 up to the lowest rule element RL (j, n) (k = n) in the rule information RL (j).
(S310) The process returns to S304 up to the end firewall device j (j = n) in the specified route.
(S311) The process returns to S302 up to the last query element Q (i) (i = m) in the query Q.
図4は、本発明におけるクエリ情報及びルール情報の第1のリストである。 FIG. 4 is a first list of query information and rule information in the present invention.
図4におけるクエリ及びルール情報は、図2と全く同様である。従って、依存関係ルール要素の組み合わせDRL(1)={[RL(1,1),RL(1,2)], [RL(1,3),RL(1,9)]}であるとする。 The query and rule information in FIG. 4 is exactly the same as in FIG. Therefore, the dependency rule element combination DRL (1) = {[RL (1,1), RL (1,2)], [RL (1,3), RL (1,9)]} .
クエリ要素Q(1)に適合するルール要素RL(1,k)(k=1〜n)を検出する。最初に、クエリ要素Q(1)とルール要素RL(1,1)とが照合される。
Q(1) :tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80
RL(1,1):tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
このとき、ルール要素RL(1,1)は、クエリ要素Q(1)と適合し、適合ルール要素MRとなる(MR=RL(1,1))。また、適合カウンタMC(1,
RL(1,1))を1増分する。
A rule element RL (1, k) (k = 1 to n) that matches the query element Q (1) is detected. First, the query element Q (1) and the rule element RL (1,1) are collated.
Q (1): tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80
RL (1,1): tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
At this time, the rule element RL (1,1) matches the query element Q (1) and becomes a matching rule element MR (MR = RL (1,1)). Applicable counter MC (1,
RL (1,1)) is incremented by 1.
次に、ルール情報RL(1)の中で、適合ルール要素MR(=RL(1,1))と依存関係にある1つ以上の依存ルール要素DRを検出する。依存関係ルール要素DRL(1)によれば、適合ルール要素MR(=RL(1,1))と依存関係にある依存ルール要素DRは、RL(1,2)である。 Next, in the rule information RL (1), one or more dependent rule elements DR that are dependent on the matching rule element MR (= RL (1,1)) are detected. According to the dependency rule element DRL (1), the dependency rule element DR having a dependency relationship with the matching rule element MR (= RL (1,1)) is RL (1,2).
そして、適合ルール要素MRと依存ルール要素DRとの相対順序を変更することなく、適合ルール要素MRを最上位へ移動させる。このとき、ルール要素RL(1,1)は、ルール情報RL(1)の中で最上位であるため、移動(re-order)されない。 Then, the matching rule element MR is moved to the highest level without changing the relative order of the matching rule element MR and the dependent rule element DR. At this time, the rule element RL (1,1) is not re-ordered because it is the highest in the rule information RL (1).
図5は、本発明におけるクエリ情報及びルール情報の第2のリストである。 FIG. 5 is a second list of query information and rule information in the present invention.
次に、クエリ要素Q(2)に適合するルール要素RL(1,k)(k=1〜n)を検出する。最初に、クエリ要素Q(2)とルール要素RL(1,1)とが照合される。
Q(2) :tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80,
RL(1,1):tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
このとき、ルール要素RL(1,1)は、クエリ要素Q(1)と適合しない。
Next, a rule element RL (1, k) (k = 1 to n) that matches the query element Q (2) is detected. First, the query element Q (2) and the rule element RL (1,1) are collated.
Q (2): tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80,
RL (1,1): tcp, 140.192.36.20/32, 0, 0.0.0.0/0, 80, deny
At this time, the rule element RL (1,1) does not match the query element Q (1).
その後、ルール要素RL(1,2)〜RL(1,8)も、クエリ要素Q(2)と適合しない。 Thereafter, the rule elements RL (1,2) to RL (1,8) also do not match the query element Q (2).
そして、クエリ要素Q(2)とルール要素RL(1,9)とが照合される。
Q(2) :tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80,
RL(1,9):tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80, deny
このとき、ルール要素RL(1,9)は、クエリ要素Q(2)と適合し、適合ルール要素MRとなる(MR=RL(1,9))。また、適合カウンタMC(1, RL(1,9))を1増分する。
Then, the query element Q (2) and the rule element RL (1,9) are collated.
Q (2): tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80,
RL (1,9): tcp, 0.0.0.0/0, 0, 161.120.33.40/32, 80, deny
At this time, the rule element RL (1,9) matches the query element Q (2) and becomes a matching rule element MR (MR = RL (1,9)). In addition, the adaptation counter MC (1, RL (1,9)) is incremented by one.
次に、ルール情報RL(1)の中で、適合ルール要素MR(=RL(1,9))と依存関係にある1つ以上の依存ルール要素DRを検出する。依存関係ルール要素DRL(1)によれば、適合ルール要素MR(=RL(1,9))と依存関係にある依存ルール要素DRは、RL(1,3)である。 Next, in the rule information RL (1), one or more dependency rule elements DR having a dependency relationship with the matching rule element MR (= RL (1,9)) are detected. According to the dependency rule element DRL (1), the dependency rule element DR that is dependent on the matching rule element MR (= RL (1,9)) is RL (1,3).
そして、適合ルール要素MRと依存ルール要素DRとの相対順序を変更することなく、適合ルール要素MRを最上位へ移動させる。 Then, the matching rule element MR is moved to the highest level without changing the relative order of the matching rule element MR and the dependent rule element DR.
図6は、図5における適合ルール要素MR及び依存ルール要素DRの移動後のルール情報である。 FIG. 6 shows rule information after movement of the matching rule element MR and the dependency rule element DR in FIG.
図6によれば、適合ルール要素MR(=RL(1,9))が、依存ルール要素DR(=RL1,3))との相対順序を変更することなく、最上位へ移動される。この場合、適合ルール要素RL(1,9)を、RL(1,3)よりも下位(DR内の相対順序は変更されない)であって、かつ、第4行目(MRよりMCの高いルールの上位とならないような、最も上位)へ並び替えられる。 According to FIG. 6, the matching rule element MR (= RL (1,9)) is moved to the top without changing the relative order with the dependency rule element DR (= RL1,3)). In this case, the matching rule element RL (1,9) is lower than RL (1,3) (the relative order in the DR is not changed), and the fourth line (rule with higher MC than MR) It is rearranged to the highest)
尚、ルール要素RLのインデックス(RL(i,j)のjの値)及び適合カウンタMCは、順列の並べ替え後も維持される。 Note that the index of the rule element RL (the value of j of RL (i, j)) and the adaptation counter MC are maintained even after the permutation is rearranged.
図7は、本発明におけるファイアウォール管理装置の機能構成図である。 FIG. 7 is a functional configuration diagram of the firewall management apparatus according to the present invention.
図7によれば、ファイアウォール管理装置1は、クエリQに基づいて、ファイアウォール装置j毎に蓄積されたルール情報RL(j)におけるルール要素RL(j,k)の照合順序を変更する。ファイアウォール管理装置1は、ルール情報記憶部100と、依存関係検出部101と、適合ルール要素検出部102と、依存ルール要素検出部103と、ルール要素順序変更部104と、ルール要素回帰部105と、経路情報回帰部106と、クエリ要素回帰部107と、通信インタフェース部110とを有する。通信インタフェース部以外のこれら機能構成部は、ファイアウォール管理装置に搭載されたコンピュータを機能させるプログラムを実行することによって実現される。
According to FIG. 7, the
ルール情報記憶部100は、ファイアウォール装置j毎のルール情報RL(j)を記憶する。
The rule
依存関係検出部101は、ルール情報RL(j)の中で、依存関係にあるルール要素RL(j,k)の対の組み合わせDRL(j)を検出する。
The dependency
適合ルール要素検出部102は、クエリ要素Q(i)に適合する適合ルール要素MRを検出する。また、適合ルール要素検出部102は、クエリ要素Q(i)に適合する適合ルール要素MRの適合カウンタMC(j,MR)を1増分する。
The matching rule
依存ルール要素検出部103は、ルール情報RL(j)の中で、適合ルール要素MRと依存関係にある1つ以上の依存ルール要素DRを検出する。
The dependency rule
ルール要素順序変更部104は、適合ルール要素MRと1つ以上の依存ルール要素DRとの相対順序を変更することなく、適合ルール要素MRを最上位へ移動させる。このとき、ルール要素順序変更部104は、複数の適合ルール要素MRが存在する場合、適合カウンタMC(j,MR)が大きい適合ルール要素MRほど上位へ移動させる。
The rule element
ルール要素回帰部105は、適合ルール要素検出部102、依存ルール要素検出部103及びルール順序変更部104を、ルール情報RL(j)における最上位のルール要素RL(j,k)(k=1〜n)から順に繰り返す。
The rule
経路情報回帰部106は、適合ルール要素検出部102、依存ルール要素検出部103、ルール順序変更部104及びルール要素回帰部105を、経路情報に含まれる上流のファイアウォール装置jから順に繰り返す。経路情報は、クエリ対象の想定パケットが通過すると期待される、複数のファイアウォール装置jと、それらの通過順番とを表す。
The route
クエリ要素回帰部107は、ルール要素回帰部105を、クエリQのクエリ要素Q(i)毎に繰り返す。
Query
経路情報推定部108は、ファイアウォール装置及びルータから、構成情報を受信し、経路情報を推定する。経路情報を推定することによって、クエリQのクエリ要素Q(i)の想定パケットが通過しない経路について、そのファイアウォール装置に対するルール情報の照合を避けることができる。
The route
以上、詳細に説明したように、本発明のルール情報変更方法、管理装置及びプログラムは、ファイアウォール装置のルール情報が、セキュリティ・ポリシに適合しているか否か判定する際に、クエリとルール情報との照合回数をできる限り少なくすることができる。 As described above in detail, the rule information changing method, the management apparatus, and the program according to the present invention, when determining whether the rule information of the firewall apparatus conforms to the security policy, The number of collations can be reduced as much as possible.
クエリに基づいてルール情報を確認している処理の実行中であっても、ルール情報の照合順序を逐次変更することによって、その後のクエリの照合処理を高速化することができる。本発明によれば、ルール要素間の依存関係を維持したまま、その並びを変更するために、セキュリティ・ポリシの安全性も維持される。 Even during the execution of the process of checking the rule information based on the query, the subsequent matching process of the query can be speeded up by sequentially changing the matching order of the rule information. According to the present invention, the security policy safety is maintained because the arrangement is changed while maintaining the dependency relationship between the rule elements.
前述した本発明の種々の実施形態について、本発明の技術思想及び見地の範囲の種々の変更、修正及び省略は、当業者によれば容易に行うことができる。前述の説明はあくまで例であって、何ら制約しようとするものではない。本発明は、特許請求の範囲及びその均等物として限定するものにのみ制約される。 Various changes, modifications, and omissions of the above-described various embodiments of the present invention can be easily made by those skilled in the art. The above description is merely an example, and is not intended to be restrictive. The invention is limited only as defined in the following claims and the equivalents thereto.
1 ファイアウォール管理装置
100 ルール情報記憶部
101 依存関係検出部
102 適合ルール要素検出部
103 依存ルール要素検出部
104 ルール要素順序変更部
105 ルール要素回帰部
106 経路情報回帰部
107 クエリ要素回帰部
108 経路情報推定部
110 通信インタフェース部
2 ファイアウォール装置
DESCRIPTION OF
Claims (13)
前記ルール情報RL(j)の中で、依存関係にあるルール要素RL(j,k)の対の組み合わせDRL(j)を検出する初期ステップを有し、
前記クエリQのクエリ要素Q(i)毎に、以下のステップを繰り返すものであり、
前記ルール情報RL(j)における最上位のルール要素RL(j,k)(k=1〜n)から順に、
前記クエリ要素Q(i)に適合する適合ルール要素MRを検出する第1のステップと、
前記ルール情報RL(j)の中で、適合ルール要素MRと依存関係にある1つ以上の依存ルール要素DRを検出する第2のステップと、
前記適合ルール要素MRと1つ以上の前記依存ルール要素DRとの相対順序を変更することなく、前記適合ルール要素MRを最上位へ移動させる第3のステップと
を繰り返すことを特徴とするファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法。 Based on the query Q, for each firewall device j, there the rule information change method of the firewall apparatus in firewalls management device to change the collation of accumulated rule information RL rule elements RL in (j) (j, k) And
In the rule information RL (j), an initial step of detecting a pair combination DRL (j) of rule elements RL (j, k) having a dependency relationship is included.
The following steps are repeated for each query element Q (i) of the query Q,
In order from the highest rule element RL (j, k) (k = 1 to n) in the rule information RL (j),
A first step of detecting a matching rule element MR that matches the query element Q (i);
A second step of detecting, in the rule information RL (j), one or more dependent rule elements DR that are dependent on the matching rule element MR;
Firewall management characterized by repeating the third step of moving the matching rule element MR to the highest level without changing the relative order of the matching rule element MR and the one or more dependent rule elements DR. Method for changing rule information of firewall device in device .
前記クエリQのクエリ要素Q(i)毎に、以下のステップを繰り返す際に、
第1のステップについて、前記クエリ要素Q(i)に適合する前記適合ルール要素MRの適合カウンタMC(j,MR)を1増分し、
第3のステップについて、複数の前記適合ルール要素MRが存在する場合、前記適合カウンタMC(j,MR)が大きい前記適合ルール要素MRほど上位へ移動させる
ことを特徴とする請求項1に記載のファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法。 Each conforming rule element MR has a conforming counter MC (j, MR),
When repeating the following steps for each query element Q (i) of the query Q,
For the first step, the matching counter MC (j, MR) of the matching rule element MR that matches the query element Q (i) is incremented by 1,
3. The third step according to claim 1, wherein when there are a plurality of matching rule elements MR, the matching rule element MR having a larger matching counter MC (j, MR) is moved higher. A method for changing rule information of a firewall device in a firewall management device .
前記経路情報に含まれる上流のファイアウォール装置jから順に、ルール要素の照合順序が変更されることを特徴とする請求項1又は2に記載のファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法。 It is assumed that the assumed packet to be queried passes, and has a plurality of firewall devices j and route information R indicating their passing order,
3. The rule information changing method for a firewall device in the firewall management device according to claim 1, wherein the collating order of the rule elements is changed in order from the upstream firewall device j included in the route information.
前記ルール情報RL(j)は、送信元アドレス、宛先アドレス、プロトコル、送信元ポート番号、宛先ポート番号及びアクションからなる複数のルール要素RL(j,k)から構成される
ことを特徴とする請求項1から4のいずれか1項に記載のファイアウォール管理装置におけるファイアウォール装置のルール情報変更方法。 The query Q is composed of a plurality of query elements Q (i) consisting of a source address, a destination address, a protocol, a source port number and a destination port number assuming a specific packet,
The rule information RL (j) is composed of a plurality of rule elements RL (j, k) including a source address, a destination address, a protocol, a source port number, a destination port number, and an action. Item 5. A method for changing rule information of a firewall device in the firewall management device according to any one of Items 1 to 4.
前記ルール情報RL(j)の中で、依存関係にあるルール要素RL(j,k)の対の組み合わせDRL(j)を検出する依存関係検出手段と、
前記クエリQのクエリ要素Q(i)に適合する適合ルール要素MRを検出する適合ルール要素検出手段と、
前記ルール情報RL(j)の中で、適合ルール要素MRと依存関係にある1つ以上の依存ルール要素DRを検出する依存ルール要素検出手段と、
前記適合ルール要素MRと1つ以上の前記依存ルール要素DRとの相対順序を変更することなく、前記適合ルール要素MRを最上位へ移動させるルール順序変更手段と、
前記適合ルール要素検出手段、前記依存ルール要素検出手段及びルール順序変更手段によって実行される処理を、前記ルール情報RL(j)における最上位のルール要素RL(j,k)(k=1〜n)から順に繰り返すルール要素回帰手段と、
前記ルール要素回帰手段によって実行される処理を、前記クエリQのクエリ要素Q(i)毎に繰り返すクエリ要素回帰手段と
を有することを特徴とするファイアウォール管理装置。 Based on the query Q, for each firewall device j, a firewall management apparatus for changing the collation accumulated rule information RL rule elements RL in (j) (j, k) ,
In the rule information RL (j), dependency detection means for detecting a combination DRL (j) of a pair of rule elements RL (j, k) having a dependency relationship;
A matching rule element detection means for detecting a matching rule element MR that matches the query element Q (i) of the query Q;
Dependency rule element detecting means for detecting one or more dependency rule elements DR having a dependency relationship with the matching rule element MR in the rule information RL (j);
Rule order changing means for moving the matching rule element MR to the highest level without changing the relative order of the matching rule element MR and the one or more dependent rule elements DR;
The processing executed by the conforming rule element detecting means, the dependent rule element detecting means, and the rule order changing means is the highest rule element RL (j, k) (k = 1 to n in the rule information RL (j)). Rule element regression means that repeats in order from
Pre Symbol The processing executed by the rule element return means, the firewall management apparatus characterized by having a query element return means for repeating for each of the query Q in the query element Q (i).
前記クエリ要素回帰手段によって前記クエリQのクエリ要素Q(i)が回帰される毎に、
前記適合ルール要素検出手段は、前記クエリ要素Q(i)に適合する前記適合ルール要素MRの適合カウンタMC(j,MR)を1増分し、
前記ルール順序変更手段は、複数の前記適合ルール要素MRが存在する場合、前記適合カウンタMC(j,MR)が大きい前記適合ルール要素MRほど上位へ移動させる
ことを特徴とする請求項7に記載のファイアウォール管理装置。 Each conforming rule element MR has a conforming counter MC (j, MR),
Each time the query element Q (i) of the query Q is regressed by the query element regression means,
The matching rule element detection means increments a matching counter MC (j, MR) of the matching rule element MR that matches the query element Q (i) by one,
8. The rule order changing means, when there are a plurality of matching rule elements MR, moves the matching rule element MR having a larger matching counter MC (j, MR) to a higher position. Firewall management device.
前記適合ルール要素検出手段、前記依存ルール要素検出手段、前記ルール順序変更手段及びルール要素回帰手段によって実行される処理を、前記経路情報に含まれる上流のファイアウォール装置jから順に繰り返す経路情報回帰手段を更に有することを特徴とする請求項7又は8に記載のファイアウォール管理装置。 It is assumed that the assumed packet to be queried passes, and has a plurality of firewall devices j and route information R indicating their passing order,
Route information regression means for repeating the processing executed by the matching rule element detection means, the dependency rule element detection means, the rule order change means, and the rule element regression means in order from the upstream firewall device j included in the route information. The firewall management apparatus according to claim 7 or 8, further comprising:
前記ルール情報RL(j)は、送信元アドレス、宛先アドレス、プロトコル、送信元ポート番号、宛先ポート番号及びアクションからなる複数のルール要素RL(j,k)から構成される
ことを特徴とする請求項7から10のいずれか1項に記載のファイアウォール管理装置。 The query Q is composed of a plurality of query elements Q (i) consisting of a source address, a destination address, a protocol, a source port number and a destination port number assuming a specific packet,
The rule information RL (j) is composed of a plurality of rule elements RL (j, k) including a source address, a destination address, a protocol, a source port number, a destination port number, and an action. Item 11. The firewall management device according to any one of Items 7 to 10.
前記ルール情報RL(j)の中で、依存関係にあるルール要素RL(j,k)の対の組み合わせDRL(j)を検出する依存関係検出手段と、
前記クエリQのクエリ要素Q(i)に適合する適合ルール要素MRを検出する適合ルール要素検出手段と、
前記ルール情報RL(j)の中で、適合ルール要素MRと依存関係にある1つ以上の依存ルール要素DRを検出する依存ルール要素検出手段と、
前記適合ルール要素MRと1つ以上の前記依存ルール要素DRとの相対順序を変更することなく、前記適合ルール要素MRを最上位へ移動させるルール順序変更手段と、
前記適合ルール要素検出手段、前記依存ルール要素検出手段及びルール順序変更手段によって実行される処理を、前記ルール情報RL(j)における最上位のルール要素RL(j,k)(k=1〜n)から順に繰り返すルール要素回帰手段と、
前記ルール要素回帰手段を、前記クエリQのクエリ要素Q(i)毎に繰り返すクエリ要素回帰手段と
してコンピュータを機能させることを特徴とするファイアウォール管理装置用のプログラム。 A program that causes a computer installed in a firewall management device to change the collation order of the rule elements RL (j, k) in the rule information RL (j) accumulated for each firewall device j based on the query Q. ,
In the rule information RL (j), dependency detection means for detecting a combination DRL (j) of a pair of rule elements RL (j, k) having a dependency relationship;
A matching rule element detection means for detecting a matching rule element MR that matches the query element Q (i) of the query Q;
Dependency rule element detecting means for detecting one or more dependency rule elements DR having a dependency relationship with the matching rule element MR in the rule information RL (j);
Rule order changing means for moving the matching rule element MR to the highest level without changing the relative order of the matching rule element MR and the one or more dependent rule elements DR;
The processing executed by the conforming rule element detecting means, the dependent rule element detecting means, and the rule order changing means is the highest rule element RL (j, k) (k = 1 to n in the rule information RL (j)). Rule element regression means that repeats in order from
The pre-Symbol rule elements return means, the query Q in the query element Q (i) a program for the firewall management device for causing a computer to function as a query element return means for repeating for each.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009141441A JP5258676B2 (en) | 2009-06-12 | 2009-06-12 | Rule information changing method, management apparatus and program in firewall |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009141441A JP5258676B2 (en) | 2009-06-12 | 2009-06-12 | Rule information changing method, management apparatus and program in firewall |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010287116A JP2010287116A (en) | 2010-12-24 |
| JP5258676B2 true JP5258676B2 (en) | 2013-08-07 |
Family
ID=43542757
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009141441A Expired - Fee Related JP5258676B2 (en) | 2009-06-12 | 2009-06-12 | Rule information changing method, management apparatus and program in firewall |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5258676B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5655185B2 (en) * | 2011-06-28 | 2015-01-21 | 日本電信電話株式会社 | Malware-infected terminal detection device, malware-infected terminal detection method, and malware-infected terminal detection program |
| JP5307264B2 (en) * | 2012-03-22 | 2013-10-02 | 三菱電機インフォメーションシステムズ株式会社 | Communications system |
| JP2017010414A (en) * | 2015-06-25 | 2017-01-12 | 株式会社日立情報通信エンジニアリング | Communication control contents management system in firewall |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2287689C (en) * | 1998-12-03 | 2003-09-30 | P. Krishnan | Adaptive re-ordering of data packet filter rules |
| US7016980B1 (en) * | 2000-01-18 | 2006-03-21 | Lucent Technologies Inc. | Method and apparatus for analyzing one or more firewalls |
| JP4464655B2 (en) * | 2003-11-06 | 2010-05-19 | 株式会社野村総合研究所 | Computer monitoring apparatus and message processing method related to monitored computer |
-
2009
- 2009-06-12 JP JP2009141441A patent/JP5258676B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2010287116A (en) | 2010-12-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9031959B2 (en) | Method and apparatus for identifying application protocol | |
| US8027330B2 (en) | Efficient classification of network packets | |
| US7555774B2 (en) | Inline intrusion detection using a single physical port | |
| US10708272B1 (en) | Optimized hash-based ACL lookup offload | |
| US9246930B2 (en) | System and method for pattern matching in a network security device | |
| CN102577275A (en) | Relay control device, relay control system, relay control method, and relay control program | |
| US9049200B2 (en) | System and method for improving hardware utilization for a bidirectional access controls list in a low latency high-throughput network | |
| US20160234234A1 (en) | Orchestrating the Use of Network Resources in Software Defined Networking Applications | |
| TW202019127A (en) | Abnormal flow detection device and abnormal flow detection method thereof | |
| WO2008095010A1 (en) | Secure network switching infrastructure | |
| US20220191175A1 (en) | Dynamic filter generation and distribution within computer networks | |
| US8028160B1 (en) | Data link layer switch with protection against internet protocol spoofing attacks | |
| US9590905B2 (en) | Control apparatus and a communication method, apparatus, and system to perform path control of a network | |
| Rab et al. | A formal model for network-wide security analysis | |
| JPWO2013039083A1 (en) | COMMUNICATION SYSTEM, CONTROL DEVICE, AND COMMUNICATION METHOD | |
| CN101917341A (en) | Method and device for selecting packet marking probability for inter-domain traceability | |
| JP2010287116A (en) | Rule information changing method, management apparatus and program in firewall | |
| Ahsan et al. | Detecting smart home device activities using packet-level signatures from encrypted traffic | |
| JP2013070325A (en) | Communication system, communication apparatus, server, and communication method | |
| Nakahara et al. | Malware Detection for IoT Devices using Automatically Generated White List and Isolation Forest. | |
| Lin et al. | Collaborative distributed intrusion detection system | |
| JP5441250B2 (en) | Policy information display method, management apparatus and program for firewall | |
| Han et al. | An efficient flow rule conflict comprehensive detection scheme for SDN networks | |
| Fu et al. | Network storage covert channel detection based on data joint analysis | |
| Chen et al. | Lrvp: Lightweight real-time verification of intradomain forwarding paths |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120220 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130306 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130405 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130408 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130423 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130423 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160502 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |