netgate-host-acl API (24.06)

This YANG module provides a data model for host ACL data.

Copyright 2019-2020 Rubicon Communications, LLC.

host-config

returns netgate.host.acl.HostConfig

Host configuration parameters.

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-config": {
    }
}

creates netgate.host.acl.HostConfig

Host configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.acl.HostConfig to be added to list

object (netgate.host.acl.hostconfig.Security)

Host security configuration parameters.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:security": {
    }
}

creates or updates netgate.host.acl.HostConfig

Host configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.acl.HostConfig to be added or updated

object (netgate.host.acl.HostConfig)

Host configuration parameters.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-config": {
    }
}

removes netgate.host.acl.HostConfig

Host configuration parameters.

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.Security

Host security configuration parameters.

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:security": {
    }
}

creates netgate.host.acl.hostconfig.Security

Host security configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.Security to be added to list

object (netgate.host.acl.hostconfig.security.HostAcls)

Host access lists (ACLs).

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-acls": {
    }
}

creates or updates netgate.host.acl.hostconfig.Security

Host security configuration parameters.

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.Security to be added or updated

object (netgate.host.acl.hostconfig.Security)

Host security configuration parameters.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:security": {
    }
}

removes netgate.host.acl.hostconfig.Security

Host security configuration parameters.

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.HostAcls

Host access lists (ACLs).

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-acls": {
    }
}

creates netgate.host.acl.hostconfig.security.HostAcls

Host access lists (ACLs).

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.HostAcls to be added to list

Array of objects (netgate.host.acl.hostconfig.security.hostacls.HostAcl)

The list of configured host ACLs.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-acl": [
    ]
}

creates or updates netgate.host.acl.hostconfig.security.HostAcls

Host access lists (ACLs).

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.HostAcls to be added or updated

object (netgate.host.acl.hostconfig.security.HostAcls)

Host access lists (ACLs).

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-acls": {
    }
}

removes netgate.host.acl.hostconfig.security.HostAcls

Host access lists (ACLs).

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

creates netgate.host.acl.hostconfig.security.hostacls.HostAcl

The list of configured host ACLs.

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.HostAcl to be added to list

netgate-host-acl:acl-seq
integer <int64>

The sequence number of the host ACL.

Array of objects (netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule)

The list of the host ACL rules.

netgate-host-acl:description
string

The description of the host ACL.

netgate-host-acl:acl-name
string

The name of the host ACL.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:acl-seq": 0,
  • "netgate-host-acl:acl-rule": [
    ],
  • "netgate-host-acl:description": "string",
  • "netgate-host-acl:acl-name": "string"
}

returns netgate.host.acl.hostconfig.security.hostacls.HostAcl

The list of configured host ACLs.

path Parameters
acl-name
required
string

Id of host-acl

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-acl": {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.HostAcl

The list of configured host ACLs.

path Parameters
acl-name
required
string

Id of host-acl

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.HostAcl to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.HostAcl)

The list of configured host ACLs.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-acl": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.HostAcl

The list of configured host ACLs.

path Parameters
acl-name
required
string

Id of host-acl

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule to be added to list

netgate-host-acl:rule-seq
integer <int64>

The sequence number of the rule.

netgate-host-acl:action
string (netgate.host.acl.HostAclAction)
Enum: "permit" "deny"
netgate-host-acl:description
string

The description of the rule.

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch)

The matching packets of the rule.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:rule-seq": 0,
  • "netgate-host-acl:action": "permit",
  • "netgate-host-acl:description": "string",
  • "netgate-host-acl:packet-match": {
    }
}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:acl-rule": {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule)

The list of the host ACL rules.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:acl-rule": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.AclRule

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:packet-match": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch to be added to list

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link)

Ethernet traffic match.

netgate-host-acl:input-if
string

The input interface name.

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip)

IP traffic match.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:link": {
    },
  • "netgate-host-acl:input-if": "string",
  • "netgate-host-acl:ip": {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch)

The matching packets of the rule.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:packet-match": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:ip": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip to be added to list

netgate-host-acl:destination
string

The destination IP prefix.

netgate-host-acl:protocol
string

The IP protocol.

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport)

Transport options.

netgate-host-acl:source
string

The source IP prefix.

netgate-host-acl:version
integer <int32>

IP version.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:destination": "string",
  • "netgate-host-acl:protocol": "string",
  • "netgate-host-acl:transport": {
    },
  • "netgate-host-acl:source": "string",
  • "netgate-host-acl:version": 0
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip)

IP traffic match.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:ip": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:transport": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport to be added to list

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp)

TCP options.

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort)

The source port range.

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp)

ICMP options.

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort)

The destination port range.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:tcp": {
    },
  • "netgate-host-acl:source-port": {
    },
  • "netgate-host-acl:icmp": {
    },
  • "netgate-host-acl:destination-port": {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport)

Transport options.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:transport": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/destination-port"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:destination-port": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort to be added to list

netgate-host-acl:last
integer <int32>

The last port number.

netgate-host-acl:first
integer <int32>

The first port number.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:last": 0,
  • "netgate-host-acl:first": 0
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort)

The destination port range.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:destination-port": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/destination-port"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/icmp"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:icmp": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp to be added to list

netgate-host-acl:icmp-type
string (netgate.host.acl.HostAclIcmpType)
Enum: "echo-reply" "destination-unreachable" "source-quench" "redirect" "echo-request" "time-exceeded" "parameter-problem" "timestamp-request" "timestamp-reply" "info-request" "info-reply" "address-mask-request" "address-mask-reply" "router-advertisement" "router-solicitation"
netgate-host-acl:icmpv6-type
string (netgate.host.acl.HostAclIcmpv6Type)
Enum: "destination-unreachable" "packet-too-big" "time-exceeded" "echo-request" "echo-reply" "mld-listener-query" "mld-listener-report" "mld-listener-reduction" "nd-router-solicit" "nd-router-advert" "nd-neighbor-solicit" "nd-neighbor-advert" "nd-redirect" "parameter-problem" "router-renumbering"
netgate-host-acl:code
integer <int32>

ICMP code.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:icmp-type": "echo-reply",
  • "netgate-host-acl:icmpv6-type": "destination-unreachable",
  • "netgate-host-acl:code": 0
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp)

ICMP options.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:icmp": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/icmp"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/source-port"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:source-port": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort to be added to list

netgate-host-acl:last
integer <int32>

The last port number.

netgate-host-acl:first
integer <int32>

The first port number.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:last": 0,
  • "netgate-host-acl:first": 0
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort)

The source port range.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:source-port": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/source-port"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:tcp": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp to be added to list

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags)

TCP flags.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:flags": {
    }
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp)

TCP options.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:tcp": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp/flags"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:flags": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags to be added to list

netgate-host-acl:rst
boolean

Reset.

netgate-host-acl:psh
boolean

Push.

netgate-host-acl:ece
boolean

ECN-Echo.

netgate-host-acl:ack
boolean

Acknowledgment.

netgate-host-acl:syn
boolean

Synchronize.

netgate-host-acl:fin
boolean

Finished.

netgate-host-acl:urg
boolean

Urgent.

netgate-host-acl:cwr
boolean

Congestion Window Reduced.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:rst": true,
  • "netgate-host-acl:psh": true,
  • "netgate-host-acl:ece": true,
  • "netgate-host-acl:ack": true,
  • "netgate-host-acl:syn": true,
  • "netgate-host-acl:fin": true,
  • "netgate-host-acl:urg": true,
  • "netgate-host-acl:cwr": true
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags)

TCP flags.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:flags": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp/flags"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

returns netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/link"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:link": {
    }
}

creates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link to be added to list

netgate-host-acl:destination
string

The destination MAC address.

netgate-host-acl:source
string

The source MAC address.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:destination": "string",
  • "netgate-host-acl:source": "string"
}

creates or updates netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Request Body schema: application/yang-data+json

netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link to be added or updated

object (netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link)

Ethernet traffic match.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:link": {
    }
}

removes netgate.host.acl.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-config/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/link"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

host-state

returns netgate.host.acl.HostState

Host state parameters.

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-state": {
    }
}

returns netgate.host.acl.hoststate.Security

Host security state parameters.

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:security": {
    }
}

returns netgate.host.acl.hoststate.security.HostAcls

Host access lists (ACLs).

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-acls": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.HostAcl

The list of configured host ACLs.

path Parameters
acl-name
required
string

Id of host-acl

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:host-acl": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.AclRule

The list of the host ACL rules.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:acl-rule": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.PacketMatch

The matching packets of the rule.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:packet-match": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.Ip

IP traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:ip": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport

Transport options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:transport": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort

The destination port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/destination-port"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:destination-port": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp

ICMP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/icmp"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:icmp": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort

The source port range.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/source-port"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:source-port": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp

TCP options.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:tcp": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags

TCP flags.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/ip/transport/tcp/flags"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:flags": {
    }
}

returns netgate.host.acl.hoststate.security.hostacls.hostacl.aclrule.packetmatch.Link

Ethernet traffic match.

path Parameters
acl-name
required
string

Id of host-acl

rule-seq
required
integer <int64>

Id of acl-rule

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-host-acl:host-state/security/host-acls/host-acl=%7Bacl-name%7D/acl-rule=%7Brule-seq%7D/packet-match/link"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-host-acl:link": {
    }
}