FortiOS 5.2 Authentication: User and device authentication

Source: Internet
Author: User
Keywords User Authentication Device Authentication
Tags forticloud fortios fortiauthenticator fortigate user authentication fortigate authentication

1. Defining two users and two user groups

Go to User & Device > User > User Definitions.

Create two new users (in the example, dprince and rmontoya).

Both user definitions now appear in the user list.

Go to User & Device > User > User Groups.

Create the user group full-time and add user dprince.

Create a second user group, part-time, and add user rmontoya.

2. Creating a schedule for part-time staff

Go to Policy & Objects > Objects > Schedules and create a new recurring schedule.

Set an appropriate schedule. In order to get results later, do not select the current day of the week.

3. Defining a device group for mobile phones

Go to User & Device > Device > Device Groups and create a new group.

Add the various types of mobile phones as Members.

4. Creating a policy for full-time staff

Go to Policy & Objects > Policy > IPv4 and create a new policy.

Set Incoming Interface to the local network interface, Source User(s) to the full-time group, Outgoing Interface to your Internet-facing interface, and ensure that Schedule is set to always.

Turn on NAT.

Scroll down to view the Logging Options. In order to view the results later, enable Log Allowed Traffic and select All Sessions.

5. Creating a policy for part-time staff that enforces the schedule

Go to Policy & Objects > Policy > IPv4 and create a new policy.

Set Incoming Interface to the local network interface, Source User(s) to the part-time group, Outgoing Interface to your Internet-facing interface, and set Schedule to use the part-time schedule.

Turn on NAT.

Scroll down to view the Logging Options. In order to view the results later, enable Log Allowed Traffic and select All Sessions. 

View the policy list. Click on the title row and select ID from the dropdown menu, then select Apply. Take note of the ID number that has been given to the part-time policy.

Go to System > Dashboard > Status and enter the following command into the CLI Console, using the ID number of the part-time policy.

This will ensure that part-time users will have their access revoked during days they are not scheduled, even if their current session began when access was allowed.

config firewall policy
  edit 2
    set schedule-timeout enable
  end
end

6. Creating a policy that denies mobile traffic

Go to Policy & Objects > Policy > IPv4 and create a new policy.

Set Incoming Interface to the local network interface, Source Device to Mobile Devices (a default device group that includes tablets and mobile phones), Outgoing Interface to your Internet-facing interface, and set Action to DENY.

Leave Log Violation Traffic turned on.

In order for this policy to be used, it must be located at the top of the policy list. Select any area in the far-left column of the policy and drag it to the top of the list.

7. Results

Browse the Internet using a computer. You will be prompted to enter authentication credentials.

Log in using the dprince account. You will be able to access the Internet at any time.

Go to User & Device > Monitor > Firewall. Highlight dprince and select De-authenticate.

Attempt to browse the Internet again. This time, log in using the rmontoya account. After authentication occurs, you will not be able to access the Internet.

Attempts to connect to the Internet using any mobile phone will also be denied.

You can view more information about the blocked and allowed sessions by going to System > FortiView > All Sessions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.