Skip to content

Instantly share code, notes, and snippets.

@githubfoam
githubfoam / DNS Cheat Sheet
Last active July 25, 2025 13:11
DNS Cheat Sheet
----------------------------------------------------------------------------------------------------
#ChatGPt troubleshooting
Sure, I'd be happy to explain these points using the context of configuring conditional forwarding for a domain or subdomain.
The IP Address of the External DNS Server Must Be Reachable:
When configuring conditional forwarding, you need to provide the IP addresses of the external DNS servers that will be used for forwarding queries. These external DNS servers must be reachable from your internal DNS server. This means that there should be network connectivity and proper routing between your internal DNS server and the external DNS servers. If the external DNS server's IP address is not reachable, the forwarding will not work, and the internal DNS server won't be able to forward queries to external servers.
The Internal DNS Server Must Be Configured for Recursive Queries:
Recursive queries refer to the capability of a DNS server to query other DNS servers on behalf of clients until i
@githubfoam
githubfoam / fortigate - application control cheat sheet
Last active January 23, 2025 01:24
fortigate - application control cheat sheet
#=====================================================================
What is the limitation of using a URL list and application control on the same firewall policy, in NGFW policy-based mode?
A. It limits the scanning of application traffic to the browser-based technology category only.
B. It limits the scanning of application traffic to the DNS protocol only.
C. It limits the scanning of application traffic to use parent signatures only.
D. It limits the scanning of application traffic to the application category only.
@githubfoam
githubfoam / azure cloud cheat sheet
Last active March 20, 2023 07:36
azure cloud cheat sheet
#=====================================================================
#ChatGPT
FortiWeb Cloud is a web application firewall (WAF) delivered as a service in the cloud, which means the customer doesn't have to manage the underlying infrastructure. The customer can choose between BYOL or pay-as-you-go licensing options. FortiWeb Cloud uses a CDN to distribute WAF rules and increase performance. The IP address of the FortiWeb Cloud instance is used for management. FortiWeb Cloud can be used for both cloud-based and on-premises applications. The location of the closest cloud center will be used for cloud-based applications, while on-premises applications can be protected by deploying a FortiWeb Cloud Connector.
#=====================================================================
#ChatGPT
BYOL (Bring Your Own License) and pay-as-you-go are two pricing models for cloud services that are commonly used by cloud providers.
BYOL is a licensing model where the customer brings their own software license to run on th
@githubfoam
githubfoam / fortigate - security fabric - external connectors cheat sheet
Created March 20, 2023 07:44
fortigate - security fabric - external connectors cheat sheet
#=====================================================================
#ChatGPT
Explain SDN connector in fortigate.
An SDN (Software Defined Networking) connector in FortiGate is a feature that allows for the integration of FortiGate with SDN controllers in a network environment. The SDN connector supports integration with OpenStack, Microsoft Azure, and VMware NSX controllers.
With the SDN connector, FortiGate can receive information from the SDN controller about virtual machine (VM) and network changes, and can use this information to dynamically update its security policies. This enables FortiGate to adapt to changes in the network environment in real-time, without the need for manual configuration.
For example, when a new VM is created or moved in an OpenStack environment, the SDN connector can inform FortiGate of this change. FortiGate can then automatically create or modify its security policy to allow traffic from this new VM, without the need for manual configuration.
@githubfoam
githubfoam / OT Security cheat sheet
Last active March 20, 2023 10:40
OT Security cheat sheet
------------------------------------------------------------------------------------------
#ChatGPT
The supervisor must add different VLAN interfaces to the software switch.
By configuring different VLAN interfaces on the software switch, the supervisor can control traffic between member interfaces using firewall policies. VLAN interfaces allow traffic to be separated into different virtual networks, each with their own set of firewall policies. Therefore, the supervisor can apply different policies to traffic between different VLAN interfaces on the software switch.
------------------------------------------------------------------------------------------
#ChatGPT
The three protocols that are commonly used as industrial Ethernet protocols are EtherCAT, EtherNet/IP, and PROFINET.
------------------------------------------------------------------------------------------
@githubfoam
githubfoam / fortigate - ssl-vpn cheat sheet
Last active May 13, 2025 11:24
fortigate - ssl-vpn cheat sheet
#====================================================================================================================================
# microsoft built-in vpn client on windows 11 , not working
only for "local" user account, no fortinet support on ms store
#====================================================================================================================================
# microsoft built-in vpn client on windows 11 , not working
# ChatGPT
let's explore examples to illustrate the differences between L2TP/IPsec and SSL VPN in practical scenarios:
@githubfoam
githubfoam / fortigate - Firewall Hardening cheat sheet
Last active February 18, 2026 08:23
fortigate - Firewall Hardening cheat sheet
#=====================================================================
#Bard
#configure an email alert on each successful VPN SSL connection on FortiGate 7.2:
Go to Security Fabric > Automation.
Click Create New.
In the Name field, enter a name for the automation stitch.
In the Trigger field, select FortiOS Event Log.
In the Event field, select SSL VPN Tunnel Up.
@githubfoam
githubfoam / powershell script cheat sheet
Last active March 23, 2026 03:33
powershell script cheat sheet
==========================================================================================================
#Gemini
==========================================================================================================
#ChatGPT
==========================================================================================================
#Gemini
Ensuring PowerShell DSC and Chocolatey are Installed
PowerShell DSC is a feature of PowerShell. If you have PowerShell installed on your Windows 10 system, DSC is likely already available.
@githubfoam
githubfoam / windows ADBA KMS cheat sheet
Last active August 8, 2024 06:17
windows ADBA KMS cheat sheet
==========================================================================================================
#Slmgr.vbs Options for Volume Activation
Attempting to manage an older system from Windows 7 or Windows Server 2008 R2 will generate a specific version mismatch error
==========================================================================================================
#ChatGPT
Explain Key Management Server in windows.
A Key Management Server (KMS) is a feature in Microsoft Windows that allows organizations to activate volume licensed versions of Windows and Office products within their network environment without the need for individual activation keys for each computer.
@githubfoam
githubfoam / windows WSUS cheat sheet
Created March 21, 2023 12:38
windows WSUS cheat sheet
==========================================================================================================
#ChatGPT
WSUS (Windows Server Update Services) is a tool provided by Microsoft that allows system administrators to manage and distribute updates for Windows operating systems and other Microsoft products in a centralized manner.
With WSUS, administrators can approve, decline, and schedule updates for deployment to client computers in their organization. WSUS also provides reports on the status of updates, allowing administrators to monitor which updates have been installed and which ones are still pending.
WSUS works by synchronizing with Microsoft Update servers to obtain the latest updates and then making those updates available to client computers on the network. Clients can be configured to download updates directly from WSUS or through a proxy server.
By using WSUS, administrators can control which updates are deployed to client computers, ensuring that updates are tested and approved before be