From ee8137a3e9b02a07933c2183c4c129770c960919 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 3 Dec 2023 00:59:40 +0000 Subject: [PATCH 1/3] Updating README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7907178..b7f3e7d 100644 --- a/README.md +++ b/README.md @@ -169,4 +169,4 @@ If you have a script you would like to share to the community or improvements on - Once the pull request is approved and merged you can pull the changes from `upstream` to your local repo.

-![generated_image](https://img.shields.io/badge/generated%20date-12/02/2023%2014:34:46-blue) +![generated_image](https://img.shields.io/badge/generated%20date-12/03/2023%2000:59:39-blue) From 9f993bb89f56d4bad1abf1594efc17e139db09c4 Mon Sep 17 00:00:00 2001 From: kenrward Date: Thu, 7 Dec 2023 16:02:08 -0500 Subject: [PATCH 2/3] update trust to segment --- .../Troubleshooting/ZN_Troubleshooter_v02.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Segment/Troubleshooting/ZN_Troubleshooter_v02.ps1 b/Segment/Troubleshooting/ZN_Troubleshooter_v02.ps1 index e97df61..3da99b7 100644 --- a/Segment/Troubleshooting/ZN_Troubleshooter_v02.ps1 +++ b/Segment/Troubleshooting/ZN_Troubleshooter_v02.ps1 @@ -4,7 +4,7 @@ .AUTHOR ken@zeronetworks.com .VERSION 2.0 .Synopsis - This scripts purpose is to help quickly troubleshoot common scenarios related to issues on the Trust Server or monitored/protected assets + This scripts purpose is to help quickly troubleshoot common scenarios related to issues on the Segmentation Server or monitored/protected assets .DESCRIPTION This script does the following @@ -214,15 +214,15 @@ function Check-GPOConflict { if($p.value) {$filtered += $p} } } - $filtered | Format-Table + $filtered | Format-Table | Out-File -FilePath $LogFilePath -Append } function Check-Comms2Segment { - $fwRule = Get-NetFirewallRule -PolicyStore ActiveStore | Where-Object {$_.DisplayName -eq "ZNRemoteAccess"} | Select *, @{ N="Trust Servers"; Expression={($_ | Get-NetFirewallAddressFilter).RemoteAddress}} - $fwRule = $fwRule | Select-Object DisplayName, Enabled, Profile, Direction, Action, "Trust Servers" - $trustServers = ForEach ($server in $fwRule."Trust Servers") { - ## Reverse lookup trust server IP + $fwRule = Get-NetFirewallRule -PolicyStore ActiveStore | Where-Object {$_.DisplayName -eq "ZNRemoteAccess"} | Select-Object *, @{ N="Segmentation Servers"; Expression={($_ | Get-NetFirewallAddressFilter).RemoteAddress}} + $fwRule = $fwRule | Select-Object DisplayName, Enabled, Profile, Direction, Action, "Segmentation Servers" + $trustServers = ForEach ($server in $fwRule."Segmentation Servers") { + ## Reverse lookup segmentation server IP Try { $resolvedName = (Resolve-DnsName $server -ErrorAction Ignore).NameHost } @@ -240,9 +240,9 @@ function Check-Comms2Segment { $_ | Add-Member -MemberType NoteProperty -Name "Port" -value $sslCheck.Port -Force $_ | Add-Member -MemberType NoteProperty -Name "Protocol" -value $sslCheck.Protocol -Force - $_ | Add-Member -MemberType NoteProperty -Name "Connectivity To Trust Server" -value $(if ($sslCheck.Result) {"Success"} else {"Failed"}) -Force + $_ | Add-Member -MemberType NoteProperty -Name "Connectivity To Segmentation Server" -value $(if ($sslCheck.Result) {"Success"} else {"Failed"}) -Force } - $trustServers | FT + $trustServers | Format-Table | Out-File -FilePath $LogFilePath -Append } From fe78ce84f1f7666089e95a7fa2b93f7643377f47 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 7 Dec 2023 21:02:28 +0000 Subject: [PATCH 3/3] Updating README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7f3e7d..68d639f 100644 --- a/README.md +++ b/README.md @@ -169,4 +169,4 @@ If you have a script you would like to share to the community or improvements on - Once the pull request is approved and merged you can pull the changes from `upstream` to your local repo.

-![generated_image](https://img.shields.io/badge/generated%20date-12/03/2023%2000:59:39-blue) +![generated_image](https://img.shields.io/badge/generated%20date-12/07/2023%2021:02:28-blue)