Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: PowerCLI for allowed IP List

$
0
0

Yes, the $true and $false should be swapped in the other post.

 

The following example seems to work for me, but you have to make sure the AllowedIPAddresses is not set to All when adding individual IP addresses.

Hence the $false as param 1 in the 1st line

 

$esxcli.network.firewall.ruleset.set($false,$true,'syslog')

$esxcli.network.firewall.ruleset.allowedip.add('192.168.1.1','syslog')

$esxcli.network.firewall.ruleset.allowedip.add('192.168.1.2','syslog')

 

$esxcli.network.firewall.ruleset.list('syslog')

$esxcli.network.firewall.ruleset.allowedip.list('syslog')

 


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>