Questions tagged [firewall-rules]

9 questions
1
vote
1 answer

How to add pre-defined inbound firewall rules to a GPO using powershell

Update: My use-case requires me to automate deployment of Windows Server VMs for test environment. While I've managed to find ways to automate the process via powershell in 90% of tasks, I'm now stuck on how to re-create predefined firewall rules in…
1
vote
1 answer

How can I assign the "Action=Allow" command after the "Delete Firewall Rule" command assigned to the right button?

There is a Context Menu that I have assigned to the right mouse button as Windows Firewall. And I am using the following code to delete a security rule. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Windows…
Albie
  • 49
  • 5
1
vote
1 answer

How do I make the "Firewall Rule Delete" command assigned to the right mouse button detect the path of the file?

I have created a custom property for the right button menu that allows me to "Firewall Rule" any file in Windows 10 and block its internet access. Similarly, I have another property that can disable or delete the rule I created. However, I…
Albie
  • 49
  • 5
1
vote
1 answer

Add Windows Firewall rule for multiple IP's using netsh.exe

echo@ netsh advfirewall firewall add rule name="test" dir=in action=block protocol=TCP remoteip=16.24.0.0/24,**from 157.175.0.0 to 157.175.255.255**,**from 15.184.0.0 to 15.184.255.255**,**from 15.185.0.0 to 15.185.255.255** netsh advfirewall…
0
votes
1 answer

Using ForEach-Object -Parallel on multiple Servers with Get-NetFirewallRule

I am writing a code which is checking the firewall rules from multiple servers. Since we have alot servers here, i want to run my Script parallel on these servers. My script is kind of working. I get 510 firewall rules. Sadly its prints always the…
0
votes
1 answer

Issue creating firewall rules via terraform (google provider)

I am trying to create firewall rule via terraform (using google provider). However struggling to pull external_ipv6_prefix from subnetwork. This is my code data "google_compute_network" "vpc" { name = "my-vpc" project = "my-project" } data…
Dinesh
  • 309
  • 3
  • 14
0
votes
1 answer

Azure networking feature for restricted destination IP is not working

Azure networking feature is not working. I wanted to restrict that one machine to communicate with another specific machine only, I mentioned the destination IP address in inbound rule but it gets connected with another machine too. I created a…
0
votes
0 answers

Windows Firewall: Inbound rule. Randomly generated program path

I am creating and Inbound firewall rule to allow a program. Problem is, program path is slightly different on each system. Path is as…
0
votes
1 answer

how to include list of IPs while creating egress rule via gcloud?

I try to create an egress firewall rule to open specific destination IPs, here is what I do for only one destination-ranges: gcloud compute firewall-rules create my_egress \ --network ${NETWORK_NAME} \ --action allow \ --rules all \ …
Ala Tarighati
  • 3,507
  • 5
  • 17
  • 34