-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Cant create ICMP firewall rules on windows #156
Comments
I am unassigning myself here -- I could use someone more familiar with the Windows side of things in order to build out the |
We are adding settings, that default to false, for opening up loopbck and icmp in the default recipe. Notes: - ufw doesn't allow proto `icmp`, so we skip it on debian? based distros - windows has issues in our implementation, so don't open stuff there (see #156) - update tests to check for the new rules Fixes #158
We are adding settings, that default to false, for opening up loopbck and icmp in the default recipe. Notes: - ufw doesn't allow proto `icmp`, so we skip it on debian? based distros - windows has issues in our implementation, so don't open stuff there (see #156) - update tests to check for the new rules Fixes #158 Signed-off-by: Martin Smith <[email protected]>
We are adding settings, that default to false, for opening up loopbck and icmp in the default recipe. Notes: - ufw doesn't allow proto `icmp`, so we skip it on debian? based distros - windows has issues in our implementation, so don't open stuff there (see #156) - update tests to check for the new rules Fixes #158 Signed-off-by: Martin Smith <[email protected]>
On windows you must specify protocol version like: protocol :icmpv4 However this will generate other error, icmp rules must not specify 'port', I've submitted a pull request to fix this port issue: |
(cherry picked from commit 60582fd)
Thanks @alexandrezia, This patch worked with charm, using windows 10.0.14393 (2016) 👍 |
Thanks @alexandrezia , worked wonderfully using Windows 7. |
Cookbook version
2.5.3
Chef-client version
12.18.31
Platform Details
Win 2012 (contrary to what your README.md says your code has worked on this platform fine)
Scenario:
Add ICMP firewall rules to only allow specific IP blocks
Steps to Reproduce:
Expected Result:
Firewall rules added to only allow ICMP from the specified icmp_host list
Actual Result:
Rule add fails in multiple ways.
You specify "icmp" where it should be "icmpv4"
You specify a "localport" and "remoteport" setting of "any", both of these are not needed at all and also causes the command to fail to add if you try to work around problem 'ufw reset' action #1 by specifying protocol 1 instead of :icmp.
+firewall add rule name="ICMP v4 from Y.Y.Y.Y/23" description="ICMP v4 from Y.Y.Y.Y/23" dir=in service=any protocol=1 localip=any localport=any interfacetype=any remoteip=Y.Y.Y.Y/23 remoteport=any action=allow
The text was updated successfully, but these errors were encountered: