Skip to main content
wws
New Member
Apr 1, 2025 9:46 PM UTC
Solved

Webui access from specific internet address

New FortiGate admin here. I'm looking to enable web-admin on the WAN ports, but only allow access from specific IP addresses. I've created the address objects, but am not seeing how to configure a firewall policy. There would (obviously) be no outgoing interface.

I can see a couple of suggestions coming, so to avoid those...

  • I'd rather not have to use a VPN just for remote admin access.
  • Also, configuring "trusted hosts" for specific users still exposes the admin ports to the entire internet, which is an all-around bad idea.

So, a firewall policy should be the way to go...

Any help would be appreciated!

wws
wwsAnswer
New Member
Apr 2, 2025 10:43 PM UTC

Local policies look powerful.  But, I went with something a little simpler:  a Virtual IP + Firewall Policy.  The virtual IP forwards the webui port through to the firewall's internal address, and the firewall policy controls who has access.

3 replies

AEK
SuperUser
SuperUser
Apr 1, 2025 10:58 PM UTC
wws
wwsAuthorAnswer
New Member
Apr 2, 2025 10:43 PM UTC

Local policies look powerful.  But, I went with something a little simpler:  a Virtual IP + Firewall Policy.  The virtual IP forwards the webui port through to the firewall's internal address, and the firewall policy controls who has access.

AEK
SuperUser
SuperUser
Apr 2, 2025 11:37 PM UTC

I didn't test it because I find it more secure to avoid publish the WebUI directly on WAN. But trough VPN is much more secure. However I find your method a good idea for hardening access to WebUI from WAN.

BTW there is another approach with loopback interface, explained by Yurisk in this article. He did it for SSL VPN but it should also work for WebUI.

https://yurisk.info/2023/03/21/fortigate-vpn-ssl-hardening-guide/#_move_vpn_ssl_listening_interface_to_a_loopback_interface

AEK
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT