Posts

Showing posts from August, 2024

Centos 8 repository error

   Centos Stream 8 is EOL, use archive from mirror. sudo sed -i -e '/mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$releasever&arch=$basearch&repo=/ s/^#*/#/' -e '/baseurl=http:\/\/mirror.centos.org\/$contentdir\/$releasever\// s/^#*/#/' -e '/^\[baseos\]/a baseurl=https://mirror.rackspace.com/centos-vault/8.5.2111/BaseOS/$basearch/os' /etc/yum.repos.d/CentOS-Stream-BaseOS.repo sudo sed -i -e '/mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$releasever&arch=$basearch&repo=/ s/^#*/#/' -e '/baseurl=http:\/\/mirror.centos.org\/$contentdir\/$releasever\// s/^#*/#/' -e '/^\[appstream\]/a baseurl=https://mirror.rackspace.com/centos-vault/8.5.2111/AppStream/$basearch/os' /etc/yum.repos.d/CentOS-Stream-AppStream.repo sudo sed -i -e '/mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$releasever&arch=$basearch&repo=/ s/^#*/#/' -e '/baseurl=http:\/\/mirror.centos.org\/$contentd...

Wazuh opensearch dashboard ConnectionError: connect ECONNREFUSED ::1:9200"

 Wazuh opensearch dashboard ConnectionError: connect ECONNREFUSED ::1:9200"    If you see error like this:  Aug 19 13:38:21 wazuh opensearch-dashboards[486]: {"type":"log","@timestamp":"2024-08-19T04:38:21Z","tags":["error","opensearch","data"],"pid":486,"message":"[ConnectionError]: connect ECONNREFUSED ::1:9200"} the problem is with missing host localhost IP at: (default is IPv6 and deamon is not listening on it) /etc/wazuh-dashboard/opensearch_dashboards.yml  opensearch.hosts: https://127.0.0.1:9200 #opensearch.hosts: https://localhost:9200

M365 Exchange online how to find users with auto-forwarding enabled

 M365 Exchange online how to find users with auto-forwarding enabled   1. Use Powershell     Connect-ExchangeOnline  Get-Mailbox | Where {$null -ne $_.ForwardingSmtpAddress} | FT UserPrincipalName,ForwardingSmtpAddress,DeliverToMailboxAndForward $Mailboxes = Get-Mailbox -ResultSize unlimited  | where {$_.RecipientTypeDetails -eq "UserMailbox"} foreach ($Mailbox in $Mailboxes)     { Get-InboxRule -mailbox $Mailbox.Name | Where-object {$_.forwardto -or $_.forwardasattachmentto} | fl mailboxownerid,name,description }   

M365 Exchange online - bulk delete Quarantined emails

 M365 Exchange online - bulk delete Quarantined emails 0. Connect from Powershell  Connect-ExchangeOnline -UserPrincipalName  [email protected]   1.  Find quarantined emails using Powershell: Get-QuarantineMessage -SenderAddress [email protected] -ReleaseStatus NotReleased     2.   Create variable with IDs $id = Get-QuarantineMessage -SenderAddress [email protected] -ReleaseStatus NotReleased | select -ExpandProperty Identity 3. Delete or Release all: Delete-QuarantineMessage -Identities $id -Identity 000 Get-QuarantineMessage -SenderAddress [email protected] -ReleaseStatus NotReleased | Release-QuarantineMessage -ReleaseToAll