兼容Firewall版本, sapp和kni拆开
This commit is contained in:
@@ -36,8 +36,6 @@ kni:
|
|||||||
tfe_node_count: 3
|
tfe_node_count: 3
|
||||||
watch_dog:
|
watch_dog:
|
||||||
switch: 1
|
switch: 1
|
||||||
maat:
|
|
||||||
readconf_mode: 2
|
|
||||||
send_logger:
|
send_logger:
|
||||||
switch: 1
|
switch: 1
|
||||||
tfe_nodes:
|
tfe_nodes:
|
||||||
|
|||||||
@@ -30,10 +30,6 @@ kni:
|
|||||||
tfe_node_count: 3
|
tfe_node_count: 3
|
||||||
watch_dog:
|
watch_dog:
|
||||||
switch: 1
|
switch: 1
|
||||||
maat:
|
|
||||||
readconf_mode: 2
|
|
||||||
send_logger:
|
|
||||||
switch: 1
|
|
||||||
tfe_nodes:
|
tfe_nodes:
|
||||||
- tfe0:
|
- tfe0:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
|
|||||||
@@ -30,10 +30,6 @@ kni:
|
|||||||
tfe_node_count: 3
|
tfe_node_count: 3
|
||||||
watch_dog:
|
watch_dog:
|
||||||
switch: 1
|
switch: 1
|
||||||
maat:
|
|
||||||
readconf_mode: 2
|
|
||||||
send_logger:
|
|
||||||
switch: 1
|
|
||||||
tfe_nodes:
|
tfe_nodes:
|
||||||
- tfe0:
|
- tfe0:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
|
|||||||
@@ -24,16 +24,15 @@ fs_remote:
|
|||||||
address: "192.168.100.1"
|
address: "192.168.100.1"
|
||||||
port: 8125
|
port: 8125
|
||||||
|
|
||||||
|
nic_transparent_mode:
|
||||||
|
enable: 0
|
||||||
|
|
||||||
kni:
|
kni:
|
||||||
global:
|
global:
|
||||||
log_level: 30
|
log_level: 30
|
||||||
tfe_node_count: 3
|
tfe_node_count: 3
|
||||||
watch_dog:
|
watch_dog:
|
||||||
switch: 1
|
switch: 1
|
||||||
maat:
|
|
||||||
readconf_mode: 2
|
|
||||||
send_logger:
|
|
||||||
switch: 1
|
|
||||||
tfe_nodes:
|
tfe_nodes:
|
||||||
- tfe0:
|
- tfe0:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
@@ -52,3 +51,5 @@ mrzcpd:
|
|||||||
|
|
||||||
mrtunnat:
|
mrtunnat:
|
||||||
lcore_id: 46
|
lcore_id: 46
|
||||||
|
|
||||||
|
run_as_tun_mode: 1
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
roles/kni/files/kni-3.0.0.4484554-1.el7.x86_64.rpm
Normal file
BIN
roles/kni/files/kni-3.0.0.4484554-1.el7.x86_64.rpm
Normal file
Binary file not shown.
BIN
roles/kni/files/kni-debuginfo-3.0.0.4484554-1.el7.x86_64.rpm
Normal file
BIN
roles/kni/files/kni-debuginfo-3.0.0.4484554-1.el7.x86_64.rpm
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,53 +1,17 @@
|
|||||||
---
|
---
|
||||||
- name: "copy sapp and kni to destination server"
|
- name: "copy kni to destination server"
|
||||||
copy:
|
copy:
|
||||||
src: "{{ role_path }}/files/"
|
src: "{{ role_path }}/files/"
|
||||||
dest: /tmp/ansible_deploy/
|
dest: /tmp/ansible_deploy/
|
||||||
|
|
||||||
- name: "install sapp rpms from localhost"
|
|
||||||
yum:
|
|
||||||
name:
|
|
||||||
- /tmp/ansible_deploy/sapp-4.0.4.d31932a-1.el7.x86_64.rpm
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: "install kni rpms from localhost"
|
- name: "install kni rpms from localhost"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- /tmp/ansible_deploy/kni-2.1.5.9e42ae3-1.el7.centos.x86_64.rpm
|
- /tmp/ansible_deploy/kni-3.0.0.4484554-1.el7.x86_64.rpm
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Template the sapp.toml
|
|
||||||
template:
|
|
||||||
src: "{{ role_path }}/templates/sapp.toml.j2"
|
|
||||||
dest: /home/mesasoft/sapp_run/etc/sapp.toml
|
|
||||||
tags: template
|
|
||||||
|
|
||||||
- name: Template the project_list.conf
|
|
||||||
template:
|
|
||||||
src: "{{ role_path }}/templates/project_list.conf.j2"
|
|
||||||
dest: /home/mesasoft/sapp_run/etc/project_list.conf
|
|
||||||
tags: template
|
|
||||||
|
|
||||||
- name: Template the conflist.inf
|
|
||||||
template:
|
|
||||||
src: "{{ role_path }}/templates/conflist.inf.j2"
|
|
||||||
dest: /home/mesasoft/sapp_run/plug/conflist.inf
|
|
||||||
tags: template
|
|
||||||
|
|
||||||
- name: Template the gdev.conf
|
|
||||||
template:
|
|
||||||
src: "{{ role_path }}/templates/gdev.conf.j2"
|
|
||||||
dest: /home/mesasoft/sapp_run/etc/gdev.conf
|
|
||||||
tags: template
|
|
||||||
|
|
||||||
- name: Template the kni.conf
|
- name: Template the kni.conf
|
||||||
template:
|
template:
|
||||||
src: "{{ role_path }}/templates/kni.conf.j2"
|
src: "{{ role_path }}/templates/kni.conf.j2"
|
||||||
dest: /home/mesasoft/sapp_run/etc/kni/kni.conf
|
dest: /home/mesasoft/sapp_run/etc/kni/kni.conf
|
||||||
tags: template
|
tags: template
|
||||||
|
|
||||||
- name: "enable sapp"
|
|
||||||
systemd:
|
|
||||||
name: sapp
|
|
||||||
enabled: yes
|
|
||||||
daemon_reload: yes
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
[platform]
|
|
||||||
./plug/platform/g_device_plug/g_device_plug.inf
|
|
||||||
|
|
||||||
[protocol]
|
|
||||||
./plug/protocol/http/http.inf
|
|
||||||
|
|
||||||
[business]
|
|
||||||
./plug/business/kni/kni.inf
|
|
||||||
@@ -39,35 +39,9 @@ keepalive_idle = 2
|
|||||||
keepalive_intvl = 1
|
keepalive_intvl = 1
|
||||||
keepalive_cnt = 3
|
keepalive_cnt = 3
|
||||||
|
|
||||||
[static_maat]
|
|
||||||
readconf_mode = {{ kni.maat.readconf_mode }}
|
|
||||||
tableinfo_path = ./etc/kni/static_maat_tableinfo.conf
|
|
||||||
maatjson_path = ./etc/kni/maat_test.json
|
|
||||||
redis_ip = {{ maat_redis_server.address }}
|
|
||||||
redis_port = {{ maat_redis_server.port }}
|
|
||||||
redis_index = {{ maat_redis_server.db }}
|
|
||||||
|
|
||||||
[dynamic_maat]
|
|
||||||
readconf_mode = {{ kni.maat.readconf_mode }}
|
|
||||||
tableinfo_path = ./etc/kni/dynamic_maat_tableinfo.conf
|
|
||||||
maatjson_path = ./etc/kni/maat_test.json
|
|
||||||
redis_ip = {{ dynamic_maat_redis_server.address }}
|
|
||||||
redis_port = {{ dynamic_maat_redis_server.port }}
|
|
||||||
redis_index = {{ dynamic_maat_redis_server.db }}
|
|
||||||
|
|
||||||
[send_logger]
|
|
||||||
switch = {{ kni.send_logger.switch }}
|
|
||||||
kafka_topic = SESSION-RECORD-LOG
|
|
||||||
kafka_brokerlist = {{ log_kafkabrokers.address }}
|
|
||||||
|
|
||||||
[marsio]
|
[marsio]
|
||||||
appsym = knifw
|
appsym = knifw
|
||||||
|
|
||||||
[kafka]
|
|
||||||
queue.buffering.max.messages = 1000000
|
|
||||||
topic.metadata.refresh.interval.ms = 600000
|
|
||||||
security.protocol = MG
|
|
||||||
|
|
||||||
[dup_traffic]
|
[dup_traffic]
|
||||||
switch = 1
|
switch = 1
|
||||||
action = 2
|
action = 2
|
||||||
@@ -99,4 +73,5 @@ remote_switch = {{ fs_remote.switch }}
|
|||||||
remote_ip = {{ fs_remote.address }}
|
remote_ip = {{ fs_remote.address }}
|
||||||
remote_port = {{ fs_remote.port }}
|
remote_port = {{ fs_remote.port }}
|
||||||
local_path = ./fs2_kni.status
|
local_path = ./fs2_kni.status
|
||||||
stat_cycle = 2
|
stat_cycle = 1
|
||||||
|
print_mode = 1
|
||||||
|
|||||||
BIN
roles/sapp/files/sapp-4.0.5.3385992-1.el7.x86_64.rpm
Normal file
BIN
roles/sapp/files/sapp-4.0.5.3385992-1.el7.x86_64.rpm
Normal file
Binary file not shown.
41
roles/sapp/tasks/main.yml
Normal file
41
roles/sapp/tasks/main.yml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
---
|
||||||
|
- name: "copy sapp to destination server"
|
||||||
|
copy:
|
||||||
|
src: "{{ role_path }}/files/"
|
||||||
|
dest: /tmp/ansible_deploy/
|
||||||
|
|
||||||
|
- name: "install sapp rpms from localhost"
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
|
- /tmp/ansible_deploy/sapp-4.0.5.3385992-1.el7.x86_64.rpm
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Template the sapp.toml
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/sapp.toml.j2"
|
||||||
|
dest: /home/mesasoft/sapp_run/etc/sapp.toml
|
||||||
|
tags: template
|
||||||
|
|
||||||
|
- name: Template the project_list.conf
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/project_list.conf.j2"
|
||||||
|
dest: /home/mesasoft/sapp_run/etc/project_list.conf
|
||||||
|
tags: template
|
||||||
|
|
||||||
|
- name: Template the conflist.inf
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/conflist.inf.j2"
|
||||||
|
dest: /home/mesasoft/sapp_run/plug/conflist.inf
|
||||||
|
tags: template
|
||||||
|
|
||||||
|
- name: Template the gdev.conf
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/gdev.conf.j2"
|
||||||
|
dest: /home/mesasoft/sapp_run/etc/gdev.conf
|
||||||
|
tags: template
|
||||||
|
|
||||||
|
- name: "enable sapp"
|
||||||
|
systemd:
|
||||||
|
name: sapp
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
19
roles/sapp/templates/conflist.inf.j2
Normal file
19
roles/sapp/templates/conflist.inf.j2
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
[platform]
|
||||||
|
./plug/platform/g_device_plug/g_device_plug.inf
|
||||||
|
./plug/platform/tsg_master/tsg_master.inf
|
||||||
|
|
||||||
|
[protocol]
|
||||||
|
./plug/protocol/ssl/ssl.inf
|
||||||
|
./plug/protocol/http/http.inf
|
||||||
|
./plug/protocol/dns/dns.inf
|
||||||
|
./plug/protocol/mail/mail.inf
|
||||||
|
./plug/protocol/ftp/ftp.inf
|
||||||
|
|
||||||
|
[business]
|
||||||
|
./plug/business/kni/kni.inf
|
||||||
|
./plug/business/fw_ssl/fw_ssl.inf
|
||||||
|
./plug/business/fw_http_plug/fw_http_plug.inf
|
||||||
|
./plug/business/fw_dns_plug/fw_dns_plug.inf
|
||||||
|
./plug/business/fw_mail_plug/fw_mail_plug.inf
|
||||||
|
./plug/business/fw_ftp_plug/fw_ftp_plug.inf
|
||||||
|
./plug/business/tsg_conn_record/tsg_conn_record.inf
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
tcp_flow_stat struct
|
tcp_flow_stat struct
|
||||||
udp_flow_stat struct
|
udp_flow_stat struct
|
||||||
tcp_deduce_flow_stat struct
|
tcp_deduce_flow_stat struct
|
||||||
kni_http_tag struct
|
POLICY_PRIORITY struct
|
||||||
Binary file not shown.
Reference in New Issue
Block a user