Contents
Easy heading | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
If a proxy server is configured, it will be displayed in the command output.
Powershell:
$proxySettings = Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
if ($proxySettings.ProxyEnable -eq 1)
{
Write-Output "Proxy Server: $($proxySettings.ProxyServer)"
}
else {
Write-Output "Proxy is not enabled."
}
If proxy is set, this will be the result:
...
After making the change to allow Cloud API reporting for Windows Server OS in GYTPOL by setting "serversAllowedRE" to "true" in the "predefined.json" file, the GYTPOL client on Windows Server OS will attempt to report via the Cloud API if it cannot reach the GYTPOL server through the internal 9093 port. This provides an alternative reporting method for situations where direct communication to the server is not possible.
Filtering AWS IP Addresses for Specific Services Using jq
and curl
AWS publishes their IP addresses in a JSON file, which can be downloaded and filtered using the jq
command. The following command displays the IP ranges for the services we use, assuming curl
and jq
are installed:
curl https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select(((.region == "us-east-2") and (.service == "S3")) or ((.region == "us-east-2") and (.service == "API_GATEWAY")) or ((.region == "us-east-2") and (.service == "AMAZON")) or ((.region == "us-east-2") and (.service == "EC2"))) '
JQ
For Windows:
Download
jq
:Download the 64-bit or 32-bit Windows binary (
jq-win64.exe
orjq-win32.exe
).Place
jq
in PATH:Extract the downloaded ZIP file.
Move
jq.exe
to a directory in your system's PATH (e.g.,C:\Windows\System32
).
Verify Installation:
Open Command Prompt and type
jq --version
to ensure it's installed correctly.
For macOS:
Using Homebrew:
Open Terminal.
Run
brew install jq
to installjq
.
Verify Installation:
In Terminal, type
jq --version
to verify the installation.
For Linux (Ubuntu/Debian):
Using Package Manager:
Open Terminal.
Run
sudo apt-get update && sudo apt-get install jq
to installjq
.
Verify Installation:
In Terminal, type
jq --version
to verify the installation.
CURL
For Windows:
Download
curl
:Visit https://curl.se/windows/
Download the latest
curl
executable for Windows, either 32-bit or 64-bit.Install
curl
:Run the downloaded executable and follow the installation prompts.
Verify Installation:
Open Command Prompt and type
curl --version
to ensure it's installed correctly.
For macOS:
Already Installed:
curl
is usually pre-installed on macOS.
Verify Installation:
Open Terminal and type
curl --version
to verify the installation.
For Linux (Ubuntu/Debian):
Using Package Manager:
Open Terminal.
Run
sudo apt-get update && sudo apt-get install curl
to installcurl
.
Verify Installation:
In Terminal, type
curl --version
to verify the installation.
Anchor | ||||
---|---|---|---|---|
|
...