This YANG module provides a data model for host data.
Copyright 2019 Rubicon Communications, LLC.
Example URL
Host configuration parameters.
netgate.host.HostConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host: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)) }
Example URL
Host configuration parameters.
netgate.host.HostConfig to be added to list
security | object (netgate.host.hostconfig.Security) |
Object created
Internal error
Object already exists
Example URL
Host configuration parameters.
netgate.host.HostConfig to be added or updated
netgate-host:host-config | object (netgate.host.HostConfig) |
Object created
Object modified
Internal error
Example URL
Host configuration parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host: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)) }
Example URL
Host security configuration parameters.
netgate.host.hostconfig.Security
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host: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)) }
Example URL
Host security configuration parameters.
netgate.host.hostconfig.Security to be added to list
host-acls | object (netgate.host.hostconfig.security.HostAcls) |
Object created
Internal error
Object already exists
Example URL
Host security configuration parameters.
netgate.host.hostconfig.Security to be added or updated
netgate-host:security | object (netgate.host.hostconfig.Security) |
Object created
Object modified
Internal error
Example URL
Host security configuration parameters.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host: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)) }
Example URL
Host access lists (ACLs).
netgate.host.hostconfig.security.HostAcls
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host: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)) }
Example URL
Host access lists (ACLs).
netgate.host.hostconfig.security.HostAcls to be added to list
host-acl | Array of objects (netgate.host.hostconfig.security.hostacls.HostAcl) The list of configured host ACLs. |
Object created
Internal error
Object already exists
Example URL
Host access lists (ACLs).
netgate.host.hostconfig.security.HostAcls to be added or updated
netgate-host:host-acls | object (netgate.host.hostconfig.security.HostAcls) |
Object created
Object modified
Internal error
Example URL
Host access lists (ACLs).
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host: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)) }
Example URL
The list of configured host ACLs.
netgate.host.hostconfig.security.hostacls.HostAcl to be added to list
acl-seq | integer <int64> The sequence number of the host ACL. |
acl-rule | Array of objects (netgate.host.hostconfig.security.hostacls.hostacl.AclRule) The list of the host ACL rules. |
description | string The description of the host ACL. |
acl-name | string The name of the host ACL. |
Object created
Internal error
Object already exists
Example URL
The list of configured host ACLs.
acl-name required | string Id of host-acl |
netgate.host.hostconfig.security.hostacls.HostAcl
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host: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)) }
Example URL
The list of configured host ACLs.
acl-name required | string Id of host-acl |
netgate.host.hostconfig.security.hostacls.HostAcl to be added to list
acl-seq | integer <int64> The sequence number of the host ACL. |
acl-rule | Array of objects (netgate.host.hostconfig.security.hostacls.hostacl.AclRule) The list of the host ACL rules. |
description | string The description of the host ACL. |
acl-name | string The name of the host ACL. |
Object created
Internal error
Object already exists
Example URL
The list of configured host ACLs.
acl-name required | string Id of host-acl |
netgate.host.hostconfig.security.hostacls.HostAcl to be added or updated
netgate-host:host-acl | object (netgate.host.hostconfig.security.hostacls.HostAcl) |
Object created
Object modified
Internal error
Example URL
The list of configured host ACLs.
acl-name required | string Id of host-acl |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host: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)) }
Example URL
The list of the host ACL rules.
acl-name required | string Id of host-acl |
netgate.host.hostconfig.security.hostacls.hostacl.AclRule to be added to list
rule-seq | integer <int64> The sequence number of the rule. |
action | string (netgate.host.HostAclAction) Enum: "permit" "deny" |
description | string The description of the rule. |
packet-match | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch) |
Object created
Internal error
Object already exists
Example URL
The list of the host ACL rules.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.AclRule
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host: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)) }
Example URL
The list of the host ACL rules.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.AclRule to be added to list
rule-seq | integer <int64> The sequence number of the rule. |
action | string (netgate.host.HostAclAction) Enum: "permit" "deny" |
description | string The description of the rule. |
packet-match | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch) |
Object created
Internal error
Object already exists
Example URL
The list of the host ACL rules.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.AclRule to be added or updated
netgate-host:acl-rule | object (netgate.host.hostconfig.security.hostacls.hostacl.AclRule) |
Object created
Object modified
Internal error
Example URL
The list of the host ACL rules.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host: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)) }
Example URL
The matching packets of the rule.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host: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)) }
Example URL
The matching packets of the rule.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch to be added to list
link | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link) |
input-if | string The input interface name. |
ip | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip) |
Object created
Internal error
Object already exists
Example URL
The matching packets of the rule.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch to be added or updated
netgate-host:packet-match | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.PacketMatch) |
Object created
Object modified
Internal error
Example URL
The matching packets of the rule.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host: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)) }
Example URL
IP traffic match.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host: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)) }
Example URL
IP traffic match.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip to be added to list
destination | string The destination IP prefix. |
protocol | string (netgate.host.HostAclProtocol) Enum: "icmp" "tcp" "udp" |
transport | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport) |
source | string The source IP prefix. |
version | integer <int32> IP version. |
Object created
Internal error
Object already exists
Example URL
IP traffic match.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip to be added or updated
netgate-host:ip | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Ip) |
Object created
Object modified
Internal error
Example URL
IP traffic match.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host: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)) }
Example URL
Transport options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host: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)) }
Example URL
Transport options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport to be added to list
tcp | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp) |
source-port | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort) |
icmp | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp) |
destination-port | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort) |
Object created
Internal error
Object already exists
Example URL
Transport options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport to be added or updated
netgate-host:transport | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.Transport) |
Object created
Object modified
Internal error
Example URL
Transport options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host: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)) }
Example URL
The destination port range.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host: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)) }
Example URL
The destination port range.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort to be added to list
last | integer <int32> The last port number. |
first | integer <int32> The first port number. |
Object created
Internal error
Object already exists
Example URL
The destination port range.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort to be added or updated
netgate-host:destination-port | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.DestinationPort) |
Object created
Object modified
Internal error
Example URL
The destination port range.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host: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)) }
Example URL
ICMP options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host: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)) }
Example URL
ICMP options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp to be added to list
type | string (netgate.host.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" |
code | integer <int32> ICMP code. |
Object created
Internal error
Object already exists
Example URL
ICMP options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp to be added or updated
netgate-host:icmp | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Icmp) |
Object created
Object modified
Internal error
Example URL
ICMP options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host: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)) }
Example URL
The source port range.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host: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)) }
Example URL
The source port range.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort to be added to list
last | integer <int32> The last port number. |
first | integer <int32> The first port number. |
Object created
Internal error
Object already exists
Example URL
The source port range.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort to be added or updated
netgate-host:source-port | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.SourcePort) |
Object created
Object modified
Internal error
Example URL
The source port range.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host: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)) }
Example URL
TCP options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host: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)) }
Example URL
TCP options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp to be added to list
flags | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags) |
Object created
Internal error
Object already exists
Example URL
TCP options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp to be added or updated
netgate-host:tcp | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.Tcp) |
Object created
Object modified
Internal error
Example URL
TCP options.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host: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)) }
Example URL
TCP flags.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host:tcp/netgate-host: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)) }
Example URL
TCP flags.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags to be added to list
rst | boolean Reset. |
psh | boolean Push. |
ns | boolean Nonce Sum. |
ece | boolean ECN-Echo. |
ack | boolean Acknowledgment. |
syn | boolean Synchronize. |
fin | boolean Finished. |
urg | boolean Urgent. |
cwr | boolean Congestion Window Reduced. |
Object created
Internal error
Object already exists
Example URL
TCP flags.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags to be added or updated
netgate-host:flags | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.ip.transport.tcp.Flags) |
Object created
Object modified
Internal error
Example URL
TCP flags.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host:ip/netgate-host:transport/netgate-host:tcp/netgate-host: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)) }
Example URL
Ethernet traffic match.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host: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)) }
Example URL
Ethernet traffic match.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link to be added to list
destination | string The destination MAC address. |
source | string The source MAC address. |
Object created
Internal error
Object already exists
Example URL
Ethernet traffic match.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link to be added or updated
netgate-host:link | object (netgate.host.hostconfig.security.hostacls.hostacl.aclrule.packetmatch.Link) |
Object created
Object modified
Internal error
Example URL
Ethernet traffic match.
acl-name required | string Id of host-acl |
rule-seq required | integer <int64> Id of acl-rule |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-host:host-config/netgate-host:security/netgate-host:host-acls/netgate-host:host-acl=%7Bacl-name%7D/netgate-host:acl-rule=%7Brule-seq%7D/netgate-host:packet-match/netgate-host: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)) }