Skip to main content
Version: current

nat


interface/bridge/nat

Type: Directory

ArgumentTypeDescription
allswitch
staticswitch
dynamicswitch
chain ( mandatory )enum
actionenum (accept | passthrough | drop | jump | return | log | mark-packet | set-priority | src-nat | dst-nat | redirect | arp-reply) { accept:0, passthrough:1, drop:2, jump:3, return:4, log:5, mark-packet:6, set-priority:11, src-nat:7, dst-nat:8, redirect:9, arp-reply:10 }
jump-targetenum ()
new-packet-markenum ()
to-src-mac-addressmacAddr
to-dst-mac-addressmacAddr
to-arp-reply-mac-addressmacAddr
new-prioritynum
passthroughbool
in-interfacesuper { ! , interface: iface_enum }
in-bridgesuper { ! , interface: iface_enum }
out-interfacesuper { ! , interface: iface_enum }
out-bridgesuper { ! , interface: iface_enum }
in-interface-listsuper { ! , interface-list: enum }
out-interface-listsuper { ! , interface-list: enum }
in-bridge-listsuper { ! , interface-list: enum }
out-bridge-listsuper { ! , interface-list: enum }
src-mac-addresssuper { ! , address: macAddr , [mask] /macAddr }
dst-mac-addresssuper { ! , address: macAddr , [mask] /macAddr }
mac-protocolsuper { ! , protocol: alt { protocol-name: enum (length) { length:1 } , protocol-number: num [ .. 65535] } }
src-addresssuper { ! , address: ipAddr , [netmask] /num [ .. 32] }
dst-addresssuper { ! , address: ipAddr , [netmask] /num [ .. 32] }
src-address6super { ! , address: ip6Prefix }
dst-address6super { ! , address: ip6Prefix }
src-portsuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
dst-portsuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
ip-protocolsuper { ! , protocol: enum () }
packet-marksuper { ! , mark: enum }
packet-typesuper { ! , type: enum (host | broadcast | multicast | other-host) { host:0, broadcast:1, multicast:2, other-host:3 } }
limitsuper { count: num , [time] [ /time] , [burst] ,num }
802.3-sapsuper { ! , sap: num [ .. 0xff] }
802.3-typesuper { ! , type: num [ .. 0xffff] }
arp-opcodesuper { ! , opcode: alt { common-opcode: enum (request | reply | request-reverse | reply-reverse | drarp-request | drarp-reply | drarp-error | inarp-request | inarp-reply | arp-nak) { request:1, reply:2, request-reverse:3, reply-reverse:4, drarp-request:5, drarp-reply:6, drarp-error:7, inarp-request:8, inarp-reply:9, arp-nak:10 } , opcode-number: num [ .. 65535] } }
arp-hardware-typesuper { ! , type: num [ .. 0xffff] }
arp-packet-typesuper { ! , type: num [ .. 0xffff] }
arp-src-addresssuper { ! , address: ipAddr , [netmask] /num [ .. 32] }
arp-dst-addresssuper { ! , address: ipAddr , [netmask] /num [ .. 32] }
arp-src-mac-addresssuper { ! , address: macAddr , [mask] /macAddr }
arp-dst-mac-addresssuper { ! , address: macAddr , [mask] /macAddr }
arp-gratuitoussuper { gratuitous: bool }
vlan-idsuper { ! , type: num [ .. 4095] }
vlan-prioritysuper { ! , type: num [ .. 7] }
vlan-encapsuper { ! , protocol: alt { protocol-name: enum (length) { length:1 } , protocol-number: num [ .. 65535] } }
stp-typesuper { ! , type: alt { type-name: enum (config | tcn) { config:0, tcn:0x80 } , type-number: num [ .. 255] } }
stp-flagssuper { ! , type: alt { type-name: enum (topology-change | topology-change-ack) { topology-change:1, topology-change-ack:0x80 } , type-number: num [ .. 255] } }
stp-root-prioritysuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
stp-root-addresssuper { ! , address: macAddr , [mask] /macAddr }
stp-root-costsuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
stp-sender-prioritysuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
stp-sender-addresssuper { ! , address: macAddr , [mask] /macAddr }
stp-portsuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
stp-msg-agesuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
stp-max-agesuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
stp-hello-timesuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
stp-forward-delaysuper { ! , min: num [0 .. 65535] , [max] -num [0 .. 65535] }
ingress-prioritysuper { ! , priority: num [0 .. 63] }
tls-hostsuper { ! , tls-host: string }
logbool
log-prefixstring