Postări

Se afișează postări din decembrie, 2023

Renew certificate on EDGE and create edge subscription

  1. Create new exchange certificate. You can use instructions from https://d4a-things.blogspot.com/2022/08/create-self-signed-certificate-with.html View certificates on Exchange enviroment using: Get-ExchangeCertificate | fl 2. Enable service SMTP for newly created  certificate: Enable-ExchangeCertificate -Thumbprint xxxxxxxx -Services SMTP 3. Restart transport service and AD LDS service on EDGE server   4.  Create new edge subscription: New-EdgeSubscription -FileName c:\newedgesubscr.xml 5. Copy edge subscription file from edge to mailbox server 6. Remove currently edge subscription Remove-EdgeSubscription -Identity Edge1 7. Import on mailbox server newly created edge subscription New-EdgeSubscription -FileData ([byte[]]$(Get-Content -Path "D:\newedgesubscr.xml" -Encoding Byte -ReadCount 0)) -Site "Default-First-Site-Name" 8.View information about currently created edge subscription: Get-EdgeSubscription | Format-List 9. Restart transport service on hub transp...

Wazuh - rezolve "this cluster currently has [1000]/[1000] maximum shards open" error

  On Wazuh node run the following command to increase max_shards_per_node to 2000 shards:  curl -X PUT --insecure -u admin:your_password https://localhost:9200/_cluster/settings -H "Content-Type: application /json" -d '{ "persistent": { "cluster.max_shards_per_node": "2000" } }'

Linux masquerade

Enable IPv4 forwarding echo net.ipv4.ip_forward=1>/etc/sysctl.d/11-ipv4-forward.conf sysctl --system Enable masquerading of outgoing traffic through the eth0 interface iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE