mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Put 6in4 support in an other package
This commit is contained in:
parent
3652b85cef
commit
fe39ad4d90
4 changed files with 68 additions and 7 deletions
|
@ -1,20 +0,0 @@
|
|||
#!/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
|
||||
add_list firewall.@zone[2].network=omr6in4
|
||||
commit firewall
|
||||
EOF
|
||||
rm -f /tmp/luci-indexcache
|
||||
fi
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue