L4#
Note
Applicable to Chimera port only.
TCP DST Port#
Basic mode only. Defines TCP Destination Port settings used for the filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
.
Corresponding CLI command: PEF_TCPDESTPORT
await filter.tcp.dest_port.set(use=enums.OnOff.OFF, value=80, mask=Hex("FFFF"))
await filter.tcp.dest_port.set(use=enums.OnOff.ON, value=80, mask=Hex("FFFF"))
resp = await filter.tcp.dest_port.get()
resp.use
resp.value
resp.mask
TCP SRC Port#
Basic mode only. Defines TCP Source Port settings used for the filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
.
Corresponding CLI command: PEF_TCPSRCPORT
await filter.tcp.src_port.set(use=enums.OnOff.OFF, value=80, mask=Hex("FFFF"))
await filter.tcp.src_port.set(use=enums.OnOff.ON, value=80, mask=Hex("FFFF"))
resp = await filter.tcp.src_port.get()
resp.use
resp.value
resp.mask
TCP Settings#
Basic mode only. Defines if filtering on TCP information is used for flow filtering.
Note
For SET, the only allowed _filter_type
is shadow-copy
.
Corresponding CLI command: PEF_TCPSETTINGS
await filter.tcp.settings.set(use=enums.FilterUse.OFF, action=enums.InfoAction.EXCLUDE)
await filter.tcp.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.EXCLUDE)
await filter.tcp.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.INCLUDE)
resp = await filter.tcp.settings.get()
resp.use
resp.action
UDP DST Port#
Basic mode only. Defines UDP Destination Port settings used for the filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
.
Corresponding CLI command: PEF_UDPDESTPORT
await filter.tcp.dest_port.set(use=enums.OnOff.ON, value=80, mask=Hex("FFFF"))
await filter.tcp.dest_port.set(use=enums.OnOff.OFF, value=80, mask=Hex("FFFF"))
resp = await filter.udp.dest_port.get()
resp.use
resp.value
resp.mask
UDP SRC Port#
Basic mode only. Defines UDP Source Port settings used for the filter.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_UDPSRCPORT
await filter.tcp.src_port.set(use=enums.OnOff.ON, value=80, mask=Hex("FFFF"))
await filter.tcp.src_port.set(use=enums.OnOff.OFF, value=80, mask=Hex("FFFF"))
resp = await filter.udp.src_port.get()
resp.use
resp.value
resp.mask
UDP Settings#
Basic mode only. Controls if UDP packet information is used for flow filtering.
Note
For SET, the only allowed _filter_type
is shadow-copy
Corresponding CLI command: PEF_UDPSETTINGS
await filter.udp.settings.set(use=enums.FilterUse.OFF, action=enums.InfoAction.EXCLUDE)
await filter.udp.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.EXCLUDE)
await filter.udp.settings.set(use=enums.FilterUse.AND, action=enums.InfoAction.INCLUDE)
resp = await filter.udp.settings.get()
resp.use
resp.action