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

Add 6in4 support

This commit is contained in:
Ycarus 2018-04-27 16:52:12 +02:00
parent 72f995d069
commit babc9f4aed
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
#!/bin/sh
. /lib/functions.sh
if [ "$(uci -q show network | grep omr6in4)" = "" ]; then
uci -q batch <<-EOF
set network.omr6in4=interface
set network.omr6in4.proto=6in4
set network.omr6in4.ip4table=vpn
set network.omr6in4.multipath=off
set network.omr6in4.ipaddr=10.0.0.2
set network.omr6in4.peeraddr=10.0.0.1
set network.omr6in4.gateway=fe80::a00:1
commit network
EOF
rm -f /tmp/luci-indexcache
fi
exit 0