Skip to content

Instantly share code, notes, and snippets.

@ptx96
Created March 14, 2023 15:41
Show Gist options
  • Save ptx96/a2bc2b3c9ccbf6d942f2c713c09e0989 to your computer and use it in GitHub Desktop.
Save ptx96/a2bc2b3c9ccbf6d942f2c713c09e0989 to your computer and use it in GitHub Desktop.
FortiGate default cloud-init
config system global
set admin-scp enable
set admintimeout 30
set timezone 26
end
config system interface
edit "port1"
set vdom "root"
set allowaccess ping https ssh snmp
set role wan
next
end
config system admin
edit "SOCadmin"
set trusthost1 213.140.2.6 255.255.255.255
set trusthost2 10.0.120.0 255.255.254.0
set trusthost3 10.0.110.0 255.255.254.0
set trusthost4 10.8.30.100 255.255.255.255
set trusthost5 89.97.75.16 255.255.255.255
set accprofile "super_admin"
set vdom "root"
set password ENC AK1zTxUBkQKZHeHAcFmeU3P0caqJ1bYgeWpsXa/Mzn2n40=
next
end
config system dns
set primary 85.18.200.200
set secondary 208.91.112.52
end
config system snmp sysinfo
set status enable
set contact-info "SOC: [email protected]"
end
config system snmp community
edit 1
set name "fwrosoc"
config hosts
edit 1
set ip 10.8.30.200 255.255.255.255
next
edit 2
set ip 10.0.121.29 255.255.255.255
next
edit 4
set ip 10.8.30.201 255.255.255.255
next
edit 6
set ip 10.0.121.30 255.255.255.255
next
edit 7
set ip 89.97.75.16 255.255.255.255
next
edit 8
set ip 10.8.30.246 255.255.255.255
next
edit 9
set ip 10.8.30.100 255.255.255.255
next
end
set query-v1-status disable
set trap-v1-status disable
set events cpu-high mem-low log-full vpn-tun-up vpn-tun-down ha-switch ha-hb-failure fm-if-change fm-conf-change ha-member-up ha-member-down ent-conf-change per-cpu-high
next
end
config system ntp
set ntpsync enable
set type custom
config ntpserver
edit 1
set server "93.61.13.193"
next
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment