Skip to main content
Contributor III
August 4, 2009

Technical Tip: Restricting services through a FortiGate

  • August 4, 2009
  • 0 replies
  • 2021 views

Description

 

This article describes that administrators may wish to restrict which 'services', logical ports, are allowed through a FortiGate. 
 
This may be to restrict access coming into a network. Filters may be used to control which applications internal users are allowed to access through a FortiGate.
 
Scope
 
FortiGate.


Solution


Controlling Firewall Services is part of policy creation. By default, a Firewall policy has the 'ANY' service group chosen as the group of services in a policy.

In this scenario, an administrator will group three services to allow.

Create a new Firewall policy under Firewall -> Policy -> Create New.

As part of this step, users will select which service to allow, deny, or send through a VPN tunnel. With no new service groups created, only the default services are available.

sotoole_FD30782_new policy defaults.JPG
Administrators have all the FortiGate 'Predefined' services to choose from by default. These can be seen in the Firewall -> Service menu.

sotoole_FD30782_new service defaults.JPG
In the Firewall Service menu, users can create a new group. This is done by selecting Create New under Firewall -> Service -> Group tab.

sotoole_FD30782_new service group.JPG
With member services grouped in a new group, this group can be used in a policy of any action type.

sotoole_FD30782_service grp in policy.JPG
These steps can be applied to an Accept, IPSec, Deny, or SSL VPN policy. By default, the policy list is followed by an implicit deny. This means that if a policy has not been created to allow a service, then it will not be allowed through the FortiGate.

Note:

On the newer versions of the FortiOS, in this case, the branches v7.4.x, v7.6.x, a Service Group can still be configured and used on the firewall policy, but the view will be different, as seen below:

 

Firewall_Policy.png

 

The Service entries:

 

Service_Entries.png

 

To create a Group, select the + icon:

 

Add a new Group.png

 

Add Services:

 

Adding services.png

 

Add the new entry to the Firewall Policy:

 

Add to the policy.png

 

Note: Starting in version 7.4, the behavior of how traffic logs display when a service group is used in a firewall policy has changed. The application name column now shows the service group name instead of listing the individual matching service. In earlier versions, even when a service group was used in the policy, the application name column displayed the names of the individual services.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.