FORTIGATE - Configuration Dump Script: Revision history

From Wiki.IT-Arts.net

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

21 July 2024

  • curprev 15:0915:09, 21 July 2024Admin talk contribs 2,113 bytes +2,113 Created page with "Category:Post-It <nowiki> #!/bin/bash # # Usage: ./thisScript.sh {IPv4} {PORT} ##### VARIABLES IP="$1" PORT="$2" MESSAGE="Usage: $0 {IPv4} {PORT}" ##### FUNTIONS is_valid_ipv4() { local -a octets=( ${1//\./ } ) local RETURNVALUE=0 # return an error if the IP doesn't have exactly 4 octets [[ ${#octets[@]} -ne 4 ]] && return 1 # return an error if first octet is 0 [[ ${octets[0]} -eq 0 ]] && return 1 for octet in ${octets[..."