# config firewall vip
edit "virtual-server-http"
set type server-load-balance
set extip 10.1.200.101
set extintf "wan2"
set server-type http
set ldb-method round-robin
set extport 80
# config realservers
edit 1
set ip 172.16.200.44
set port 80
next
edit 2
set ip 172.16.200.55
set port 80
next
end
next
end
# config firewall vip
edit "virtual-server-https"
set type server-load-balance
set extip 10.1.200.101
set extintf "wan2"
set server-type https
set ldb-method round-robin
set extport 443
# config realservers
edit 1 set ip 172.16.200.44
set port 443
next
edit 2
set ip 172.16.200.55
set port 443
next
end
set ssl-certificate "Fortinet_CA_SSL"
next
end
# config firewall vip4) Add the two virtual servers to a policy:
edit "virtual-server-http"
set http-redirect enable
next
end
# config firewall policy
edit 9
set srcintf "wan2"
set dstintf "wan1"
set srcaddr "all"
set dstaddr "virtual-server-http" "virtual-server-https"
set action accept
set schedule "always"
set service "ALL"
set inspection-mode proxy set logtraffic all
set auto-asic-offload disable
set nat enable
next
end
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.