Skip to main content
tamilpol
New Member
September 10, 2020
Question

One address, address group, or Internet service is required error when Setting up MAC base

  • September 10, 2020
  • 3 replies
  • 8125 views

Hello all,

I am trying to set up MAC based policy access in which only the computers(3 pcs) from my room should have access to all other computers and servers in whole appartment.

I have added the computers based on MAC address to device inventory.

But when I try to create a policy based on MAC  Iam getting this error

 

One address, address group, or Internet service is required

 

But when I add a subnet with the PCs the error goes away. But I dont want the subnet to have all access. Only the computers with MAC address should have access

 

PS: I have researched about the changes in FortiOS 6.2 . But you can still do MAC based policy directly on IPv4 policy pages.

Thank you so much for help and advices in advance

    3 replies

    lobstercreed
    New Member
    September 10, 2020

    What you left out is what version you're running.  Based on the error you're getting, I assume you are running something prior to 6.2 (i.e. 6.0.x, 5.6.x, etc).

     

    Prior to 6.2, a MAC-based policy uses AND logic with the source address(es) and the source MAC address(es) you specify.  So when you add the subnet, you're saying IF the source IP matches AND the source MAC address matches, then this is applicable. 

     

    It's not opening it up to the entire subnet....that would only happen if you REMOVED the MAC address(es) from the source definition in the policy. 

     

    Feel free to test it out and prove it for yourself (try using a different MAC address to match that policy).

    lobstercreed
    New Member
    September 10, 2020

    Oh, and in 6.2 and later, devices (i.e. MAC addresses) aren't a thing.  They become address objects of a special type and can be used by themselves in a policy (what you were trying to do) where they would apply to ANY source IP address that matches that MAC address.

     

    This was a HUGE pain in the butt for me when we moved from 6.0.9 to 6.2.x (and ultimately 6.4.x).  I was using a ton of MAC address policies and had to rewrite the logic for them because suddenly my source IP and source MAC addresses were now using OR logic and traffic would match on either one.  I had to go in and remove the IP address objects from all my MAC address policies.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!