summaryrefslogtreecommitdiffstats
path: root/samples/services/snort_ids/docker/grpc/snort.proto
diff options
context:
space:
mode:
Diffstat (limited to 'samples/services/snort_ids/docker/grpc/snort.proto')
-rw-r--r--samples/services/snort_ids/docker/grpc/snort.proto36
1 files changed, 36 insertions, 0 deletions
diff --git a/samples/services/snort_ids/docker/grpc/snort.proto b/samples/services/snort_ids/docker/grpc/snort.proto
new file mode 100644
index 0000000..8d69baa
--- /dev/null
+++ b/samples/services/snort_ids/docker/grpc/snort.proto
@@ -0,0 +1,36 @@
+// Copyright (c) Authors of Clover
+//
+// All rights reserved. This program and the accompanying materials
+// are made available under the terms of the Apache License, Version 2.0
+// which accompanies this distribution, and is available at
+// http://www.apache.org/licenses/LICENSE-2.0
+
+
+syntax = "proto3";
+package snort;
+
+service Controller {
+
+ rpc AddRules (AddRule) returns (SnortReply) {}
+ rpc StartSnort (ControlSnort) returns (SnortReply) {}
+ rpc StopSnort (ControlSnort) returns (SnortReply) {}
+}
+
+message ControlSnort {
+ string pid = 1;
+}
+
+message AddRule {
+ string protocol = 1;
+ string dest_port = 2;
+ string dest_ip = 3;
+ string src_port = 4;
+ string src_ip = 5;
+ string msg = 6;
+ string sid = 7;
+ string rev = 8;
+}
+
+message SnortReply {
+ string message = 1;
+}