This YANG module provides a Netgate-defined data-model for Network Address Translation data.
Copyright 2017-2019 Rubicon Communications, LLC.
Example URL
Dual-Stack Lite (DS-Lite) configuration.
netgate.nat.DsliteConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dual-Stack Lite (DS-Lite) configuration.
netgate.nat.DsliteConfig to be added to list
b4 | object (netgate.nat.dsliteconfig.B4) |
dynamic | object (netgate.nat.dsliteconfig.Dynamic) |
aftr | object (netgate.nat.dsliteconfig.Aftr) |
Object created
Internal error
Object already exists
Example URL
Dual-Stack Lite (DS-Lite) configuration.
netgate.nat.DsliteConfig to be added or updated
netgate-nat:dslite-config | object (netgate.nat.DsliteConfig) |
Object created
Object modified
Internal error
Example URL
Dual-Stack Lite (DS-Lite) configuration.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Address Family Transition Router (AFTR) configuration.
netgate.nat.dsliteconfig.Aftr
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:aftr" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Address Family Transition Router (AFTR) configuration.
netgate.nat.dsliteconfig.Aftr to be added to list
endpoint | object (netgate.nat.dsliteconfig.aftr.Endpoint) |
Object created
Internal error
Object already exists
Example URL
Address Family Transition Router (AFTR) configuration.
netgate.nat.dsliteconfig.Aftr to be added or updated
netgate-nat:aftr | object (netgate.nat.dsliteconfig.Aftr) |
Object created
Object modified
Internal error
Example URL
Address Family Transition Router (AFTR) configuration.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:aftr" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An IPv6 tunnel endpoint.
netgate.nat.dsliteconfig.aftr.Endpoint
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:aftr/netgate-nat:endpoint" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An IPv6 tunnel endpoint.
netgate.nat.dsliteconfig.aftr.Endpoint to be added to list
ipv6-address | string The IPv6 address of the tunnel endpoint. |
Object created
Internal error
Object already exists
Example URL
An IPv6 tunnel endpoint.
netgate.nat.dsliteconfig.aftr.Endpoint to be added or updated
netgate-nat:endpoint | object (netgate.nat.dsliteconfig.aftr.Endpoint) |
Object created
Object modified
Internal error
Example URL
An IPv6 tunnel endpoint.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:aftr/netgate-nat:endpoint" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Basic Bridging BroadBand (B4) configuration.
netgate.nat.dsliteconfig.B4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:b4" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Basic Bridging BroadBand (B4) configuration.
netgate.nat.dsliteconfig.B4 to be added to list
endpoint | object (netgate.nat.dsliteconfig.b4.Endpoint) |
Object created
Internal error
Object already exists
Example URL
Basic Bridging BroadBand (B4) configuration.
netgate.nat.dsliteconfig.B4 to be added or updated
netgate-nat:b4 | object (netgate.nat.dsliteconfig.B4) |
Object created
Object modified
Internal error
Example URL
Basic Bridging BroadBand (B4) configuration.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:b4" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An IPv6 tunnel endpoint.
netgate.nat.dsliteconfig.b4.Endpoint
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:b4/netgate-nat:endpoint" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An IPv6 tunnel endpoint.
netgate.nat.dsliteconfig.b4.Endpoint to be added to list
ipv6-address | string The IPv6 address of the tunnel endpoint. |
Object created
Internal error
Object already exists
Example URL
An IPv6 tunnel endpoint.
netgate.nat.dsliteconfig.b4.Endpoint to be added or updated
netgate-nat:endpoint | object (netgate.nat.dsliteconfig.b4.Endpoint) |
Object created
Object modified
Internal error
Example URL
An IPv6 tunnel endpoint.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:b4/netgate-nat:endpoint" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dynamic mapping information.
netgate.nat.dsliteconfig.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:dynamic" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dynamic mapping information.
netgate.nat.dsliteconfig.Dynamic to be added to list
pool-table | object (netgate.nat.dsliteconfig.dynamic.PoolTable) |
Object created
Internal error
Object already exists
Example URL
Dynamic mapping information.
netgate.nat.dsliteconfig.Dynamic to be added or updated
netgate-nat:dynamic | object (netgate.nat.dsliteconfig.Dynamic) |
Object created
Object modified
Internal error
Example URL
Dynamic mapping information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:dynamic" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
DS-Lite address pool table.
netgate.nat.dsliteconfig.dynamic.PoolTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:dynamic/netgate-nat:pool-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
DS-Lite address pool table.
netgate.nat.dsliteconfig.dynamic.PoolTable to be added to list
pool-entry | Array of objects (netgate.nat.dsliteconfig.dynamic.pooltable.PoolEntry) DS-Lite address range entry. |
Object created
Internal error
Object already exists
Example URL
DS-Lite address pool table.
netgate.nat.dsliteconfig.dynamic.PoolTable to be added or updated
netgate-nat:pool-table | object (netgate.nat.dsliteconfig.dynamic.PoolTable) |
Object created
Object modified
Internal error
Example URL
DS-Lite address pool table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:dynamic/netgate-nat:pool-table" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
DS-Lite address range entry.
netgate.nat.dsliteconfig.dynamic.pooltable.PoolEntry to be added to list
first-address | string The first IPv4 address in the range. |
last-address | string The last IPv4 address in the range. |
Object created
Internal error
Object already exists
Example URL
DS-Lite address range entry.
first-address required | string Id of pool-entry |
netgate.nat.dsliteconfig.dynamic.pooltable.PoolEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:dynamic/netgate-nat:pool-table/netgate-nat:pool-entry=%7Bfirst-address%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
DS-Lite address range entry.
first-address required | string Id of pool-entry |
netgate.nat.dsliteconfig.dynamic.pooltable.PoolEntry to be added to list
first-address | string The first IPv4 address in the range. |
last-address | string The last IPv4 address in the range. |
Object created
Internal error
Object already exists
Example URL
DS-Lite address range entry.
first-address required | string Id of pool-entry |
netgate.nat.dsliteconfig.dynamic.pooltable.PoolEntry to be added or updated
netgate-nat:pool-entry | object (netgate.nat.dsliteconfig.dynamic.pooltable.PoolEntry) |
Object created
Object modified
Internal error
Example URL
DS-Lite address range entry.
first-address required | string Id of pool-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-config/netgate-nat:dynamic/netgate-nat:pool-table/netgate-nat:pool-entry=%7Bfirst-address%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dual-Stack Lite (DS-Lite) state.
netgate.nat.DsliteState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-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)) }
Example URL
Address Family Transition Router (AFTR) configuration.
netgate.nat.dslitestate.Aftr
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-state/netgate-nat:aftr" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An IPv6 tunnel endpoint.
netgate.nat.dslitestate.aftr.Endpoint
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-state/netgate-nat:aftr/netgate-nat:endpoint" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Basic Bridging BroadBand (B4) configuration.
netgate.nat.dslitestate.B4
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-state/netgate-nat:b4" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An IPv6 tunnel endpoint.
netgate.nat.dslitestate.b4.Endpoint
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-state/netgate-nat:b4/netgate-nat:endpoint" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dynamic mapping information.
netgate.nat.dslitestate.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-state/netgate-nat:dynamic" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
DS-Lite address pool table.
netgate.nat.dslitestate.dynamic.PoolTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-state/netgate-nat:dynamic/netgate-nat:pool-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
DS-Lite address range entry.
address required | string Id of pool-entry |
netgate.nat.dslitestate.dynamic.pooltable.PoolEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:dslite-state/netgate-nat:dynamic/netgate-nat:pool-table/netgate-nat:pool-entry=%7Baddress%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig to be added to list
global-options | object (netgate.nat.natconfig.GlobalOptions) |
ipfix | object (netgate.nat.natconfig.Ipfix) |
static | object (netgate.nat.natconfig.Static) |
nat64 | object (netgate.nat.natconfig.Nat64) |
deterministic | object (netgate.nat.natconfig.Deterministic) |
dynamic | object (netgate.nat.natconfig.Dynamic) |
reassembly | object (netgate.nat.natconfig.Reassembly) |
Object created
Internal error
Object already exists
Example URL
Network Address Translation (NAT) data needed to support VPP.
netgate.nat.NatConfig to be added or updated
netgate-nat:nat-config | object (netgate.nat.NatConfig) |
Object created
Object modified
Internal error
Example URL
Network Address Translation (NAT) data needed to support VPP.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Deterministic NAT information.
netgate.nat.natconfig.Deterministic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:deterministic" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Deterministic NAT information.
netgate.nat.natconfig.Deterministic to be added to list
det-mapping-table | object (netgate.nat.natconfig.deterministic.DetMappingTable) |
Object created
Internal error
Object already exists
Example URL
Deterministic NAT information.
netgate.nat.natconfig.Deterministic to be added or updated
netgate-nat:deterministic | object (netgate.nat.natconfig.Deterministic) |
Object created
Object modified
Internal error
Example URL
Deterministic NAT information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:deterministic" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Deterministic NAT mapping table.
netgate.nat.natconfig.deterministic.DetMappingTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:deterministic/netgate-nat:det-mapping-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Deterministic NAT mapping table.
netgate.nat.natconfig.deterministic.DetMappingTable to be added to list
det-mapping-entry | Array of objects (netgate.nat.natconfig.deterministic.detmappingtable.DetMappingEntry) Deterministic NAT Mapping Entry. |
Object created
Internal error
Object already exists
Example URL
Deterministic NAT mapping table.
netgate.nat.natconfig.deterministic.DetMappingTable to be added or updated
netgate-nat:det-mapping-table | object (netgate.nat.natconfig.deterministic.DetMappingTable) |
Object created
Object modified
Internal error
Example URL
Deterministic NAT mapping table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:deterministic/netgate-nat:det-mapping-table" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Deterministic NAT Mapping Entry.
netgate.nat.natconfig.deterministic.detmappingtable.DetMappingEntry to be added to list
outside-prefix | string The outside address range. |
inside-prefix | string The inside network. |
Object created
Internal error
Object already exists
Example URL
Deterministic NAT Mapping Entry.
inside-prefix required | string Id of det-mapping-entry |
outside-prefix required | string Id of det-mapping-entry |
netgate.nat.natconfig.deterministic.detmappingtable.DetMappingEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:deterministic/netgate-nat:det-mapping-table/netgate-nat:det-mapping-entry=%7Binside-prefix%7D,%7Boutside-prefix%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Deterministic NAT Mapping Entry.
inside-prefix required | string Id of det-mapping-entry |
outside-prefix required | string Id of det-mapping-entry |
netgate.nat.natconfig.deterministic.detmappingtable.DetMappingEntry to be added to list
outside-prefix | string The outside address range. |
inside-prefix | string The inside network. |
Object created
Internal error
Object already exists
Example URL
Deterministic NAT Mapping Entry.
inside-prefix required | string Id of det-mapping-entry |
outside-prefix required | string Id of det-mapping-entry |
netgate.nat.natconfig.deterministic.detmappingtable.DetMappingEntry to be added or updated
netgate-nat:det-mapping-entry | object (netgate.nat.natconfig.deterministic.detmappingtable.DetMappingEntry) |
Object created
Object modified
Internal error
Example URL
Deterministic NAT Mapping Entry.
inside-prefix required | string Id of det-mapping-entry |
outside-prefix required | string Id of det-mapping-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:deterministic/netgate-nat:det-mapping-table/netgate-nat:det-mapping-entry=%7Binside-prefix%7D,%7Boutside-prefix%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dynamic mapping information.
netgate.nat.natconfig.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dynamic mapping information.
netgate.nat.natconfig.Dynamic to be added to list
pool-if-table | object (netgate.nat.natconfig.dynamic.PoolIfTable) |
pool-table | object (netgate.nat.natconfig.dynamic.PoolTable) |
Object created
Internal error
Object already exists
Example URL
Dynamic mapping information.
netgate.nat.natconfig.Dynamic to be added or updated
netgate-nat:dynamic | object (netgate.nat.natconfig.Dynamic) |
Object created
Object modified
Internal error
Example URL
Dynamic mapping information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT interface pool table.
netgate.nat.natconfig.dynamic.PoolIfTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic/netgate-nat:pool-if-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT interface pool table.
netgate.nat.natconfig.dynamic.PoolIfTable to be added to list
if-entry | Array of objects (netgate.nat.natconfig.dynamic.pooliftable.IfEntry) Dynamic pool interface entries. |
Object created
Internal error
Object already exists
Example URL
NAT interface pool table.
netgate.nat.natconfig.dynamic.PoolIfTable to be added or updated
netgate-nat:pool-if-table | object (netgate.nat.natconfig.dynamic.PoolIfTable) |
Object created
Object modified
Internal error
Example URL
NAT interface pool table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic/netgate-nat:pool-if-table" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dynamic pool interface entries.
netgate.nat.natconfig.dynamic.pooliftable.IfEntry to be added to list
if-name | string The name of an interface whose IPv4 addresses are added to the pool of addresses used in NAT mappings. |
twice-nat | boolean Twice-nat address range for external hosts. |
Object created
Internal error
Object already exists
Example URL
Dynamic pool interface entries.
if-name required | string Id of if-entry |
netgate.nat.natconfig.dynamic.pooliftable.IfEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic/netgate-nat:pool-if-table/netgate-nat:if-entry=%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)) }
Example URL
Dynamic pool interface entries.
if-name required | string Id of if-entry |
netgate.nat.natconfig.dynamic.pooliftable.IfEntry to be added to list
if-name | string The name of an interface whose IPv4 addresses are added to the pool of addresses used in NAT mappings. |
twice-nat | boolean Twice-nat address range for external hosts. |
Object created
Internal error
Object already exists
Example URL
Dynamic pool interface entries.
if-name required | string Id of if-entry |
netgate.nat.natconfig.dynamic.pooliftable.IfEntry to be added or updated
netgate-nat:if-entry | object (netgate.nat.natconfig.dynamic.pooliftable.IfEntry) |
Object created
Object modified
Internal error
Example URL
Dynamic pool interface entries.
if-name required | string Id of if-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic/netgate-nat:pool-if-table/netgate-nat:if-entry=%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)) }
Example URL
NAT address pool table.
netgate.nat.natconfig.dynamic.PoolTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic/netgate-nat:pool-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT address pool table.
netgate.nat.natconfig.dynamic.PoolTable to be added to list
pool-entry | Array of objects (netgate.nat.natconfig.dynamic.pooltable.PoolEntry) NAT address range entry. |
Object created
Internal error
Object already exists
Example URL
NAT address pool table.
netgate.nat.natconfig.dynamic.PoolTable to be added or updated
netgate-nat:pool-table | object (netgate.nat.natconfig.dynamic.PoolTable) |
Object created
Object modified
Internal error
Example URL
NAT address pool table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic/netgate-nat:pool-table" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT address range entry.
netgate.nat.natconfig.dynamic.pooltable.PoolEntry to be added to list
route-table-name | string The route table name. |
first-address | string The first IPv4 address in the range. |
last-address | string The last IPv4 address in the range. |
twice-nat | boolean Twice-nat address range for external hosts. |
Object created
Internal error
Object already exists
Example URL
NAT address range entry.
first-address required | string Id of pool-entry |
netgate.nat.natconfig.dynamic.pooltable.PoolEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic/netgate-nat:pool-table/netgate-nat:pool-entry=%7Bfirst-address%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT address range entry.
first-address required | string Id of pool-entry |
netgate.nat.natconfig.dynamic.pooltable.PoolEntry to be added to list
route-table-name | string The route table name. |
first-address | string The first IPv4 address in the range. |
last-address | string The last IPv4 address in the range. |
twice-nat | boolean Twice-nat address range for external hosts. |
Object created
Internal error
Object already exists
Example URL
NAT address range entry.
first-address required | string Id of pool-entry |
netgate.nat.natconfig.dynamic.pooltable.PoolEntry to be added or updated
netgate-nat:pool-entry | object (netgate.nat.natconfig.dynamic.pooltable.PoolEntry) |
Object created
Object modified
Internal error
Example URL
NAT address range entry.
first-address required | string Id of pool-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:dynamic/netgate-nat:pool-table/netgate-nat:pool-entry=%7Bfirst-address%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT global options
netgate.nat.natconfig.GlobalOptions
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:global-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)) }
Example URL
NAT global options
netgate.nat.natconfig.GlobalOptions to be added to list
nat44 | object (netgate.nat.natconfig.globaloptions.Nat44) |
Object created
Internal error
Object already exists
Example URL
NAT global options
netgate.nat.natconfig.GlobalOptions to be added or updated
netgate-nat:global-options | object (netgate.nat.natconfig.GlobalOptions) |
Object created
Object modified
Internal error
Example URL
NAT global options
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:global-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)) }
Example URL
NAT44 options
netgate.nat.natconfig.globaloptions.Nat44
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:global-options/netgate-nat:nat44" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT44 options
netgate.nat.natconfig.globaloptions.Nat44 to be added to list
forwarding-enabled | boolean NAT44 forwarding option. Used 'true' or 'false'. |
Object created
Internal error
Object already exists
Example URL
NAT44 options
netgate.nat.natconfig.globaloptions.Nat44 to be added or updated
netgate-nat:nat44 | object (netgate.nat.natconfig.globaloptions.Nat44) |
Object created
Object modified
Internal error
Example URL
NAT44 options
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:global-options/netgate-nat:nat44" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
IPFIX information.
netgate.nat.natconfig.Ipfix
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat: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)) }
Example URL
IPFIX information.
netgate.nat.natconfig.Ipfix to be added to list
logging | object (netgate.nat.natconfig.ipfix.Logging) |
Object created
Internal error
Object already exists
Example URL
IPFIX information.
netgate.nat.natconfig.Ipfix to be added or updated
netgate-nat:ipfix | object (netgate.nat.natconfig.Ipfix) |
Object created
Object modified
Internal error
Example URL
IPFIX information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat: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)) }
Example URL
IPFIX logging information.
netgate.nat.natconfig.ipfix.Logging
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:ipfix/netgate-nat:logging" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
IPFIX logging information.
netgate.nat.natconfig.ipfix.Logging to be added to list
logging-entry | Array of objects (netgate.nat.natconfig.ipfix.logging.LoggingEntry) IPFIX logging entry. |
Object created
Internal error
Object already exists
Example URL
IPFIX logging information.
netgate.nat.natconfig.ipfix.Logging to be added or updated
netgate-nat:logging | object (netgate.nat.natconfig.ipfix.Logging) |
Object created
Object modified
Internal error
Example URL
IPFIX logging information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:ipfix/netgate-nat:logging" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
IPFIX logging entry.
netgate.nat.natconfig.ipfix.logging.LoggingEntry to be added to list
enable | boolean If logging is enabled for this domain and port, this value will be true. |
src-port | integer <int32> The logging source port id. |
domain | integer <int64> The logging domain id. |
Object created
Internal error
Object already exists
Example URL
IPFIX logging entry.
domain required | integer <int64> Id of logging-entry |
src-port required | integer <int32> Id of logging-entry |
netgate.nat.natconfig.ipfix.logging.LoggingEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:ipfix/netgate-nat:logging/netgate-nat:logging-entry=%7Bdomain%7D,%7Bsrc-port%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
IPFIX logging entry.
domain required | integer <int64> Id of logging-entry |
src-port required | integer <int32> Id of logging-entry |
netgate.nat.natconfig.ipfix.logging.LoggingEntry to be added to list
enable | boolean If logging is enabled for this domain and port, this value will be true. |
src-port | integer <int32> The logging source port id. |
domain | integer <int64> The logging domain id. |
Object created
Internal error
Object already exists
Example URL
IPFIX logging entry.
domain required | integer <int64> Id of logging-entry |
src-port required | integer <int32> Id of logging-entry |
netgate.nat.natconfig.ipfix.logging.LoggingEntry to be added or updated
netgate-nat:logging-entry | object (netgate.nat.natconfig.ipfix.logging.LoggingEntry) |
Object created
Object modified
Internal error
Example URL
IPFIX logging entry.
domain required | integer <int64> Id of logging-entry |
src-port required | integer <int32> Id of logging-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:ipfix/netgate-nat:logging/netgate-nat:logging-entry=%7Bdomain%7D,%7Bsrc-port%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT for IPv6/IPv4.
netgate.nat.natconfig.Nat64
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:nat64" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT for IPv6/IPv4.
netgate.nat.natconfig.Nat64 to be added to list
map | object (netgate.map.natstate.nat64.Map) |
Object created
Internal error
Object already exists
Example URL
NAT for IPv6/IPv4.
netgate.nat.natconfig.Nat64 to be added or updated
netgate-nat:nat64 | object (netgate.nat.natconfig.Nat64) |
Object created
Object modified
Internal error
Example URL
NAT for IPv6/IPv4.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:nat64" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Attributes that control NAT fragmentation reassembly.
netgate.nat.natconfig.Reassembly
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:reassembly" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Attributes that control NAT fragmentation reassembly.
netgate.nat.natconfig.Reassembly to be added to list
address-family | Array of objects (netgate.nat.natconfig.reassembly.AddressFamily) Select either 'ipv4' or 'ipv6'. |
Object created
Internal error
Object already exists
Example URL
Attributes that control NAT fragmentation reassembly.
netgate.nat.natconfig.Reassembly to be added or updated
netgate-nat:reassembly | object (netgate.nat.natconfig.Reassembly) |
Object created
Object modified
Internal error
Example URL
Attributes that control NAT fragmentation reassembly.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:reassembly" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Select either 'ipv4' or 'ipv6'.
netgate.nat.natconfig.reassembly.AddressFamily to be added to list
family | string (netgate.common.IpAddressFamily) Enum: "ipv4" "ipv6" |
max-fragments | integer <int32> The max number of fragments that can be reassembled. |
max-concurrent-reassemblies | integer <int32> The maximum number of concurrent reassemblies. |
enable | boolean If true, NAT reassembly is enabled for this address family. |
timeout | integer <int64> The period of time in seconds between fragments in a NAT reassembly before the reassmbly expires. |
Object created
Internal error
Object already exists
Example URL
Select either 'ipv4' or 'ipv6'.
family required | string Id of address-family |
netgate.nat.natconfig.reassembly.AddressFamily
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:reassembly/netgate-nat:address-family=%7Bfamily%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Select either 'ipv4' or 'ipv6'.
family required | string Id of address-family |
netgate.nat.natconfig.reassembly.AddressFamily to be added to list
family | string (netgate.common.IpAddressFamily) Enum: "ipv4" "ipv6" |
max-fragments | integer <int32> The max number of fragments that can be reassembled. |
max-concurrent-reassemblies | integer <int32> The maximum number of concurrent reassemblies. |
enable | boolean If true, NAT reassembly is enabled for this address family. |
timeout | integer <int64> The period of time in seconds between fragments in a NAT reassembly before the reassmbly expires. |
Object created
Internal error
Object already exists
Example URL
Select either 'ipv4' or 'ipv6'.
family required | string Id of address-family |
netgate.nat.natconfig.reassembly.AddressFamily to be added or updated
netgate-nat:address-family | object (netgate.nat.natconfig.reassembly.AddressFamily) |
Object created
Object modified
Internal error
Example URL
Select either 'ipv4' or 'ipv6'.
family required | string Id of address-family |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:reassembly/netgate-nat:address-family=%7Bfamily%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Static mapping information.
netgate.nat.natconfig.Static
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:static" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Static mapping information.
netgate.nat.natconfig.Static to be added to list
mapping-table | object (netgate.nat.natconfig.static.MappingTable) |
Object created
Internal error
Object already exists
Example URL
Static mapping information.
netgate.nat.natconfig.Static to be added or updated
netgate-nat:static | object (netgate.nat.natconfig.Static) |
Object created
Object modified
Internal error
Example URL
Static mapping information.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:static" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT mapping table.
netgate.nat.natconfig.static.MappingTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:static/netgate-nat:mapping-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT mapping table.
netgate.nat.natconfig.static.MappingTable to be added to list
mapping-entry | Array of objects (netgate.nat.natconfig.static.mappingtable.MappingEntry) NAT Mapping Entry. |
Object created
Internal error
Object already exists
Example URL
NAT mapping table.
netgate.nat.natconfig.static.MappingTable to be added or updated
netgate-nat:mapping-table | object (netgate.nat.natconfig.static.MappingTable) |
Object created
Object modified
Internal error
Example URL
NAT mapping table.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:static/netgate-nat:mapping-table" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT Mapping Entry.
netgate.nat.natconfig.static.mappingtable.MappingEntry to be added to list
route-table-name | string The name of a Route Table. |
external-if-name | string The external interface of the IPv4 packet. |
external-port | integer <int32> The external port mapped. |
local-port | integer <int32> The local port mapped. |
external-address | string The external IPv4 address of the IPv4 packet. |
transport-protocol | string Upper-layer protocol associated with this mapping. Should be 'udp', 'tcp', or 'icmp'. |
out-to-in-only | boolean Match only out-to-in direction. |
present | boolean |
twice-nat | boolean NAT translate external address and port for 1:1 NAPT. |
local-address | string The local IPv4 address of the IPv4 packet. |
Object created
Internal error
Object already exists
Example URL
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | integer <int32> Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | integer <int32> Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
netgate.nat.natconfig.static.mappingtable.MappingEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:static/netgate-nat:mapping-table/netgate-nat:mapping-entry=%7Btransport-protocol%7D,%7Blocal-address%7D,%7Blocal-port%7D,%7Bexternal-address%7D,%7Bexternal-port%7D,%7Broute-table-name%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | integer <int32> Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | integer <int32> Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
netgate.nat.natconfig.static.mappingtable.MappingEntry to be added to list
route-table-name | string The name of a Route Table. |
external-if-name | string The external interface of the IPv4 packet. |
external-port | integer <int32> The external port mapped. |
local-port | integer <int32> The local port mapped. |
external-address | string The external IPv4 address of the IPv4 packet. |
transport-protocol | string Upper-layer protocol associated with this mapping. Should be 'udp', 'tcp', or 'icmp'. |
out-to-in-only | boolean Match only out-to-in direction. |
present | boolean |
twice-nat | boolean NAT translate external address and port for 1:1 NAPT. |
local-address | string The local IPv4 address of the IPv4 packet. |
Object created
Internal error
Object already exists
Example URL
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | integer <int32> Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | integer <int32> Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
netgate.nat.natconfig.static.mappingtable.MappingEntry to be added or updated
netgate-nat:mapping-entry | object (netgate.nat.natconfig.static.mappingtable.MappingEntry) |
Object created
Object modified
Internal error
Example URL
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | integer <int32> Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | integer <int32> Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-config/netgate-nat:static/netgate-nat:mapping-table/netgate-nat:mapping-entry=%7Btransport-protocol%7D,%7Blocal-address%7D,%7Blocal-port%7D,%7Bexternal-address%7D,%7Bexternal-port%7D,%7Broute-table-name%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Network Address Translation (NAT) state data.
netgate.nat.NatState
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-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)) }
Example URL
Deterministic NAT information.
netgate.nat.natstate.Deterministic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:deterministic" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Deterministic NAT mapping table.
netgate.nat.natstate.deterministic.DetMappingTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:deterministic/netgate-nat:det-mapping-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Deterministic NAT Mapping Entry.
inside-prefix required | string Id of det-mapping-entry |
outside-prefix required | string Id of det-mapping-entry |
netgate.nat.natstate.deterministic.detmappingtable.DetMappingEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:deterministic/netgate-nat:det-mapping-table/netgate-nat:det-mapping-entry=%7Binside-prefix%7D,%7Boutside-prefix%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dynamic mapping information.
netgate.nat.natstate.Dynamic
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:dynamic" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT interface pool table.
netgate.nat.natstate.dynamic.PoolIfTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:dynamic/netgate-nat:pool-if-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dynamic pool interface entries.
if-name required | string Id of if-entry |
netgate.nat.natstate.dynamic.pooliftable.IfEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:dynamic/netgate-nat:pool-if-table/netgate-nat:if-entry=%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)) }
Example URL
NAT address pool table.
netgate.nat.natstate.dynamic.PoolTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:dynamic/netgate-nat:pool-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT pool address.
address required | string Id of pool-entry |
netgate.nat.natstate.dynamic.pooltable.PoolEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:dynamic/netgate-nat:pool-table/netgate-nat:pool-entry=%7Baddress%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Side information for each interface.
netgate.nat.natstate.InterfaceSides
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:interface-sides" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Side information about interfaces.
if-name required | string Id of interface-side |
netgate.nat.natstate.interfacesides.InterfaceSide
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:interface-sides/netgate-nat:interface-side=%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)) }
Example URL
NAT for IPv6/IPv4.
netgate.nat.natstate.Nat64
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:nat64" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT configuration parameters.
netgate.nat.natstate.Parameters
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:parameters" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Attributes that control NAT fragmentation reassembly.
netgate.nat.natstate.Reassembly
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:reassembly" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Select either 'ipv4' or 'ipv6'.
family required | string Id of address-family |
netgate.nat.natstate.reassembly.AddressFamily
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:reassembly/netgate-nat:address-family=%7Bfamily%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Static mapping information.
netgate.nat.natstate.Static
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:static" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT mapping table.
netgate.nat.natstate.static.MappingTable
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:static/netgate-nat:mapping-table" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NAT Mapping Entry.
transport-protocol required | string Id of mapping-entry |
local-address required | string Id of mapping-entry |
local-port required | integer <int32> Id of mapping-entry |
external-address required | string Id of mapping-entry |
external-port required | integer <int32> Id of mapping-entry |
route-table-name required | string Id of mapping-entry |
netgate.nat.natstate.static.mappingtable.MappingEntry
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-nat:nat-state/netgate-nat:static/netgate-nat:mapping-table/netgate-nat:mapping-entry=%7Btransport-protocol%7D,%7Blocal-address%7D,%7Blocal-port%7D,%7Bexternal-address%7D,%7Bexternal-port%7D,%7Broute-table-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)) }