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 minion firewall #53143

Open
Dtengfei opened this issue May 21, 2019 · 9 comments
Open

windows minion firewall #53143

Dtengfei opened this issue May 21, 2019 · 9 comments
Labels
Confirmed Salt engineer has confirmed bug/feature - often including a MCVE Execution-Module Feature new functionality including changes to functionality and code refactors, etc. good first issue good for someone new to salt State-Module
Milestone

Comments

@Dtengfei
Copy link

Description of Issue/Question

Why haven't we updated the salt. states. win_firewall. add_rule module all the time? We only have local ports that can't be set remotely.

Setup

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

Versions Report

master and minion version 2019.2.0

@twangboy twangboy added the info-needed waiting for more info label May 21, 2019
@twangboy
Copy link
Contributor

@Dtengfei Could you clarify this request? Are you talking about the state module here? Or the execution module? What is not supported and where? Please provide a full Versions Report.

@twangboy twangboy added this to the Blocked milestone May 21, 2019
@Dtengfei
Copy link
Author

很抱歉上次没有表达清楚我的意思,咱们现在的模块只是支持localport,但是我想要remoteport,请问一下咱们有其他方法满足我的需求嘛?我想要限制本地访问目标的指定端口。我用的是咱们的执行模块:salt.modules.win_firewall.add_rule(name, localport, protocol='tcp', action='allow', dir='in', remoteip='any')
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.win_firewall.html#salt.modules.win_firewall.add_rule

@Dtengfei
Copy link
Author

I am sorry that I didn't express my meaning last time. Our current module only supports localport, but I want remoteport. Do you have other methods to meet my needs? I want to limit the specified port of the local access target. I use our execution module: salt.modules.win_firewall.add_rule(name, localport, protocol='tcp', action='allow', dir='in', remoteip='any') modules url:https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.win_firewall.html#salt.modules.win_firewall.add_rule

@twangboy twangboy added Execution-Module Feature new functionality including changes to functionality and code refactors, etc. State-Module Core relates to code central or existential to Salt Low-Hanging Fruit and removed Core relates to code central or existential to Salt info-needed waiting for more info labels May 22, 2019
@twangboy
Copy link
Contributor

OK. I have marked this as a Feature request. It should be a pretty easy add so I also marked it as Low Hanging Fruit.

@twangboy twangboy modified the milestones: Blocked, Approved May 22, 2019
@Dtengfei
Copy link
Author

Dtengfei commented May 22, 2019 via email

@stale
Copy link

stale bot commented Jan 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label Jan 8, 2020
@sagetherage sagetherage added the Confirmed Salt engineer has confirmed bug/feature - often including a MCVE label Jan 9, 2020
@stale
Copy link

stale bot commented Jan 9, 2020

Thank you for updating this issue. It is no longer marked as stale.

@stale stale bot removed the stale label Jan 9, 2020
@pssnyman
Copy link

Has there been any development regarding adding a 'remoteport' parameter?
This would allow us to correctly configure outgoing firewall rules. As it stands that's not currently possible from what I can see.

@sagetherage sagetherage added good first issue good for someone new to salt and removed Low-Hanging Fruit labels May 23, 2020
@mrosstech
Copy link

I can tackle this issue. I reviewed the code in the module and think I know what needs to be changed. My question is around testing. Since this is adding a new command line parameter to the module, would I:

  • Need to make a test for this scenario?
  • If so, how would I go about doing so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed Salt engineer has confirmed bug/feature - often including a MCVE Execution-Module Feature new functionality including changes to functionality and code refactors, etc. good first issue good for someone new to salt State-Module
Projects
None yet
Development

No branches or pull requests

5 participants