Skip to content

Instantly share code, notes, and snippets.

@ericmaino
Created May 6, 2025 21:48
Show Gist options
  • Save ericmaino/c48f7e0331d540ada5f2a59f6fb2246b to your computer and use it in GitHub Desktop.
Save ericmaino/c48f7e0331d540ada5f2a59f6fb2246b to your computer and use it in GitHub Desktop.
# Enable all inbound traffic from 169.254.0.0/16
New-NetFirewallRule `
-DisplayName "Allow Inbound from 169.254.0.0/16" `
-Direction Inbound `
-Action Allow `
-RemoteAddress 169.254.0.0/16 `
-Protocol Any `
-Enabled True `
-Profile Any
# Enable all outbound traffic to 169.254.0.0/16
New-NetFirewallRule `
-DisplayName "Allow Outbound to 169.254.0.0/16" `
-Direction Outbound `
-Action Allow `
-RemoteAddress 169.254.0.0/16 `
-Protocol Any `
-Enabled True `
-Profile Any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment