1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Add a ttl for 6in4 tunnel

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-09 10:57:33 +01:00 committed by suyuan
parent af535aa74b
commit ebb7e19cfb

View file

@ -30,7 +30,7 @@ while true; do
commit network
EOF
if [ -n "$(ip tunnel | grep omr6in4)" ]; then
ip tunnel change "6in4-omr6in4" mode sit local ${addr} remote ${peer} > /dev/null 2>&1
ip tunnel change "6in4-omr6in4" mode sit local ${addr} remote ${peer} ttl 64 > /dev/null 2>&1
else
ifup omr6in4 > /dev/null 2>&1
fi