Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    RESTCONF access denied when authentication set to none

    TNSR
    2
    3
    847
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dbeyzade
      last edited by

      Error received from remote GET request

      curl -X GET http://10.2.0.3/restconf/data/netgate-interface:interfaces-state

      {
      "ietf-restconf:errors" : {
        "error": {
          "error-type": "application",
          "error-tag": "access-denied",
          "error-severity": "error",
          "error-message": "default deny"
        }
      }
      
      }
      

      TNSR Config:

      <http-config xmlns="urn:ietf:params:xml:ns:yang:netgate-http">
         <restconf>
            <enable>true</enable>
         </restconf>
         <authentication>
            <auth-type>none</auth-type>
         </authentication>
      </http-config>
      
      
      kiokomanK 1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8 @dbeyzade
        last edited by kiokoman

        @dbeyzade
        you need to disable / configure nacm
        https://docs.netgate.com/tnsr/en/latest/nacm/basics.html

        [kiokoman@TNSR ~]$ curl -X GET http://192.168.10.2/restconf/data/netgate-interface:interfaces-state
        {
        "ietf-restconf:errors" : {
          "error": {
            "error-type": "application",
            "error-tag": "access-denied",
            "error-severity": "error",
            "error-message": "default deny"
          }
        }
        
        }
        
        TNSR.localdomain tnsr(config)# nacm disable
        
        [kiokoman@TNSR ~]$ curl -X GET http://192.168.10.2/restconf/data/netgate-interface:interfaces-state
        {
            "netgate-interface:interfaces-state": {
              "interface": [
                {
                  "name": "LAN",
                  "description": "Local Network",
                  "admin-status": "up",
                  "link-status": "up",
                  "link-speed": 1000000,
                  "link-duplex": "full",
                  "link-mtu": 9000,
                  "if-index": 2,
                  "mac-address": "00:0c:29:f1:63:59",
                  "nat-side": "inside",
                  "ipv4": {
                    "route-table-name": "ipv4-VRF:0",
                    "address": {
                      "ip": "172.15.1.1/24"
        ...................................................
        

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        D 1 Reply Last reply Reply Quote 2
        • D
          dbeyzade @kiokoman
          last edited by

          @kiokoman This did the trick, thank you very much :)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.