brianaddicks / PowerAlto

Palo Alto powershell
poweralto.com
MIT License
39 stars 15 forks source link

New-PaNatPolicy doesn't seem to be working.. #13

Open Woolersuk opened 3 years ago

Woolersuk commented 3 years ago

Hi there,

So I've managed to test a few cmdlets without issue, but this doesn't appear to set anything on the firewall: PS C:\Users\alexander.woolsey> New-PaNatPolicy -Name "TestNATPol" -SourceZone trust -DestinationZone untrust -SourceTra nslationType dynamic-ip-and-port -SourceTranslatedAddress ethernet1/3

Name : TestNATPol2 Description : NatType : ipv4 Tags : Disabled : False SourceZone : {trust} DestinationZone : untrust DestinationInterface : any Service : any SourceAddress : {any} DestinationAddress : {any} SourceTranslationType : dynamic-ip-and-port SourceTranslatedAddress : ethernet1/3 BiDirectional : False TranslatedDestinationAddress : TranslatedDestinationPort : 0

I've tried a few different iterations, mainly -SourceTranslatedAddress as an IP or interface - the firewall responds as if all is ok, but the rule doesn't appear.