Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows support #46

Open
TheExpertNoob opened this issue Nov 25, 2023 · 0 comments
Open

Windows support #46

TheExpertNoob opened this issue Nov 25, 2023 · 0 comments

Comments

@TheExpertNoob
Copy link

Could be added to the Readme for anyone who happens by that is a windows user.

$IPs = Get-Content <File path to your list of IPs>
Set-NetFirewallRule -DisplayName <Firewall Rule Name> -RemoteAddress $IPs

Example:

$IPs = Get-Content C:\path\to\5.txt
Set-NetFirewallRule -DisplayName BlockedIPs -RemoteAddress $IPs

5.txt being level 5 and BlockedIPs being an Inbound rule set up to well.. block IPs on all ports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant