{"id":4850,"date":"2020-10-21T07:43:37","date_gmt":"2020-10-21T07:43:37","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=4850"},"modified":"2020-10-21T07:43:37","modified_gmt":"2020-10-21T07:43:37","slug":"how-to-get-ip-restrictions-working-behind-azure-waf-v1","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/azure\/how-to-get-ip-restrictions-working-behind-azure-waf-v1","title":{"rendered":"How to get IP Restrictions working behind Azure Waf V1"},"content":{"rendered":"<p>Unlike WAF v2 , the v1 product does not have custom rules for blocking IP , so you will need to do this at the IIS Level still<\/p><p>When the WAF forwards the request it tags on &#8220;x-forwarded-for&#8221; to the HTTP header and leaves the c-ip ( client IP ) the same<\/p><p>By Default IIS will check <em>IP Address Domain and Restrictions<\/em> list on the site and block the c-ip ( client IP ) using this list.\u00a0<\/p><p id=\"PtyYEiv\"><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"343\" class=\"alignnone size-full wp-image-4851  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2020\/10\/img_5f8fe4ea3f809.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2020\/10\/img_5f8fe4ea3f809.png 597w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2020\/10\/img_5f8fe4ea3f809-300x172.png 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/p><p>Enabling Proxy Mode ( In IIS 8 and up ) means it will also adhere to the x-forwarded-for , but you will need to add the Subnet of the WAF ( as it picks a different IP each time ) to the allow list as well or the Health probe won&#8217;t be able to make sure the site is UP<\/p>","protected":false},"excerpt":{"rendered":"<p>Unlike WAF v2 , the v1 product does not have custom rules for blocking IP , so you will need to do this at the IIS Level [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2092],"tags":[3363,1485,3364,1401,3365,3367,3366],"class_list":["post-4850","post","type-post","status-publish","format-standard","hentry","category-azure","tag-azure-waf-v1","tag-block","tag-custom-rules","tag-iis","tag-ip","tag-proxy-mode","tag-x-forwarded-for"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=4850"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4850\/revisions"}],"predecessor-version":[{"id":4852,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4850\/revisions\/4852"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=4850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=4850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=4850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}