Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 - 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 / 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 - 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 / 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 / wild card certificate cheat sheet
Created March 17, 2023 06:48
wild card certificate cheat sheet
-------------------------------------------------------------------------------------------------------------------
#ChatGPT
Explain wildcard certificate.
A wildcard certificate is a type of SSL/TLS certificate that can secure multiple subdomains of a domain using a single certificate. It is called a "wildcard" because it uses a wildcard character (*) to represent any subdomain name.
For example, if you have a wildcard certificate for "*.example.com", it can secure any subdomain of example.com, such as mail.example.com, blog.example.com, and shop.example.com. This can be particularly useful for organizations that have many subdomains, as it eliminates the need to obtain and manage multiple certificates for each subdomain.
However, it's important to note that wildcard certificates can only secure subdomains that share the same second-level domain name. For example, a wildcard certificate for ".example.com" would not secure subdomains of another domain, such as ".example.org". Additionally, wildcard certifi
@githubfoam
githubfoam / Investigation Path - open RDP service on public IP Range
Last active July 7, 2023 06:12
Investigation Path - open RDP service on public IP Range
-------------------------------------------------------------------------------------------------------------------
#ChatGPT
Explain how to detect open RDP service in public IP range
Detecting open RDP (Remote Desktop Protocol) services in a public IP range involves scanning the network to identify systems that have RDP ports (TCP port 3389) open and listening for connections. Here are the general steps to detect open RDP services in a public IP range:
Choose a scanning tool: You will need to choose a scanning tool to scan the network range for open RDP ports. There are several tools available, including Nmap, Advanced IP Scanner, and Angry IP Scanner.
Specify the IP range: Identify the public IP range you want to scan for open RDP services. You can either scan the entire range or specify a subset of IPs that you suspect may have RDP services open.
@githubfoam
githubfoam / hp aruba instant on cheat sheet
Created March 16, 2023 08:25
hp aruba instant on cheat sheet
#=====================================================================
#ChatGPT
Explain how to configure web filter in hp aruba wireless access points.
HP Aruba wireless access points support web filtering using the Aruba Instant software, which can be configured through the Aruba Instant web interface. Here are the general steps to configure web filtering in HP Aruba wireless access points:
Login to the Aruba Instant web interface using an administrative account.
Navigate to the "Security" tab, and then click on "Content Filtering" from the drop-down menu.