diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/forms/packetcapture.xml b/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/forms/packetcapture.xml index fcae9ce68..8afe1774a 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/forms/packetcapture.xml +++ b/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/forms/packetcapture.xml @@ -1,14 +1,79 @@
- + packetcapture.settings.interface select_multiple Interfaces to capture. + + packetcapture.settings.promiscuous + + checkbox + When set, the system will capture all traffic present on the interface in stead of the traffic heading to the firewall. + + + packetcapture.settings.fam + + dropdown + Select the type of traffic to be captured, either Any, IPv4 only or IPv6 only. + + + packetcapture.settings.protocol_not + + checkbox + invert protocol (not) + + + packetcapture.settings.protocol + + dropdown + Select the type of traffic to be captured, either Any, IPv4 only or IPv6 only. + + + packetcapture.settings.host + + text + + This value is either the Source or Destination IP address or subnet in CIDR notation. + The packet capture will look for this address in either field. + Matching can be negated by preceding the value with "not". + Multiple IP addresses or CIDR subnets may be specified as boolean expression. + If you leave this field blank, all packets on the specified interface will be captured. + + Example: not 10.0.0.0/24 not and not 11.0.0.1 + + + + packetcapture.settings.port_not + + checkbox + invert port (not) + + + packetcapture.settings.port + + text + The port can be either the source or destination port. The packet capture will look for this port in either field. + + + packetcapture.settings.snaplen + + text + The Packet length is the number of bytes of each packet that will be captured. Default value is 0, which will capture the entire frame regardless of its size. + + + packetcapture.settings.count + + text + + This is the number of packets the packet capture will grab. Default value is 100. + Enter 0 (zero) for no count limit. + + packetcapture.settings.description text - Optional description to easily find this capture job when more are active. + Select the protocol to capture, or Any. diff --git a/src/opnsense/mvc/app/models/OPNsense/Diagnostics/FieldTypes/HostField.php b/src/opnsense/mvc/app/models/OPNsense/Diagnostics/FieldTypes/HostField.php new file mode 100644 index 000000000..b8f2951f8 --- /dev/null +++ b/src/opnsense/mvc/app/models/OPNsense/Diagnostics/FieldTypes/HostField.php @@ -0,0 +1,38 @@ +/^(.){1,255}$/u Description should be a string between 1 and 255 characters + + 0 + Y + + + Y + + any + IPv4 Only + IPv6 Only + + + + 0 + Y + + + Y + any + + + N + + + 0 + Y + + + N + 1 + 65535 + + + N + 1 + 262144 + + + Y + 100 + 0 +