Skip to content

Commit 5675e44

Browse files
authored
Merge pull request #124704 from annadeAz/patch-1
CSS-Networking: added fw app rules for resource downloads_Update prot…
2 parents 4aaa0d8 + 6bc0c1b commit 5675e44

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

articles/firewall/protect-azure-kubernetes-service.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ When the previous command has succeeded, save the firewall frontend IP address f
146146
147147
FWPUBLIC_IP=$(az network public-ip show -g $RG -n $FWPUBLICIP_NAME --query "ipAddress" -o tsv)
148148
FWPRIVATE_IP=$(az network firewall show -g $RG -n $FWNAME --query "ipConfigurations[0].privateIPAddress" -o tsv)
149+
150+
151+
# set fw as vnet dns server so dns queries are visible in fw logs
152+
153+
az network vnet update -g $RG --name $VNET_NAME --dns-servers $FWPRIVATE_IP
149154
```
150155

151156
> [!NOTE]
@@ -191,6 +196,11 @@ az network firewall network-rule create -g $RG -f $FWNAME --collection-name 'aks
191196

192197
```azurecli
193198
az network firewall application-rule create -g $RG -f $FWNAME --collection-name 'aksfwar' -n 'fqdn' --source-addresses '*' --protocols 'http=80' 'https=443' --fqdn-tags "AzureKubernetesService" --action allow --priority 100
199+
200+
# set fw application rule to allow kubernettes to reach storage and image resources
201+
202+
az network firewall application-rule create -g $RG -f $FWNAME --collection-name 'aksfwarweb' -n 'storage' --source-addresses '10.42.1.0/24' --protocols 'https=443' --target-fqdns '*.blob.storage.azure.net' '*.blob.core.windows.net' --action allow --priority 101
203+
az network firewall application-rule create -g $RG -f $FWNAME --collection-name 'aksfwarweb' -n 'website' --source-addresses '10.42.1.0/24' --protocols 'https=443' --target-fqdns 'ghcr.io' '*.docker.io' '*.docker.com' '*.githubusercontent.com'
194204
```
195205

196206
See [Azure Firewall documentation](overview.md) to learn more about the Azure Firewall service.

0 commit comments

Comments
 (0)