< Back

Get-NsxSpoofguardNic

Sat Jan 18, 2020 9:12 pm

NAME Get-NsxSpoofguardNic



SYNOPSIS

Retrieves Spoofguard NIC details for the specified Spoofguard policy.





SYNTAX

Get-NsxSpoofguardNic -SpoofguardPolicy <XmlElement> [-Filter <String>] [-Connection <PSObject>]

[<CommonParameters>]



Get-NsxSpoofguardNic -SpoofguardPolicy <XmlElement> [-Filter <String>] [-NetworkAdapter <NetworkAdapterInterop>]

[-Connection <PSObject>] [<CommonParameters>]



Get-NsxSpoofguardNic -SpoofguardPolicy <XmlElement> [-Filter <String>] [-VirtualMachine <VirtualMachineInterop>]

[-Connection <PSObject>] [<CommonParameters>]



Get-NsxSpoofguardNic -SpoofguardPolicy <XmlElement> [-Filter <String>] [-MacAddress <String>] [-Connection

<PSObject>] [<CommonParameters>]





DESCRIPTION

If a virtual machine has been compromised, its IP address can be spoofed

and malicious transmissions can bypass firewall policies. You create a

SpoofGuard policy for specific networks that allows you to authorize the IP

addresses reported by VMware Tools and alter them if necessary to prevent

spoofing. SpoofGuard inherently trusts the MAC addresses of virtual machines

collected from the VMX files and vSphere SDK. Operating separately from

Firewall rules, you can use SpoofGuard to block traffic determined to be

spoofed.



Use the Get-NsxSpoofguardNic cmdlet to retrieve Spoofguard NIC details for

the specified Spoofguard policy





PARAMETERS

-SpoofguardPolicy <XmlElement>



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Filter <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MacAddress <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-VirtualMachine <VirtualMachineInterop>

PowerCLI VirtualMachine object



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NetworkAdapter <NetworkAdapterInterop>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

Default value $defaultNSXConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NsxSpoofguardPolicy test | Get-NsxSpoofguardNic -NetworkAdapter (Get-vm evil-vm | Get-NetworkAdapter|

select -First 1)



Get the Spoofguard settings for the first NIC on vM Evil-Vm









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-NsxSpoofguardPolicy test | Get-NsxSpoofguardNic -VirtualMachine (Get-vm evil-vm)



Get the Spoofguard settings for all nics on vM Evil-Vm









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-NsxSpoofguardPolicy test | Get-NsxSpoofguardNic -MacAddress 00:50:56:81:04:28



Get the Spoofguard settings for the MAC address 00:50:56:81:04:28









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-NsxSpoofguardPolicy test | Get-NsxSpoofguardNic -Filter Inactive



Get all Inactive spoofguard Nics











RELATED LINKS