Fortinet – Static routes with Firewall objects

I like the the Idea to configure static routing over firewall objects. This avoids the static route limit on FortiGate Firewall. config firewall address edit "N.203.0.113.0--24" set allow-routing enable set subnet 203.0.113.0 255.255.255.0 next end config firewall addrgrp edit "R.Networks" set allow-routing enable set member "N.203.0.113.0--24" next end config router static edit 0 set gateway …

FortiGate – High CPU and Memory load

Recently, we encountered significant CPU and memory utilization spikes on one of our Fortigate Firewalls. Despite consistently handling around 1.5 million sessions for several months without any problems, the situation took a turn for the worse. The firewall became unresponsive through the Command Line Interface (CLI), and at that time, we hadn't configured a dedicated …

Tcpdump examples

Basic Packet Capture tcpdump -i eth0 This captures and displays packets on interface eth0. Capture Packets from a Specific Port tcpdump -i eth0 port 80 This captures packets on port 80 (HTTP traffic) on eth0. Capture Packets with a Specific Host as Source or Destination tcpdump -i eth0 host 192.168.1.100 This captures packets either from …

HP Aruba – IRF

HP IRF (Intelligent Resilient Framework)  are similar to Cisco VSS Prepare the Switch irf portsirf port membersHistoryLinks Some basic information only Prepare the Switch renumber if needed irf member 1 renumber 2 irf ports every switch has two ports irf-port <member>/1 irf-port <member>/2 irf port members irf-port 2/1 port group interface Ten-GigabitEthernet 2/0/21 port group …

Linux – FirewallD and nftables

just some notes about FirewallD and nftables firewall-cmd --zone public --add-rich-rule 'rule service name="ssh" accept limit value="1/m"' firewall-cmd --zone=trusted --add-source=-your-own-IP-here- firewall-cmd --runtime-to-permanent vi /etc/firewalld/policies/dns.xml <?xml version="1.0" encoding="utf-8"?> <policy target="CONTINUE"> <service name="dns"/> <rule> <service name="dns"/> <accept> <limit value="5000/m"/> </accept> </rule> <ingress-zone name="ANY"/> <egress-zone name="HOST"/> </policy> firewall-cmd --reload firewall-cmd --info-policy=dns dns (active) priority: -1 target: CONTINUE ingress-zones: …

Fortigate DOS Protection

It is a good idea to do basic DoS Protection, even internaly. Configuring DoS policyVerificationdiagnose ips anomaly listReleasing the blocked sendersdiagnose ips anomaly clearLinks Configuring DoS policy This will configure a basic DoS Policy for Traffic with default values and block violations for 2 Minutes. config firewall DoS-policy edit 1 set name "ALL DoS-Policy" set …

Bind9 – Caching only DNS Server with Logging

Sometimes there is the need to have an forwarding only name server. named.conf/etc/resolv.confDocker enviroments named.conf controls { net 127.0.0.1 allow { localhost; } keys { "rndc-key"; }; }; key "rndc-key" { algorithm "hmac-md5"; secret "somesecret-for-rndc"; }; options { directory "/etc/named.d"; listen-on { 127.0.0.1; }; max-cache-ttl 600; max-ncache-ttl 300; forward only; forwarders { <IP of SERVER1>; …