<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kirupakarans on Medium]]></title>
        <description><![CDATA[Stories by Kirupakarans on Medium]]></description>
        <link>https://medium.com/@kirupakarans?source=rss-50d19e3b8e4d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LmhvVOb_8zWNPX-q4Lkn-g.jpeg</url>
            <title>Stories by Kirupakarans on Medium</title>
            <link>https://medium.com/@kirupakarans?source=rss-50d19e3b8e4d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 22:31:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kirupakarans/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[WAF custom policies to restrict access to backend Services]]></title>
            <link>https://medium.com/kpmg-uk-engineering/waf-custom-policies-to-restrict-access-to-backend-services-7287e86ec933?source=rss-50d19e3b8e4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7287e86ec933</guid>
            <dc:creator><![CDATA[Kirupakarans]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 05:59:38 GMT</pubDate>
            <atom:updated>2023-12-20T09:26:44.460Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Problem Statement:</strong> We have multiple application running behind the application gateway, except one application all other application has to access from any public network (internet)and one application has to restrict only to VPN ip’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OPvLPBeqTbf555CyVc0xTQ.png" /><figcaption>WAF custom rule</figcaption></figure><p>Network security Group has assigned to application gateway subnet to allow any source IP to access the applications running behind the application gateway.</p><p>In this scenario how to allow access only to VPN ip’s for one particular application.</p><p><strong>WAF firewall rules:</strong></p><p>To enable a Web Application Firewall on Application Gateway, you must create a WAF policy. This policy is where all of the managed rules, custom rules, exclusions, and other customizations such as file upload limit exist.</p><p>You can configure a WAF policy and associate that policy to one or more application gateways for protection. A WAF policy consists of two types of security rules:</p><ul><li>Custom rules that you create</li><li>Managed rule sets that are a collection of Azure-managed pre-configured set of rules</li></ul><p>When both are present, custom rules are processed before processing the rules in a managed rule set. A rule is made of a match condition, a priority, and an action. Action types supported are: ALLOW, BLOCK, and LOG.</p><p>Now, using the custom rules want to block only VPN ip’s</p><p>Create a Web Application Firewall Policies (WAF) with the prevention mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENlTQeelhMp9Z0xob2Oznw.png" /></figure><p>Leave the Managed policies as it is and go to the custom policies and add the custom policies as per your need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LbCUih-h_I0HGRKeS-FKXw.png" /></figure><p>Next, apply the WAF policy to Listeners that are associate with that particular application. <strong>Don’t </strong>associate the WAF to application gateway it will restrict to all the applications in backend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lFvYgGwtXK40bfl3fmtQg.png" /></figure><p>With custom rules, you can create multiple rules and conditions, which are evaluated for each request that passes through WAF. These rules hold a higher priority than the rest of the rules in the managed rule sets. If a set of conditions is met, an action is taken to allow or block.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7287e86ec933" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kpmg-uk-engineering/waf-custom-policies-to-restrict-access-to-backend-services-7287e86ec933">WAF custom policies to restrict access to backend Services</a> was originally published in <a href="https://medium.com/kpmg-uk-engineering">KPMG UK Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Private Endpoint & DNS zones using Terraform]]></title>
            <link>https://medium.com/@kirupakarans/azure-private-endpoint-dns-zones-using-terraform-194465d636cb?source=rss-50d19e3b8e4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/194465d636cb</guid>
            <dc:creator><![CDATA[Kirupakarans]]></dc:creator>
            <pubDate>Mon, 24 Jul 2023 05:26:17 GMT</pubDate>
            <atom:updated>2023-07-24T07:16:33.979Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is Azure Private Endpoint</strong></h3><p>A private endpoint is a network interface that uses a private IP address from your virtual network. This network interface connects you privately and securely to a service that’s powered by Azure Private Link. By enabling a private endpoint, you’re bringing the service into your virtual network.</p><p>When deploying resources in Azure, it’s important to ensure that they’re secured and available only to authorized users. One way to achieve this is by using Azure Private Endpoints, which allow you to access Azure services over a private IP address. Additionally, DNS Zones can be used to provide custom DNS names for resources, allowing you to easily manage and identify your resources. In this article, we’ll explore how to use Terraform to create Azure Private Endpoints and DNS Zones.</p><h3>Creating an Azure Private Endpoint</h3><p>To create an Azure Private Endpoint using Terraform, follow these steps:</p><ol><li>Define your Azure provider and configure your backend.</li></ol><pre>provider &quot;azurerm&quot; {<br>  features {}<br>}</pre><pre>terraform {<br>  backend &quot;azurerm&quot; {}<br>}</pre><ol><li>Create a resource group for your private endpoint.</li></ol><pre>resource &quot;azurerm_resource_group&quot; &quot;private-endpoint-rg&quot; {<br>  name     = &quot;private-endpoint-rg&quot;<br>  location = &quot;uksouth&quot;<br>}</pre><p>2. Create a virtual network for your private endpoint.</p><pre>resource &quot;azurerm_virtual_network&quot; &quot;private-endpoint-vnet&quot; {<br>  name                = &quot;private-endpoint-vnet&quot;<br>  address_space       = [&quot;10.0.0.0/16&quot;]<br>  location            = azurerm_resource_group.private-endpoint-rg.location<br>  resource_group_name = azurerm_resource_group.private-endpoint-rg.name<br>  subnet {<br>    name           = &quot;private-endpoint-subnet&quot;<br>    address_prefix = &quot;10.0.1.0/24&quot;<br>  }<br>}</pre><p>3. Create a private endpoint.</p><pre>resource &quot;azurerm_private_endpoint&quot; &quot;private-endpoint&quot; {<br>  name                = &quot;private-endpoint&quot;<br>  location            = azurerm_resource_group.private-endpoint-rg.location<br>  resource_group_name = azurerm_resource_group.private-endpoint-rg.name<br>  subnet_id                  = azurerm_subnet.private-endpoint-subnet.id<br>  private_service_connection {<br>    name                           = &quot;private-endpoint-connection&quot;<br>    private_connection_resource_id = &quot;&lt;resource-id&gt;&quot;<br>    is_manual_connection           = true<br>    subresource_names              = [&quot;&lt;subresource-name&gt;&quot;]<br>  }<br>  dns_zone_id = azurerm_private_dns_zone.dns-zone.id<br>  tags = {<br>    environment = &quot;production&quot;<br>  }<br>}</pre><p>4. Run terraform init, terraform plan, and terraform apply to create the private endpoint.</p><h3>Azure Private Endpoint DNS configuration</h3><p>It’s important to correctly configure your DNS settings to resolve the private endpoint IP address to the fully qualified domain name (FQDN) of the connection string.</p><p>Existing Microsoft Azure services might already have a DNS configuration for a public endpoint. This configuration must be overridden to connect using your private endpoint.</p><p>The network interface associated with the private endpoint contains the information to configure your DNS. The network interface information includes FQDN and private IP addresses for your private link resource.</p><h3>Creating a DNS Zone</h3><p>To create a DNS Zone using Terraform, follow these steps:</p><ol><li>Create a resource group for your DNS Zone.</li></ol><pre>resource &quot;azurerm_resource_group&quot; &quot;dns-zone-rg&quot; {<br>  name     = &quot;dns-zone-rg&quot;<br>  location = &quot;uksouth&quot;<br>}</pre><p>2. Create a DNS Zone.</p><pre>resource &quot;azurerm_private_dns_zone&quot; &quot;dns-zone&quot; {<br>  name                = &quot;privatelink.azurewebsites.net&quot;<br>  resource_group_name = azurerm_resource_group.dns-zone-rg.name<br>  tags = {<br>    environment = &quot;production&quot;<br>  }<br>}</pre><p>3. Create a DNS Zone record set.</p><pre>resource &quot;azurerm_private_dns_cname_record&quot; &quot;dns-zone-record&quot; {<br>  name                = &quot;example&quot;<br>  zone_name           = azurerm_private_dns_zone.dns-zone.name<br>  resource_group_name = azurerm_resource_group.dns-zone-rg.name<br>  ttl    = 300<br>  cname  = &quot;&lt;cname-value&gt;&quot;<br>}</pre><p>4. Run terraform init, terraform plan, and terraform apply to create the DNS Zone.</p><h3>Conclusion</h3><p>Azure Private Endpoints and DNS Zones are powerful tools that allow you to secure and manage your resources in Azure. With Terraform, it’s easy to define and deploy these resources. By following the steps outlined in this article, you can create Azure Private Endpoints and DNS Zones using Terraform. These resources can help you to secure your resources and provide custom DNS names for your Azure resources, making it easier to manage and identify your resources.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=194465d636cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>