Advanced Search
Search Results
443 total results found
Bulk Check IPs Against List Of Subnets
(2024-11-15) Problem You have a logfile full of IP addresses and you need to figure out if they belong to a given set of subnets. In my case I have a nameserver that is part of my authoritative trio, but a select number (forty subnets) of clients are permitted...
mrrogers
(2014-07-17) MrRogers knows who is in your neighbourhood. mrrogers is a perl script which uses snmp to query a switch to list its LLDP neighbours. Originally I wanted a perl script that would list the LLDP neighbour on a specific port so that I could run it in...
List all sender, receiver addresses for successful relay IPs
(2024-11-22) mkdir tmp.$$ cd tmp.$$ for z in /var/log/maillog ; do for i in `grep stat= $z | awk '{print $6}' | sort -u` ; do echo $i # this is the message transaction ID grep $i $z | egrep -i 'Hello|rcpt to|mail from' > $i done done mkdir ../out.$...
List IPs by number of successful mail transactions
(2024-11-22) for z in /var/log/maillog* ; do for i in `grep stat= $z | awk '{print $6}' | sort -u` ; do grep $i $z | grep 'Hello' | sed -e 's/^.*\[//' -e 's/\].*$//' done done | sort | uniq -c | sort -nr
dotfiles
(2024-11-24) Dotfiles for my personal consumption: # wget https://raw.githubusercontent.com/xdroop/xdroop_dotfiles/master/.screenrc # wget https://raw.githubusercontent.com/xdroop/xdroop_dotfiles/master/.vimrc # wget https://raw.githubusercontent.com/xdroop/xd...
Looking at logs via CLI
(2024-11-28) fw # exec log filter category Category. device Device to get log from. dump Dump current filter settings. field Filter by field. free-style Filter by free-style expression. ha-mem...
Upgrading Remi PHP
(2024-12-05) Assuming you already have a remi php installed: # dnf module switch-to php:remi-8.3
CLI Basics
(2024-12-17) Command Mode Show System Info > show system info hostname:... ... Show configuration for system section > configure # show deviceconfig system system { ssh { ... Find a command Show the entire command hierarcy: > find command Show command s...
SNMP configuration
(2024-12-17) set deviceconfig system snmp-setting access-setting version v3 views My-SNMP-View view FULL-ACCESS oid 1.3.6.1 set deviceconfig system snmp-setting access-setting version v3 views My-SNMP-View view FULL-ACCESS option include set deviceconfig syste...
Packet Tracer
(2025-01-13) General: packet-tracer input ifc_name [ vlan-id vlan_id ] icmp [ inline-tag tag ] { src_ip | user username | security-group { name name | tag tag } | fqdn fqdn_string } icmp_value [ icmp_code ] [ dmac ] { dst_ip | security-group { name name | tag ...
Check Geo-IP Region For A Specific IP
(2025-01-31) FGVM # di geoip ip2c 147.45.47.173 147.45.47.173 - Netherlands, is not anycast ip FGVM # di geoip ip2c 179.60.146.34 179.60.146.34 - Netherlands, is not anycast ip FGVM # di geoip ip2c 185.190.24.15 185.190.24.15 - Lithuania, is not anycast ip ...
Fortimanager: List All Registered Firewalls
(2025-02-19) Command Does diag dvm device list list all devices diag dvm device list name list the entry for name Note that the fortimanager does not have grep, so if you have a non-trivial number of devices registered you'll want to copy/paste the...
Export Logs From Fortigate Disk Over FTP
(2025-03-18) # execute backup disk alllogs ftp <IP_address> <username> <password> <compressed | uncompressed> # execute backup disk log ftp <IP_address> <username> <password> <log_type> <compressed |uncompressed> It wants to dump these files into the directo...
Enable the SSLVPN GUI Menus
(2025-03-31) (..or, we don't want you using this but if you insist:) Enable the GUI menus: config system settings set gui-sslvpn enable end Enable web-mode portal: config system global set sslvpn-web-mode enable end (source) "New feature" my shiny me...
Debug sdwan
(2025-03-31) # di sys sdwan member Member. service Service. route-tag-list Show route tag address. route-tag-flush Flush route tag address. health-check ...
Tac Report
(2025-04-15) To generate a Tac report: # exec tac report Alternatively, go to System Settings FortiCare Debug Report ...and then select the 'Download' option
BGP Neighbours -- Advertised, Received, and Learned
(2025-04-24) What routes are we sending to a neighbor? get router info bgp neighbors <neighbor IP> advertised-routes What routes is the neighbor sending to us? get router info bgp neighbors 10.56.240.2 received-routes What routes have we accepted from the ne...
OSPF Troubleshooting
(2025-04-28) diag sniffer packet any "proto 89" 6 0 l diag sniffer packet any "host 224.0.0.5" 6 0 l get router info ospf neighbor get router info ospf interface get router info ospf database brief get router info ospf database self-originate get router...
DHCP Debugging
(2025-04-29) Debug Fortigate as DHCP client: diag debug reset diag debug application dhcpc -1 diag debug enable Debug DHCP activity as a server: execute dhcp lease-list diag debug reset diag debug application dhcps -1 diag debug enable Turn it off: diag deb...
Fandango
2002 Blue Book allegedly (wiki) there is a variation with a white interior normally the interior is grey. 2011 Color Shifters: Glow In The Dark 2011 Color Shifters: X-Raycers 2012 Max Steel Urban Storm 5-Pack 2022 Moster Maker allegedly (wiki), although ...