summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2022-12-28 14:29:32 +0800
committerluwenpeng <[email protected]>2022-12-28 14:31:47 +0800
commit38cb6a56e7e10c2586de2d38df21a03effc8f5e7 (patch)
tree14002ee14cce353d1b7498f07154e9107d32ce39 /script
parent60d8f67f851779eeb72a17a1ded956ecaa960e0a (diff)
bugfix: TFE-ENV 将tap0替换成TFE_DEVICE_DATA_INCOMING变量
Diffstat (limited to 'script')
-rw-r--r--script/service/tfe-env.service4
1 files 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}