
Network Hardware, Part 5: Fortinet FortiGate — Initial Setup, Interfaces, Policies, and NAT
🌐 Machine-translated from Russian. Show original
⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.
In this part:
What is FortiGate#
FortiGate is a next-generation firewall (NGFW) from Fortinet: routing, firewall policies, NAT, VPN, and security profiles (antivirus, IPS, web filtering, application control). Managed via web interface and CLI; for multiple devices — centrally via FortiManager.
First connection#
- Connect to the management port (default address is specified in the model documentation).
- Change the administrator password, set the device name and time zone, update FortiOS to the recommended version.
- Restrict administrative access:
config system interface
edit "port1"
set ip 192.168.99.1 255.255.255.0
set allowaccess ping https ssh
next
edit "wan1"
set mode dhcp
set allowaccess ping
next
end
⚠️ Do not allow HTTPS and SSH administration on the WAN interface. If external access is needed — only via VPN or from trusted addresses (Trusted Hosts at the administrator account).
Interfaces and VLANs#
config system interface
edit "vlan10"
set vdom "root"
set interface "port2"
set vlanid 10
set ip 192.168.10.1 255.255.255.0
set allowaccess ping
next
end
The DHCP server for VLAN is configured in interface properties (web interface) or via config system dhcp server.
Policies#
On FortiGate , everything is prohibited until it is allowed by policy. Policy: where (interface, addresses) → where → which services → NAT → → security profiles.
User access to the internet:
config firewall policy
edit 0
set name "USERS-to-Internet"
set srcintf "vlan10"
set dstintf "wan1"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ALL"
set nat enable
set logtraffic all
next
end
Policies between VLANs: users → servers only necessary services (e.g., 1C, RDP administrators, file server); cameras → only the registrar; guests → internet only.
Service publishing (Virtual IP)#
config firewall vip
edit "VIP-web-443"
set extintf "wan1"
set extip <внешний IP>
set mappedip "192.168.20.10"
set portforward enable
set extport 443
set mappedport 443
next
end
Then the policy is from wan1 to the internal interface with this VIP as the destination. Publish only what should be available from the internet — for the rest, there is a VPN (part 6.
Logs and monitoring#
- Enable logging of allowed and blocked traffic for key policies.
- Sending logs to external storage (FortiAnalyzer, syslog) — local storage for small models quickly overflows.
- Notifications about administration events and channel failures.
Backup#
Regular configuration uploads (with password encryption) and storage outside the device. Mandatory before updating FortiOS.
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.