From 38cb6a56e7e10c2586de2d38df21a03effc8f5e7 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Wed, 28 Dec 2022 14:29:32 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20TFE-ENV=20=E5=B0=86tap0=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E6=88=90TFE=5FDEVICE=5FDATA=5FINCOMING=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/service/tfe-env.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/service/tfe-env.service b/script/service/tfe-env.service index 2c1ea23..1182368 100644 --- a/script/service/tfe-env.service +++ b/script/service/tfe-env.service @@ -33,7 +33,7 @@ ExecStartPost=/usr/sbin/ip addr add fd00::02/64 dev ${TFE_DEVICE_DATA_INCOMING} ExecStartPost=/usr/sbin/ip -6 rule add iif ${TFE_DEVICE_DATA_INCOMING} tab 102 ExecStartPost=/usr/sbin/ip -6 route add local default dev lo table 102 ExecStartPost=/usr/sbin/ip -6 rule add fwmark 0x65 lookup 202 -ExecStartPost=/usr/sbin/ip -6 route add default dev tap0 via fd00::01 table 202 +ExecStartPost=/usr/sbin/ip -6 route add default dev ${TFE_DEVICE_DATA_INCOMING} via fd00::01 table 202 ExecStartPost=/usr/sbin/ip -6 neigh add fd00::01 lladdr ${TFE_PEER_MAC_DATA_INCOMING} dev ${TFE_DEVICE_DATA_INCOMING} nud permanent # stop @@ -44,7 +44,7 @@ ExecStopPost=/usr/sbin/ip route del local default dev lo table 100 ExecStopPost=/usr/sbin/ip rule del fwmark 0x65 lookup 101 ExecStopPost=/usr/sbin/ip route del default dev ${TFE_DEVICE_DATA_INCOMING} via ${TFE_PEER_IP_DATA_INCOMING} table 101 ExecStopPost=/usr/sbin/ip -6 rule del fwmark 0x65 lookup 202 -ExecStopPost=/usr/sbin/ip -6 route del default dev tap0 via fd00::01 table 202 +ExecStopPost=/usr/sbin/ip -6 route del default dev ${TFE_DEVICE_DATA_INCOMING} via fd00::01 table 202 ExecStopPost=/usr/sbin/ip -6 rule del iif ${TFE_DEVICE_DATA_INCOMING} tab 102 ExecStopPost=/usr/sbin/ip -6 route del local default dev lo table 102 ExecStopPost=/usr/sbin/ip addr del fd00::02/64 dev ${TFE_DEVICE_DATA_INCOMING}