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:
parent
72f995d069
commit
babc9f4aed
2 changed files with 19 additions and 1 deletions
18
openmptcprouter/files/etc/uci-defaults/2010-omr-6in4
Executable file
18
openmptcprouter/files/etc/uci-defaults/2010-omr-6in4
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue