2015/01/22

Azure WebsitesでWAF(Web Application Firewall)

ModSecurityが使えます。

日本語
http://blogs.msdn.com/b/windowsazurej/archive/2014/10/10/blog-modsecurity-web-application-firewall-on-azure-websites.aspx

英語
http://azure.microsoft.com/blog/2014/09/29/modsecurity-for-azure-websites/

ActiveDirectoryの災害対策


http://azure.microsoft.com/blog/2015/01/21/setting-up-active-directory-for-a-disaster-recovery-environment-2/

内部負荷分散セット、Azure Internal Load Balancing (ILB)、DirectServerReturn 設定変更

既存のEndPointへの設定変更はできない模様。。
DirectServerReturnを行うためには、それ前提でEndPointを作る必要あり。
# PowerShell上の実行結果では、EnableDirectServerReturn


===例
PS C:\> get-azurevm -ServiceName cs-web -name web4 | Set-AzureEndpoint -name WebEP -DirectServerReturn $true | Update-AzureVM

Update-AzureVM : BadRequest: Windows Azure does not support modifying Direct Server Return settings on an existing endpoint. Please d
elete and recreate the endpoint with Direct Server Return set to True.
=



負荷分散、まとめ
http://taleofazure.blogspot.jp/2015/03/blog-post_4.html

内部負荷分散セット、Azure Internal Load Balancing (ILB)、パケットの流れ


■前提
client IP:172.18.2.4
server IP:172.19.1.4
ILB IP:172.19.1.251


■client から server に http Request
=client側でネットワークモニタで観察した結果
送信元:172.18.2.4
送信先:172.19.1.251
=server側でネットワークモニタで観察した結果
送信元:172.18.2.4
送信先:172.19.1.4

無論、serverのログにも、172.18.2.4からの着信記録。


■server から client に http Response
=server側でネットワークモニタで観察した結果
送信元:172.19.1.4
送信先:172.18.2.4
=client側でネットワークモニタで観察した結果
送信元:172.19.1.251
送信先:172.18.2.4




Azure IaaS、Windows Server の SNMPサービス


http://support.microsoft.com/kb/2721672/ja

に記載されているとおり、サポート対象ではありません。
これはAzureからの観点ではなく、あくまでもWindows Server OSから見たサポートの観点で「Windows Server OS標準実装のSNMPサービス」をAzure IaaS上で動かすことをサポートしない、ということです。

Azure上に限らず、そもそも「Windows Server OS標準実装のSNMPサービス」自体、使用が推奨されなくなっています。このあたりが、Azure IaaS上で動かすことをサポートしなくなった理由かな、と筆者は推測します。
https://technet.microsoft.com/ja-jp/library/hh831568.aspx



無論、
プロトコルとしてのSNMPはAzure上で利用できます。Linux上はもとより、たとえWindows Server上であっても「Windows Server OS標準実装のSNMPサービス」以外のSNMPサービスであれば、そして、そのプロバイダーがAzure上でそれをサポートするのであれば、問題なく使用できます。


サポートされなくてもいいから使えるか否か知りたい方々へ。
「Windows Server OS標準実装のSNMPサービス」がそもそもAzure上で使えるのか否か、を試してみました。
筆者環境下では、とりあえず使えました。