From fb1ad1955b28ef0e2c4b7ca8ff38fffb69035c90 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Thu, 19 Nov 2020 18:39:32 +0600 Subject: [PATCH] close dns collect --- roles/firewall/tasks/main.yml | 8 ++++- .../firewall/templates/tsg_conn_sketch.inf.j2 | 35 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 roles/firewall/templates/tsg_conn_sketch.inf.j2 diff --git a/roles/firewall/tasks/main.yml b/roles/firewall/tasks/main.yml index c9b0a84..15dec34 100644 --- a/roles/firewall/tasks/main.yml +++ b/roles/firewall/tasks/main.yml @@ -51,4 +51,10 @@ template: src: "{{ role_path }}/templates/app_l7_proto_id.conf.j2" dest: /home/mesasoft/sapp_run/tsgconf/app_l7_proto_id.conf - tags: template + +- name: "Template the /home/mesasoft/sapp_run/plug/business/tsg_conn_sketch/tsg_conn_sketch.inf" + template: + src: "{{ role_path }}/templates/tsg_conn_sketch.inf.j2" + dest: /home/mesasoft/sapp_run/plug/business/tsg_conn_sketch/tsg_conn_sketch.inf + tags: template tags: template + diff --git a/roles/firewall/templates/tsg_conn_sketch.inf.j2 b/roles/firewall/templates/tsg_conn_sketch.inf.j2 new file mode 100644 index 0000000..170f1e7 --- /dev/null +++ b/roles/firewall/templates/tsg_conn_sketch.inf.j2 @@ -0,0 +1,35 @@ +[PLUGINFO] +PLUGNAME=TSG_CONN_SKETCH +SO_PATH=./plug/business/tsg_conn_sketch/tsg_conn_sketch.so +INIT_FUNC=tsg_conn_record_init +DESTROY_FUNC=tsg_conn_record_destroy + + +[TCP] +FUNC_FLAG=ALL +FUNC_NAME=tsg_record_tcp_entry + +[TCP_ALL] +FUNC_FLAG=ALL +FUNC_NAME=tsg_record_tcpall_entry + +[UDP] +FUNC_FLAG=ALL +FUNC_NAME=tsg_record_udp_entry + +[HTTP] +FUNC_FLAG=ALL +FUNC_NAME=tsg_record_http_entry + +[SSL] +FUNC_FLAG=SSL_CLIENT_HELLO,SSL_SERVER_HELLO,SSL_APPLICATION_DATA,SSL_CERTIFICATE_DETAIL +FUNC_NAME=tsg_record_ssl_entry + +#[DNS] +#FUNC_FLAG=ALL +#FUNC_NAME=tsg_record_dns_entry + +[MAIL] +FUNC_FLAG=ALL +FUNC_NAME=tsg_record_mail_entry +