Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

How to modify a DFW rule #538

Closed
jilanms opened this issue Jul 26, 2018 · 1 comment
Closed

How to modify a DFW rule #538

jilanms opened this issue Jul 26, 2018 · 1 comment

Comments

@jilanms
Copy link

jilanms commented Jul 26, 2018

Hi,
I've been playing around with PowerNSX and created a basic VM to VM rule which denies traffic on any service. But what if I want to modify the service and change the action to allow? So for example I want to allow port 80 traffic. I know first I would have to create a variable which I have done:
$svc1 = New-NsxService -name svc1 -Protocol TCP -port 80
Then call my DFW section/rule using:
Get-NsxFirewallSection TestSection | Get-NsxFirewallRule "testrule" |
After that 2nd pipe is where I get stuck and not sure how to set the service and change the action to allow.

Thanks

@jilanms jilanms closed this as completed Jul 27, 2018
@alagoutte
Copy link
Contributor

Hi Jilanms

You have found how to modify your DFW rule ?
No sure it is yet possible to modify a service...

For Action (Allow/Deny), you can use/look #506 (set-nsxfirewallrule cmdlet)

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

No branches or pull requests

2 participants