1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
openmptcprouter-feeds/omr-6in4/files/etc/uci-defaults/9010-omr-6in4
2018-06-07 22:43:16 +02:00

20 lines
488 B
Bash
Executable file

#!/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.255.255.2
set network.omr6in4.peeraddr=10.255.255.1
set network.omr6in4.gateway=fe80::a00:1
commit network
add_list firewall.zone_vpn.network=omr6in4
commit firewall
EOF
rm -f /tmp/luci-indexcache
fi
exit 0