This YANG module provides a Netgate-defined data-model for Netbsd Packet Filters.
Copyright 2024 Rubicon Communications, LLC.
VPP Packet Filter (VPF) data needed to support VPP. It consists of a set of named tables containing IP prefixes, a set of named filtering rules, and a set of named NAT rules.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-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)) }
{- "netgate-vpf:vpf-config": {
- "netgate-vpf:options": {
- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}, - "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}, - "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
}, - "netgate-vpf:ipfix": {
- "netgate-vpf:src-port": 4739,
- "netgate-vpf:enable": "string",
- "netgate-vpf:domain": 1
}, - "netgate-vpf:nat-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
]
}, - "netgate-vpf:prefix-tables": {
- "netgate-vpf:table": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
]
}, - "netgate-vpf:filter-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
]
}, - "netgate-vpf:enable": "string"
}
}
VPP Packet Filter (VPF) data needed to support VPP. It consists of a set of named tables containing IP prefixes, a set of named filtering rules, and a set of named NAT rules.
netgate.vpf.VpfConfig to be added to list
object (netgate.vpf.vpfconfig.Options) VPF interface configuration and enablement options. | |
object (netgate.vpf.vpfconfig.Ipfix) IPFIX exporting options. | |
object (netgate.vpf.vpfconfig.NatRulesets) A list of VPF NAT rulesets. | |
object (netgate.vpf.vpfconfig.PrefixTables) Tables of named IP prefix lists. | |
object (netgate.vpf.vpfconfig.FilterRulesets) A list of named VPF filter rulesets. | |
netgate-vpf:enable | string If present, the feature is enabled. |
{- "netgate-vpf:options": {
- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}, - "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}, - "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
}, - "netgate-vpf:ipfix": {
- "netgate-vpf:src-port": 4739,
- "netgate-vpf:enable": "string",
- "netgate-vpf:domain": 1
}, - "netgate-vpf:nat-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
]
}, - "netgate-vpf:prefix-tables": {
- "netgate-vpf:table": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
]
}, - "netgate-vpf:filter-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
]
}, - "netgate-vpf:enable": "string"
}
VPP Packet Filter (VPF) data needed to support VPP. It consists of a set of named tables containing IP prefixes, a set of named filtering rules, and a set of named NAT rules.
netgate.vpf.VpfConfig to be added or updated
object (netgate.vpf.VpfConfig) VPP Packet Filter (VPF) data needed to support VPP. It consists of a set of named tables containing IP prefixes, a set of named filtering rules, and a set of named NAT rules. |
{- "netgate-vpf:vpf-config": {
- "netgate-vpf:options": {
- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}, - "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}, - "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
}, - "netgate-vpf:ipfix": {
- "netgate-vpf:src-port": 4739,
- "netgate-vpf:enable": "string",
- "netgate-vpf:domain": 1
}, - "netgate-vpf:nat-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
]
}, - "netgate-vpf:prefix-tables": {
- "netgate-vpf:table": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
]
}, - "netgate-vpf:filter-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
]
}, - "netgate-vpf:enable": "string"
}
}
VPP Packet Filter (VPF) data needed to support VPP. It consists of a set of named tables containing IP prefixes, a set of named filtering rules, and a set of named NAT rules.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets" 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)) }
{- "netgate-vpf:filter-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
]
}
}
A list of named VPF filter rulesets.
netgate.vpf.vpfconfig.FilterRulesets to be added to list
Array of objects (netgate.vpf.vpfconfig.filterrulesets.Ruleset) |
{- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
]
}
A list of named VPF filter rulesets.
netgate.vpf.vpfconfig.FilterRulesets to be added or updated
object (netgate.vpf.vpfconfig.FilterRulesets) A list of named VPF filter rulesets. |
{- "netgate-vpf:filter-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets" 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.vpf.vpfconfig.filterrulesets.Ruleset
netgate.vpf.vpfconfig.filterrulesets.Ruleset to be added to list
netgate-vpf:name | string The name of the filter ruleset. |
netgate-vpf:description | string A user description of the VPF filter ruleset. |
object (netgate.vpf.vpfconfig.filterrulesets.ruleset.Rules) A list of filter rules within a ruleset ordered by sequence number. |
{- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
returns netgate.vpf.vpfconfig.filterrulesets.Ruleset
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%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)) }
{- "netgate-vpf:ruleset": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
}
creates or updates netgate.vpf.vpfconfig.filterrulesets.Ruleset
name required | string Id of ruleset |
netgate.vpf.vpfconfig.filterrulesets.Ruleset to be added or updated
object (netgate.vpf.vpfconfig.filterrulesets.Ruleset) |
{- "netgate-vpf:ruleset": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
}
removes netgate.vpf.vpfconfig.filterrulesets.Ruleset
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%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)) }
A list of filter rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules" 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)) }
{- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
A list of filter rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
netgate.vpf.vpfconfig.filterrulesets.ruleset.Rules to be added to list
Array of objects (netgate.vpf.vpfconfig.filterrulesets.ruleset.rules.Rule) |
{- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
A list of filter rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
netgate.vpf.vpfconfig.filterrulesets.ruleset.Rules to be added or updated
object (netgate.vpf.vpfconfig.filterrulesets.ruleset.Rules) A list of filter rules within a ruleset ordered by sequence number. |
{- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
A list of filter rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules" 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.vpf.vpfconfig.filterrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
netgate.vpf.vpfconfig.filterrulesets.ruleset.rules.Rule to be added to list
object (netgate.vpf.VpfMatchConfig) The packet attributes to match in an VPF rule. | |
netgate-vpf:sequence | integer <int64> The VPF filter rule sequence number. |
netgate-vpf:return-rst | boolean Return a TCP reset on match. |
netgate-vpf:pass | boolean If true, the packet is passed, else blocked. |
netgate-vpf:return-icmp | boolean Return an ICMP error on match (Destination Unreachable/Administratively Prohibited). |
netgate-vpf:description | string A user description of the VPF filter rule. |
netgate-vpf:tentative | boolean If this rule is matched, ruleset examination continues and this rule is applied only if there is no other rule to apply. If there is one, then this rule’s match is ignored and the other rule takes preference. |
netgate-vpf:ip-version | string (netgate.common.IpAddressFamily) Enum: "ipv4" "ipv6" |
netgate-vpf:stateful | boolean Create a stateful connection entry upon match. |
netgate-vpf:direction | string (netgate.vpf.Direction) Enum: "in" "out" "both" |
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
returns netgate.vpf.vpfconfig.filterrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%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)) }
{- "netgate-vpf:rule": {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
}
creates or updates netgate.vpf.vpfconfig.filterrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.vpfconfig.filterrulesets.ruleset.rules.Rule to be added or updated
object (netgate.vpf.vpfconfig.filterrulesets.ruleset.rules.Rule) |
{- "netgate-vpf:rule": {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
}
removes netgate.vpf.vpfconfig.filterrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%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.vpf.VpfMatchConfig
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter" 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)) }
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}
}
creates netgate.vpf.VpfMatchConfig
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfMatchConfig to be added to list
object (netgate.vpf.VpfMatchConfig) The packet attributes to match in an VPF rule. |
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}
}
creates or updates netgate.vpf.VpfMatchConfig
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfMatchConfig to be added or updated
object (netgate.vpf.VpfMatchConfig) The packet attributes to match in an VPF rule. |
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}
}
removes netgate.vpf.VpfMatchConfig
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter" 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)) }
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter/from" 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)) }
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfEndpoint to be added to list
object (netgate.vpf.VpfEndpoint) VPF source or destination endpoint |
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfEndpoint to be added or updated
object (netgate.vpf.VpfEndpoint) VPF source or destination endpoint |
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter/from" 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)) }
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter/to" 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)) }
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfEndpoint to be added to list
object (netgate.vpf.VpfEndpoint) VPF source or destination endpoint |
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfEndpoint to be added or updated
object (netgate.vpf.VpfEndpoint) VPF source or destination endpoint |
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter/to" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/ipfix" 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)) }
{- "netgate-vpf:ipfix": {
- "netgate-vpf:src-port": 4739,
- "netgate-vpf:enable": "string",
- "netgate-vpf:domain": 1
}
}
IPFIX exporting options.
netgate.vpf.vpfconfig.Ipfix to be added to list
netgate-vpf:src-port | integer <int32> Default: 4739 Source port number. |
netgate-vpf:enable | string If present, IPFIX exporting is enabled. |
netgate-vpf:domain | integer <int64> Default: 1 Domain ID. |
{- "netgate-vpf:src-port": 4739,
- "netgate-vpf:enable": "string",
- "netgate-vpf:domain": 1
}
IPFIX exporting options.
netgate.vpf.vpfconfig.Ipfix to be added or updated
object (netgate.vpf.vpfconfig.Ipfix) IPFIX exporting options. |
{- "netgate-vpf:ipfix": {
- "netgate-vpf:src-port": 4739,
- "netgate-vpf:enable": "string",
- "netgate-vpf:domain": 1
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/ipfix" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets" 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)) }
{- "netgate-vpf:nat-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
]
}
}
A list of VPF NAT rulesets.
netgate.vpf.vpfconfig.NatRulesets to be added to list
Array of objects (netgate.vpf.vpfconfig.natrulesets.Ruleset) |
{- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
]
}
A list of VPF NAT rulesets.
netgate.vpf.vpfconfig.NatRulesets to be added or updated
object (netgate.vpf.vpfconfig.NatRulesets) A list of VPF NAT rulesets. |
{- "netgate-vpf:nat-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets" 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.vpf.vpfconfig.natrulesets.Ruleset
netgate.vpf.vpfconfig.natrulesets.Ruleset to be added to list
netgate-vpf:name | string The name of the NAT ruleset. |
netgate-vpf:description | string A user description of the VPF NAT ruleset. |
object (netgate.vpf.vpfconfig.natrulesets.ruleset.Rules) A list of NAT rules within a ruleset ordered by sequence number. |
{- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
returns netgate.vpf.vpfconfig.natrulesets.Ruleset
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%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)) }
{- "netgate-vpf:ruleset": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
}
creates or updates netgate.vpf.vpfconfig.natrulesets.Ruleset
name required | string Id of ruleset |
netgate.vpf.vpfconfig.natrulesets.Ruleset to be added or updated
object (netgate.vpf.vpfconfig.natrulesets.Ruleset) |
{- "netgate-vpf:ruleset": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
}
removes netgate.vpf.vpfconfig.natrulesets.Ruleset
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%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)) }
A list of NAT rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules" 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)) }
{- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
A list of NAT rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
netgate.vpf.vpfconfig.natrulesets.ruleset.Rules to be added to list
Array of objects (netgate.vpf.vpfconfig.natrulesets.ruleset.rules.Rule) |
{- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
A list of NAT rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
netgate.vpf.vpfconfig.natrulesets.ruleset.Rules to be added or updated
object (netgate.vpf.vpfconfig.natrulesets.ruleset.Rules) A list of NAT rules within a ruleset ordered by sequence number. |
{- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
A list of NAT rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules" 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.vpf.vpfconfig.natrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
netgate.vpf.vpfconfig.natrulesets.ruleset.rules.Rule to be added to list
netgate-vpf:sequence | integer <int64> The VPF NAT rule sequence number. |
object (netgate.vpf.vpfconfig.natrulesets.ruleset.rules.rule.Translation) NAT translation information. | |
object (netgate.vpf.VpfMatchConfig) The packet attributes to match in an VPF rule. | |
netgate-vpf:description | string A user description of the VPF NAT rule. |
netgate-vpf:dynamic | boolean Dynamic mapping. |
netgate-vpf:dest-route-table | string Name of destination VRF for 'in' NAT rule. |
netgate-vpf:no-port-translation | boolean No port translation. |
netgate-vpf:direction | string (netgate.vpf.VpfNatDirection) Enum: "in" "out" |
netgate-vpf:algorithm | string (netgate.vpf.Algorithm) Enum: "one-to-one" "netmap" "ip-hash" "round-robin" "npt66" |
{- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
returns netgate.vpf.vpfconfig.natrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%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)) }
{- "netgate-vpf:rule": {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
}
creates or updates netgate.vpf.vpfconfig.natrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.vpfconfig.natrulesets.ruleset.rules.Rule to be added or updated
object (netgate.vpf.vpfconfig.natrulesets.ruleset.rules.Rule) |
{- "netgate-vpf:rule": {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
}
removes netgate.vpf.vpfconfig.natrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%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.vpf.VpfMatchConfig
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/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)) }
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}
}
creates netgate.vpf.VpfMatchConfig
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfMatchConfig to be added to list
object (netgate.vpf.VpfMatchConfig) The packet attributes to match in an VPF rule. |
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}
}
creates or updates netgate.vpf.VpfMatchConfig
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfMatchConfig to be added or updated
object (netgate.vpf.VpfMatchConfig) The packet attributes to match in an VPF rule. |
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}
}
removes netgate.vpf.VpfMatchConfig
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/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)) }
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/match/from" 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)) }
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfEndpoint to be added to list
object (netgate.vpf.VpfEndpoint) VPF source or destination endpoint |
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfEndpoint to be added or updated
object (netgate.vpf.VpfEndpoint) VPF source or destination endpoint |
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/match/from" 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)) }
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/match/to" 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)) }
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfEndpoint to be added to list
object (netgate.vpf.VpfEndpoint) VPF source or destination endpoint |
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.VpfEndpoint to be added or updated
object (netgate.vpf.VpfEndpoint) VPF source or destination endpoint |
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/match/to" 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)) }
NAT translation information.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/translation" 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)) }
{- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}
}
NAT translation information.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.vpfconfig.natrulesets.ruleset.rules.rule.Translation to be added to list
netgate-vpf:if-name | string Use IF addresses for translation. |
netgate-vpf:table-name | string Translation table name. |
netgate-vpf:port | integer <int32> Port to use for translation. 0 means no port. |
netgate-vpf:prefix | string Translation prefix. |
{- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}
NAT translation information.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
netgate.vpf.vpfconfig.natrulesets.ruleset.rules.rule.Translation to be added or updated
object (netgate.vpf.vpfconfig.natrulesets.ruleset.rules.rule.Translation) NAT translation information. |
{- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}
}
NAT translation information.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/translation" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options" 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)) }
{- "netgate-vpf:options": {
- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}, - "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}, - "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
}
}
VPF interface configuration and enablement options.
netgate.vpf.vpfconfig.Options to be added to list
object (netgate.vpf.vpfconfig.options.Runtime) Runtime options. | |
object (netgate.vpf.vpfconfig.options.Interfaces) The names of filtering and NAT rulesets applied to interfaces. | |
object (netgate.vpf.vpfconfig.options.Startup) Startup options. |
{- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}, - "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}, - "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
}
VPF interface configuration and enablement options.
netgate.vpf.vpfconfig.Options to be added or updated
object (netgate.vpf.vpfconfig.Options) VPF interface configuration and enablement options. |
{- "netgate-vpf:options": {
- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}, - "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}, - "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options" 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)) }
The names of filtering and NAT rulesets applied to interfaces.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/interfaces" 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)) }
{- "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}
}
The names of filtering and NAT rulesets applied to interfaces.
netgate.vpf.vpfconfig.options.Interfaces to be added to list
Array of objects (netgate.vpf.vpfconfig.options.interfaces.Interface) |
{- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}
The names of filtering and NAT rulesets applied to interfaces.
netgate.vpf.vpfconfig.options.Interfaces to be added or updated
object (netgate.vpf.vpfconfig.options.Interfaces) The names of filtering and NAT rulesets applied to interfaces. |
{- "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}
}
The names of filtering and NAT rulesets applied to interfaces.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/interfaces" 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.vpf.vpfconfig.options.interfaces.Interface
netgate.vpf.vpfconfig.options.interfaces.Interface to be added to list
netgate-vpf:nat-ruleset | string The name of the NAT ruleset on this interface. |
netgate-vpf:filter-ruleset | string The name of the filter ruleset on this interface. |
netgate-vpf:if-name | string The name of an interface. |
{- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
returns netgate.vpf.vpfconfig.options.interfaces.Interface
if-name required | string Id of interface |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/interfaces/interface=%7Bif-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)) }
{- "netgate-vpf:interface": {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
}
creates or updates netgate.vpf.vpfconfig.options.interfaces.Interface
if-name required | string Id of interface |
netgate.vpf.vpfconfig.options.interfaces.Interface to be added or updated
object (netgate.vpf.vpfconfig.options.interfaces.Interface) |
{- "netgate-vpf:interface": {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
}
removes netgate.vpf.vpfconfig.options.interfaces.Interface
if-name required | string Id of interface |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/interfaces/interface=%7Bif-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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime" 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)) }
{- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}
}
Runtime options.
netgate.vpf.vpfconfig.options.Runtime to be added to list
object (netgate.vpf.vpfconfig.options.runtime.Tcp) TCP. | |
object (netgate.vpf.vpfconfig.options.runtime.DropOptions) Drop packets having IP options. | |
object (netgate.vpf.vpfconfig.options.runtime.Timeouts) Timeouts. |
{- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}
Runtime options.
netgate.vpf.vpfconfig.options.Runtime to be added or updated
object (netgate.vpf.vpfconfig.options.Runtime) Runtime options. |
{- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/drop-options" 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)) }
{- "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}
}
Drop packets having IP options.
netgate.vpf.vpfconfig.options.runtime.DropOptions to be added to list
netgate-vpf:ip4 | boolean Default: false Drop IPv4 packets having IP options. |
netgate-vpf:ip6 | boolean Default: false Drop IPv6 packets having IP options. |
{- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}
Drop packets having IP options.
netgate.vpf.vpfconfig.options.runtime.DropOptions to be added or updated
object (netgate.vpf.vpfconfig.options.runtime.DropOptions) Drop packets having IP options. |
{- "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": false,
- "netgate-vpf:ip6": false
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/drop-options" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/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)) }
{- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}
}
TCP.
netgate.vpf.vpfconfig.options.runtime.Tcp to be added to list
netgate-vpf:strict-rst-order | boolean Default: true Enforce strict TCP RST order. |
netgate-vpf:max-ack-win | integer <int64> Default: 66000 Maximum TCP ACK window. |
{- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}
TCP.
netgate.vpf.vpfconfig.options.runtime.Tcp to be added or updated
object (netgate.vpf.vpfconfig.options.runtime.Tcp) TCP. |
{- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 66000
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/timeouts" 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)) }
{- "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}
Timeouts.
netgate.vpf.vpfconfig.options.runtime.Timeouts to be added to list
object (netgate.vpf.vpfconfig.options.runtime.timeouts.Tcp) TCP timeouts. | |
object (netgate.vpf.vpfconfig.options.runtime.timeouts.Generic) Generic timeouts. |
{- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
Timeouts.
netgate.vpf.vpfconfig.options.runtime.Timeouts to be added or updated
object (netgate.vpf.vpfconfig.options.runtime.Timeouts) Timeouts. |
{- "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/timeouts" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/timeouts/generic" 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)) }
{- "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
Generic timeouts.
netgate.vpf.vpfconfig.options.runtime.timeouts.Generic to be added to list
netgate-vpf:established | integer <int64> Default: 60 Established state. |
netgate-vpf:new | integer <int64> Default: 30 New state. |
netgate-vpf:closed | integer <int64> Default: 0 Closed state. |
{- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
Generic timeouts.
netgate.vpf.vpfconfig.options.runtime.timeouts.Generic to be added or updated
object (netgate.vpf.vpfconfig.options.runtime.timeouts.Generic) Generic timeouts. |
{- "netgate-vpf:generic": {
- "netgate-vpf:established": 60,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 0
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/timeouts/generic" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/timeouts/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)) }
{- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}
}
TCP timeouts.
netgate.vpf.vpfconfig.options.runtime.timeouts.Tcp to be added to list
netgate-vpf:established | integer <int64> Default: 86400 Established state. |
netgate-vpf:new | integer <int64> Default: 30 New state. |
netgate-vpf:closed | integer <int64> Default: 10 Closed state. |
netgate-vpf:time-wait | integer <int64> Default: 240 Time-wait state. |
netgate-vpf:half-closed | integer <int64> Default: 21600 Half-closed state. |
{- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}
TCP timeouts.
netgate.vpf.vpfconfig.options.runtime.timeouts.Tcp to be added or updated
object (netgate.vpf.vpfconfig.options.runtime.timeouts.Tcp) TCP timeouts. |
{- "netgate-vpf:tcp": {
- "netgate-vpf:established": 86400,
- "netgate-vpf:new": 30,
- "netgate-vpf:closed": 10,
- "netgate-vpf:time-wait": 240,
- "netgate-vpf:half-closed": 21600
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/runtime/timeouts/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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/startup" 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)) }
{- "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
}
Startup options.
netgate.vpf.vpfconfig.options.Startup to be added to list
object (netgate.vpf.vpfconfig.options.startup.MaxConnectionsPerThread) Maximum connections per thread. | |
object (netgate.vpf.vpfconfig.options.startup.PortMapping) Port mapping. |
{- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
Startup options.
netgate.vpf.vpfconfig.options.Startup to be added or updated
object (netgate.vpf.vpfconfig.options.Startup) Startup options. |
{- "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/startup" 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)) }
Maximum connections per thread.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/startup/max-connections-per-thread" 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)) }
{- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}
}
Maximum connections per thread.
netgate.vpf.vpfconfig.options.startup.MaxConnectionsPerThread to be added to list
netgate-vpf:ip4 | integer <int64> Default: 131072 Maximum IPv4 connections per thread. |
netgate-vpf:ip6 | integer <int64> Default: 32768 Maximum IPv6 connections per thread. |
{- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}
Maximum connections per thread.
netgate.vpf.vpfconfig.options.startup.MaxConnectionsPerThread to be added or updated
object (netgate.vpf.vpfconfig.options.startup.MaxConnectionsPerThread) Maximum connections per thread. |
{- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 131072,
- "netgate-vpf:ip6": 32768
}
}
Maximum connections per thread.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/startup/max-connections-per-thread" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/startup/port-mapping" 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)) }
{- "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
Port mapping.
netgate.vpf.vpfconfig.options.startup.PortMapping to be added to list
netgate-vpf:max-port | integer <int32> Default: 49151 Highest port used for port mapping. |
netgate-vpf:min-port | integer <int32> Default: 1024 Lowest port used for port mapping. |
{- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
Port mapping.
netgate.vpf.vpfconfig.options.startup.PortMapping to be added or updated
object (netgate.vpf.vpfconfig.options.startup.PortMapping) Port mapping. |
{- "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 49151,
- "netgate-vpf:min-port": 1024
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/options/startup/port-mapping" 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)) }
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/prefix-tables" 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)) }
{- "netgate-vpf:prefix-tables": {
- "netgate-vpf:table": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
]
}
}
Tables of named IP prefix lists.
netgate.vpf.vpfconfig.PrefixTables to be added to list
Array of objects (netgate.vpf.vpfconfig.prefixtables.Table) |
{- "netgate-vpf:table": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
]
}
Tables of named IP prefix lists.
netgate.vpf.vpfconfig.PrefixTables to be added or updated
object (netgate.vpf.vpfconfig.PrefixTables) Tables of named IP prefix lists. |
{- "netgate-vpf:prefix-tables": {
- "netgate-vpf:table": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/prefix-tables" 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.vpf.vpfconfig.prefixtables.Table
netgate.vpf.vpfconfig.prefixtables.Table to be added to list
netgate-vpf:name | string The name of an IP prefix table. |
netgate-vpf:description | string A text description of the VPF prefix table. |
object (netgate.vpf.vpfconfig.prefixtables.table.Prefixes) Each table is a named set of IP prefixes. |
{- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
returns netgate.vpf.vpfconfig.prefixtables.Table
name required | string Id of table |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/prefix-tables/table=%7Bname%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)) }
{- "netgate-vpf:table": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
}
creates or updates netgate.vpf.vpfconfig.prefixtables.Table
name required | string Id of table |
netgate.vpf.vpfconfig.prefixtables.Table to be added or updated
object (netgate.vpf.vpfconfig.prefixtables.Table) |
{- "netgate-vpf:table": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
}
removes netgate.vpf.vpfconfig.prefixtables.Table
name required | string Id of table |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/prefix-tables/table=%7Bname%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)) }
Each table is a named set of IP prefixes.
name required | string Id of table |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/prefix-tables/table=%7Bname%7D/prefixes" 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)) }
{- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
Each table is a named set of IP prefixes.
name required | string Id of table |
netgate.vpf.vpfconfig.prefixtables.table.Prefixes to be added to list
netgate-vpf:prefix | Array of strings Either an IPv4 or IPv6 prefix. |
{- "netgate-vpf:prefix": [
- "string"
]
}
Each table is a named set of IP prefixes.
name required | string Id of table |
netgate.vpf.vpfconfig.prefixtables.table.Prefixes to be added or updated
object (netgate.vpf.vpfconfig.prefixtables.table.Prefixes) Each table is a named set of IP prefixes. |
{- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}
Each table is a named set of IP prefixes.
name required | string Id of table |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-config/prefix-tables/table=%7Bname%7D/prefixes" 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)) }
Netbsd Packet Filter (VPF) state data. It consists of a set of named tables containing IP prefixes, a set of named filtering rules, a set of named NAT rules, and params.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-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)) }
{- "netgate-vpf:vpf-state": {
- "netgate-vpf:options": {
- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 0
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": true,
- "netgate-vpf:ip6": true
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0,
- "netgate-vpf:time-wait": 0,
- "netgate-vpf:half-closed": 0
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0
}
}
}, - "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}, - "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 0,
- "netgate-vpf:ip6": 0
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 0,
- "netgate-vpf:min-port": 0
}
}
}, - "netgate-vpf:ipfix": {
- "netgate-vpf:src-port": 0,
- "netgate-vpf:enable": true,
- "netgate-vpf:domain": 0
}, - "netgate-vpf:nat-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
]
}, - "netgate-vpf:prefix-tables": {
- "netgate-vpf:table": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}, - "netgate-vpf:hash-buckets": {
- "netgate-vpf:ip4": 0,
- "netgate-vpf:ip6": 0
}
}
]
}, - "netgate-vpf:filter-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": null,
- "netgate-vpf:if-name": null,
- "netgate-vpf:table-name": null,
- "netgate-vpf:inverted": null,
- "netgate-vpf:port-min": null,
- "netgate-vpf:ipv6-prefix": null,
- "netgate-vpf:ipv4-prefix": null
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
]
}, - "netgate-vpf:enable": true
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/filter-rulesets" 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)) }
{- "netgate-vpf:filter-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
]
}
}
returns netgate.vpf.vpfstate.filterrulesets.Ruleset
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/filter-rulesets/ruleset=%7Bname%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)) }
{- "netgate-vpf:ruleset": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
}
A list of filter rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/filter-rulesets/ruleset=%7Bname%7D/rules" 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)) }
{- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
]
}
}
returns netgate.vpf.vpfstate.filterrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%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)) }
{- "netgate-vpf:rule": {
- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:sequence": 0,
- "netgate-vpf:return-rst": true,
- "netgate-vpf:pass": true,
- "netgate-vpf:return-icmp": true,
- "netgate-vpf:description": "string",
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:tentative": true,
- "netgate-vpf:ip-version": "ipv4",
- "netgate-vpf:stateful": true,
- "netgate-vpf:direction": "in"
}
}
returns netgate.vpf.VpfMatchState
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter" 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)) }
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}
}
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter/from" 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)) }
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/filter-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/filter/to" 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)) }
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/ipfix" 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)) }
{- "netgate-vpf:ipfix": {
- "netgate-vpf:src-port": 0,
- "netgate-vpf:enable": true,
- "netgate-vpf:domain": 0
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/nat-rulesets" 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)) }
{- "netgate-vpf:nat-rulesets": {
- "netgate-vpf:ruleset": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
]
}
}
returns netgate.vpf.vpfstate.natrulesets.Ruleset
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/nat-rulesets/ruleset=%7Bname%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)) }
{- "netgate-vpf:ruleset": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
}
A list of NAT rules within a ruleset ordered by sequence number.
name required | string Id of ruleset |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/nat-rulesets/ruleset=%7Bname%7D/rules" 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)) }
{- "netgate-vpf:rules": {
- "netgate-vpf:rule": [
- {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
]
}
}
returns netgate.vpf.vpfstate.natrulesets.ruleset.rules.Rule
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%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)) }
{- "netgate-vpf:rule": {
- "netgate-vpf:sequence": 0,
- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}, - "netgate-vpf:match": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}, - "netgate-vpf:description": "string",
- "netgate-vpf:dynamic": true,
- "netgate-vpf:dest-route-table": "string",
- "netgate-vpf:no-port-translation": true,
- "netgate-vpf:direction": "in",
- "netgate-vpf:algorithm": "one-to-one"
}
}
returns netgate.vpf.VpfMatchState
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/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)) }
{- "netgate-vpf:filter": {
- "netgate-vpf:icmp-type": 0,
- "netgate-vpf:tcp-flags-mask": "string",
- "netgate-vpf:icmp-code": 0,
- "netgate-vpf:protocol-set": "string",
- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:to": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}, - "netgate-vpf:tcp-flags-value": "string",
- "dest-route-table": "string"
}
}
The source pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/match/from" 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)) }
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
The destination pattern to match in an VPF rule.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/match/to" 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)) }
{- "netgate-vpf:from": {
- "netgate-vpf:port-max": 0,
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:inverted": true,
- "netgate-vpf:port-min": 0,
- "netgate-vpf:ipv6-prefix": "string",
- "netgate-vpf:ipv4-prefix": "string"
}
}
NAT translation information.
name required | string Id of ruleset |
sequence required | integer <int64> Id of rule |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/nat-rulesets/ruleset=%7Bname%7D/rules/rule=%7Bsequence%7D/translation" 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)) }
{- "netgate-vpf:translation": {
- "netgate-vpf:if-name": "string",
- "netgate-vpf:table-name": "string",
- "netgate-vpf:port": 0,
- "netgate-vpf:prefix": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options" 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)) }
{- "netgate-vpf:options": {
- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 0
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": true,
- "netgate-vpf:ip6": true
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0,
- "netgate-vpf:time-wait": 0,
- "netgate-vpf:half-closed": 0
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0
}
}
}, - "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}, - "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 0,
- "netgate-vpf:ip6": 0
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 0,
- "netgate-vpf:min-port": 0
}
}
}
}
The names of filtering and NAT rulesets applied to interfaces.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/interfaces" 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)) }
{- "netgate-vpf:interfaces": {
- "netgate-vpf:interface": [
- {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
]
}
}
returns netgate.vpf.vpfstate.options.interfaces.Interface
if-name required | string Id of interface |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/interfaces/interface=%7Bif-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)) }
{- "netgate-vpf:interface": {
- "netgate-vpf:nat-ruleset": "string",
- "netgate-vpf:filter-ruleset": "string",
- "netgate-vpf:if-name": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/runtime" 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)) }
{- "netgate-vpf:runtime": {
- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 0
}, - "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": true,
- "netgate-vpf:ip6": true
}, - "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0,
- "netgate-vpf:time-wait": 0,
- "netgate-vpf:half-closed": 0
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0
}
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/runtime/drop-options" 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)) }
{- "netgate-vpf:drop-options": {
- "netgate-vpf:ip4": true,
- "netgate-vpf:ip6": true
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/runtime/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)) }
{- "netgate-vpf:tcp": {
- "netgate-vpf:strict-rst-order": true,
- "netgate-vpf:max-ack-win": 0
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/runtime/timeouts" 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)) }
{- "netgate-vpf:timeouts": {
- "netgate-vpf:tcp": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0,
- "netgate-vpf:time-wait": 0,
- "netgate-vpf:half-closed": 0
}, - "netgate-vpf:generic": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0
}
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/runtime/timeouts/generic" 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)) }
{- "netgate-vpf:generic": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/runtime/timeouts/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)) }
{- "netgate-vpf:tcp": {
- "netgate-vpf:established": 0,
- "netgate-vpf:new": 0,
- "netgate-vpf:closed": 0,
- "netgate-vpf:time-wait": 0,
- "netgate-vpf:half-closed": 0
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/startup" 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)) }
{- "netgate-vpf:startup": {
- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 0,
- "netgate-vpf:ip6": 0
}, - "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 0,
- "netgate-vpf:min-port": 0
}
}
}
Maximum connections per thread.
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/startup/max-connections-per-thread" 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)) }
{- "netgate-vpf:max-connections-per-thread": {
- "netgate-vpf:ip4": 0,
- "netgate-vpf:ip6": 0
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/options/startup/port-mapping" 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)) }
{- "netgate-vpf:port-mapping": {
- "netgate-vpf:max-port": 0,
- "netgate-vpf:min-port": 0
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/prefix-tables" 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)) }
{- "netgate-vpf:prefix-tables": {
- "netgate-vpf:table": [
- {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}, - "netgate-vpf:hash-buckets": {
- "netgate-vpf:ip4": 0,
- "netgate-vpf:ip6": 0
}
}
]
}
}
returns netgate.vpf.vpfstate.prefixtables.Table
name required | string Id of table |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/prefix-tables/table=%7Bname%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)) }
{- "netgate-vpf:table": {
- "netgate-vpf:name": "string",
- "netgate-vpf:description": "string",
- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}, - "netgate-vpf:hash-buckets": {
- "netgate-vpf:ip4": 0,
- "netgate-vpf:ip6": 0
}
}
}
Hash buckets.
name required | string Id of table |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/prefix-tables/table=%7Bname%7D/hash-buckets" 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)) }
{- "netgate-vpf:hash-buckets": {
- "netgate-vpf:ip4": 0,
- "netgate-vpf:ip6": 0
}
}
Each table is a named set of IP prefixes.
name required | string Id of table |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-vpf:vpf-state/prefix-tables/table=%7Bname%7D/prefixes" 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)) }
{- "netgate-vpf:prefixes": {
- "netgate-vpf:prefix": [
- "string"
]
}
}