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

RESTCONF access denied when authentication set to none

Scheduled Pinned Locked Moved TNSR
3 Posts 2 Posters 849 Views
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 Jan 10, 2021, 5:43 PM

    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>
    
    
    K 1 Reply Last reply Jan 10, 2021, 6:31 PM Reply Quote 0
    • K
      kiokoman LAYER 8 @dbeyzade
      last edited by kiokoman Jan 10, 2021, 6:36 PM Jan 10, 2021, 6:31 PM

      @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 Jan 11, 2021, 8:59 AM Reply Quote 2
      • D
        dbeyzade @kiokoman
        last edited by Jan 11, 2021, 8:59 AM

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

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received