This article describes how to block a certain application on the same server behind the FortiGate from the internet while allowing access to the others.
FortiGate.
Topology:
Three applications are hosted on the same server behind the FortiGate. Access to Application 1 from the Internet needs to be blocked while Application 2 and Application 3 can still be accessed from the Internet.
The following are the applications on the same server:
This server is hosted behind the FortiGate using a virtual server configuration.
Prerequisites:
Virtual server or Virtual IP (VIP) is configured on the FortiGate.
config firewall policy
edit 1
set name "**reverse-proxy**"
set srcintf "wan"
set dstintf "internal"
set action accept
set srcaddr "all"
set dstaddr "reverse-proxy-testing" <----- Virtual server.
set schedule "always"
set service "ALL"
set utm-status enable
set inspection-mode proxy
set ssl-ssh-profile "_protect_server"
set webfilter-profile "_inbound"
set waf-profile "_strict_waf"
next
end
Result:
If a user tries to access Application 1, it will get blocked due to the configured URL static filter:
However, if the user tries to access either Application 2 or Application 3, it will be successful.
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.