Skip to main content
unknown1020
Explorer III
May 28, 2024 6:29 PM UTC
Question

web services posts on fortigate

Good morning friends, a question.

 

I have several web services posts on fortigate. According to a report, I see that the attack events are related to the http port.

 

What considerations should I have before removing the http port in the publication?

 

Is it simply changing the port in the VIP? Or is it also required to make changes to the web servers?

7 replies

Hong_FTNT
Staff & Editor
Staff & Editor
May 29, 2024 2:26 PM UTC

Hi @unknown1020,

 

If you don't want port 80 to be exposed, you can remove the VIP that forward port 80.

 

Regards, 

unknown1020
Explorer III
Jun 5, 2024 9:52 PM UTC

Hello, thank you for responding, but the port change must be made in the VIP and also on the server, right?

AEK
SuperUser
SuperUser
May 29, 2024 4:17 PM UTC

Hi Unknown

You can change to HTTPS but this will not prevent attacks. Best solution to block the attacks is to use a separate WAF appliance between FG and the back-end server.

If the server is just for test purpose or you can't use a separate WAF than you may use FortiGate's WAF profile with a virtual server object.

AEK
DPadula
Staff & Editor
Staff & Editor
Jun 6, 2024 1:05 AM UTC

As mentioned by AEK changing the port number is not a solution.
Besides the WAF have a look on DoS policies inside the FGT as well. Might help you to prevent some of the attacks.
https://docs.fortinet.com/document/fortigate/7.4.4/administration-guide/771644/dos-policy

unknown1020
Explorer III
Jun 6, 2024 3:06 PM UTC

Thanks for the response, a question, when configuring DOS Policy, could that configuration increase the firewall CPU consumption? I have planned to first put it in monitor mode to view the events, then apply the respective locks.

AEK
SuperUser
SuperUser
Jun 6, 2024 4:16 PM UTC

I think DoS policy will consume the same CPU either in monitor mode or in block mode. As per my experience with it it doesn't consume significant processing (nothing visible).

AEK
DPadula
Staff & Editor
Staff & Editor
Jun 6, 2024 11:16 PM UTC

Hi @unknown1020

 

A good strategy is to record a base line regarding memory, CPU and sessions on busy and normal business days for the firewall operation.
Having that it will help you in the future to identify if a feature (not only DoS Policies) or any change on the network has affected the environment.

 

As mentioned by my colleague AEK I don't think enabling DoS policy will add significant CPU usage.

Of course, every feature that you enable will always consume an amount of CPU and memory even it is not in use. As a good practice always disable features that you don't need. 

 

Cheers

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024