diff options
Diffstat (limited to 'roles/firewall/templates')
| -rw-r--r-- | roles/firewall/templates/capture_packet_plug.conf.j2 | 4 | ||||
| -rw-r--r-- | roles/firewall/templates/main.conf.j2 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/firewall/templates/capture_packet_plug.conf.j2 b/roles/firewall/templates/capture_packet_plug.conf.j2 index 9cd6d10..6da4c3c 100644 --- a/roles/firewall/templates/capture_packet_plug.conf.j2 +++ b/roles/firewall/templates/capture_packet_plug.conf.j2 @@ -15,8 +15,8 @@ INC_CFG_DIR=capture_packet_rule/inc/index/ FULL_CFG_DIR=capture_packet_rule/full/index/
[LOG]
-{% if tsg_running_type == 0 %}
-NIC_NAME={{ tsg_tun_mode.ethname }}
+{% if tsg_running_type == 0 or 1 %}
+NIC_NAME={{ server.ethname }}
{% else %}
NIC_NAME={{ nic_mgr.name }}
{% endif %}
diff --git a/roles/firewall/templates/main.conf.j2 b/roles/firewall/templates/main.conf.j2 index 9077021..9cbaec8 100644 --- a/roles/firewall/templates/main.conf.j2 +++ b/roles/firewall/templates/main.conf.j2 @@ -24,8 +24,8 @@ IP_ADDR_TABLE=TSG_SECURITY_ADDR [TSG_LOG] MODE=1 -{% if tsg_running_type == 0 %} -NIC_NAME={{ tsg_tun_mode.ethname }} +{% if tsg_running_type == 0 or 1 %} +NIC_NAME={{ server.ethname }} {% else %} NIC_NAME={{ nic_mgr.name }} {% endif %} |
