This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
レスポンダーのアクションとポリシーの例
レスポンダーのアクションとポリシーは強力で複雑ですが、比較的単純なアプリケーションを使い始めることができます。
例:指定された IP からのアクセスのブロック
次の手順では、CIDR 222.222.0.0/16 からのクライアントによる保護された Web サイトへのアクセスをブロックします。レスポンダは、クライアントが要求された URL にアクセスする権限がないことを示すエラーメッセージを送信します。
Citrix ADCコマンドラインを使用してアクセスをブロックするには:
コマンドプロンプトで次のコマンドを入力して、アクセスをブロックします。
- add responder action act_unauthorized respond with “HTTP/1.1 403 Forbidden\r\n\r\n” + “Client: “ + CLIENT.IP.SRC + “ is not authorized to access URL:” + “HTTP.REQ.URL.HTTP_URL_SAFE”’
- add responder policy pol_un “CLIENT.IP.SRC.IN_SUBNET (222.222.0.0/16)” act_unauthorized
- bind responder global pol_un 10
GUIを使用してアクセスをブロックするには、次の手順を実行します。
- ナビゲーションウィンドウで、[レスポンダー] を展開し、[アクション] をクリックします。
- 詳細ペインで、[追加]をクリックします。
-
[レスポンダーアクションの作成] ダイアログボックスで、次の操作を行います。
- 「 名前」 テキストボックスに「act_unauthorized」と入力します。
- [タイプ] で、[応答] を選択します。
- [ターゲットテキスト] 領域で、次の文字列を入力します。”HTTP/1.1 200 OK\r\n\r\n” + “Client: “ + CLIENT.IP.SRC + “ is not authorized to access URL:” + HTTP.REQ.URL.HTTP_URL_SAFE
- [作成]をクリックし、[閉じる]をクリックします。 設定した act_unauthorized という名前のレスポンダーアクションが [レスポンダーアクション] ページに表示されます。
- ナビゲーションペインで、[Policies] をクリックします。
- 詳細ペインで、[追加]をクリックします。
-
[レスポンダーポリシーの作成] ダイアログボックスで、次の操作を行います。
- 「名前」テキストボックスに「pol_unauthorized」と入力します。
- [アクション] で、[act_unauthorized] を選択します。
- [式] ウィンドウで、次のルールを入力します。CLIENT.IP.SRC.IN_SUBNET (222.0.0/16)
- [作成] をクリックし、[閉じる] をクリックします。 構成した pol_unauthorized という名前のレスポンダーポリシーが [レスポンダーポリシー] ページに表示されます。
- レスポンダーポリシーのバインドの説明に従って、新しいポリシー pol_unauthorized をグローバルにバインドします。
例:クライアントを新しい URL にリダイレクトする
次の手順では、CIDR 222.222.0.0/16 内から保護された Web サイトにアクセスするクライアントを指定された URL にリダイレクトします。
Citrix ADCコマンドラインを使用してクライアントをリダイレクトするには:
コマンド・プロンプトで次のコマンドを入力して、クライアントをリダイレクトし、構成を確認します。
- add responder action act_redirect redirect
"<http://www.example.com/404.html>"
- show responder action act_redirect
- add responder policy pol_redirect “CLIENT.IP.SRC.IN_SUBNET(222.222.0.0/16)” act_redirect
- show responder policy pol_redirect
- bind responder global pol_redirect 10
例:
> add responder action act_redirect redirect `" http ://www.example.com/404.html "`
Done
> add responder policy pol_redirect "CLIENT.IP.SRC.IN_SUBNET(222.222.0.0/16)" act_redirect
Done
GUIを使用してクライアントをリダイレクトするには、次の手順を実行します。
- AppExpert > Responder > Actionsに移動します。
- 詳細ペインで、[追加]をクリックします。
-
[レスポンダーアクションの作成] ダイアログボックスで、次の操作を行います。
- 「 名前」 テキストボックスに「act_redirect」と入力します。
- [タイプ] で、[リダイレクト] を選択します。
-
[ターゲットテキスト] 領域で、次の文字列を入力します。
"<http://www.example.com/404.html>"
- [作成] をクリックし、[閉じる] をクリックします。 設定した act_redirect という名前のレスポンダーアクションが [レスポンダーアクション] ページに表示されます。
- ナビゲーションペインで、[Policies] をクリックします。
- 詳細ペインで、[追加]をクリックします。
-
[レスポンダーポリシーの作成] ダイアログボックスで、次の操作を行います。
- 「 名前」 テキストボックスに「pol_redirect」と入力します。
- [アクション] で、[act_redirect] を選択します。
- [式] ウィンドウで、次のルールを入力します。CLIENT.IP.SRC.IN_SUBNET (222.0.0/16)
- [作成] をクリックし、[閉じる] をクリックします。 構成した pol_redirect という名前のレスポンダーポリシーが [レスポンダーポリシー] ページに表示されます。
- レスポンダーポリシーのバインドの説明に従って、新しいポリシー pol_redirect をグローバルにバインドします。
共有
共有
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.