title: Policy in freeradius isnt running
body: <p>Im building a freeradius server for authenticate.
  I have a problem with <code>policy.conf</code>:
  The <code>policy.conf</code> was loaded in <code>radius.conf</code> as <code>$INCLUDE policy.conf</code> but the content of this file didn't work. </p>
  
  <p>I tested by login with 'test' user but it didn't reject. Can someone help me about this, thanks very much.</p>
  
  <pre><code>policy {
      #
      #   Forbid all EAP types.
      #
      if (User-Name == 'test'){
              reject
      }
  
      forbid_eap {
          if (EAP-Message) {
              reject
          }
      }
  
      #
      #   Forbid all non-EAP types outside of an EAP tunnel.
      #
      permit_only_eap {
          if (!EAP-Message) {
              #  We MAY be inside of a TTLS tunnel.
              #  PEAP and EAP-FAST require EAP inside of
              #  the tunnel, so this check is OK.
              #  If so, then there MUST be an outer EAP message.
              if (!"%{outer.request:EAP-Message}") {
                  reject
              }
          }
      }
  
      #
      #   Forbid all attempts to login via realms.
      #
      deny_realms {
          if (User-Name =~ /@|\\/) {
              reject
          }
      }
  }
  </code></pre>