2021-02-15 07:50:51 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-02-21 16:18:50 +00:00
|
|
|
package inetmock.audit.v1;
|
2021-02-21 15:30:39 +00:00
|
|
|
|
2021-02-15 07:50:51 +00:00
|
|
|
import "google/protobuf/timestamp.proto";
|
2022-01-26 09:38:47 +00:00
|
|
|
import "audit/v1/http_details.proto";
|
|
|
|
import "audit/v1/dns_details.proto";
|
|
|
|
import "audit/v1/dhcp_details.proto";
|
2022-02-02 13:29:11 +00:00
|
|
|
import "audit/v1/netmon_details.proto";
|
2021-02-15 07:50:51 +00:00
|
|
|
|
|
|
|
enum TransportProtocol {
|
2021-02-21 16:18:50 +00:00
|
|
|
TRANSPORT_PROTOCOL_UNSPECIFIED = 0;
|
|
|
|
TRANSPORT_PROTOCOL_TCP = 1;
|
|
|
|
TRANSPORT_PROTOCOL_UDP = 2;
|
2021-02-15 07:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
enum AppProtocol {
|
2021-02-21 16:18:50 +00:00
|
|
|
APP_PROTOCOL_UNSPECIFIED = 0;
|
|
|
|
APP_PROTOCOL_DNS = 1;
|
|
|
|
APP_PROTOCOL_HTTP = 2;
|
|
|
|
APP_PROTOCOL_HTTP_PROXY = 3;
|
2022-01-26 09:38:47 +00:00
|
|
|
APP_PROTOCOL_PPROF = 4;
|
|
|
|
APP_PROTOCOL_DNS_OVER_HTTPS = 5;
|
|
|
|
APP_PROTOCOL_DHCP = 6;
|
2021-02-15 07:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
enum TLSVersion {
|
2021-02-21 16:18:50 +00:00
|
|
|
TLS_VERSION_UNSPECIFIED = 0;
|
|
|
|
TLS_VERSION_TLS10 = 1;
|
|
|
|
TLS_VERSION_TLS11 = 2;
|
|
|
|
TLS_VERSION_TLS12 = 3;
|
|
|
|
TLS_VERSION_TLS13 = 4;
|
2021-02-15 07:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message TLSDetailsEntity {
|
2021-02-21 15:30:39 +00:00
|
|
|
TLSVersion version = 1;
|
2021-02-21 16:18:50 +00:00
|
|
|
string cipher_suite = 2;
|
|
|
|
string server_name = 3;
|
2021-02-15 07:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message EventEntity {
|
2021-02-21 15:30:39 +00:00
|
|
|
int64 id = 1;
|
|
|
|
google.protobuf.Timestamp timestamp = 2;
|
|
|
|
TransportProtocol transport = 3;
|
|
|
|
AppProtocol application = 4;
|
2021-02-21 16:18:50 +00:00
|
|
|
bytes source_ip = 5;
|
|
|
|
bytes destination_ip = 6;
|
|
|
|
uint32 source_port = 7;
|
|
|
|
uint32 destination_port = 8;
|
2021-02-21 15:30:39 +00:00
|
|
|
TLSDetailsEntity tls = 9;
|
2022-01-26 09:38:47 +00:00
|
|
|
|
|
|
|
oneof protocol_details {
|
|
|
|
HTTPDetailsEntity http = 20;
|
|
|
|
DNSDetailsEntity dns = 21;
|
|
|
|
DHCPDetailsEntity dhcp = 22;
|
2022-02-02 13:29:11 +00:00
|
|
|
NetMonDetailsEntity net_mon = 23;
|
2022-01-26 09:38:47 +00:00
|
|
|
}
|
2021-02-15 16:59:40 +00:00
|
|
|
}
|