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

Glorytun UDP support and fix 6in4

This commit is contained in:
Ycarus 2018-05-30 14:33:12 +02:00
parent e11e60bc5d
commit af8dc743c2
8 changed files with 22 additions and 15 deletions

View file

@ -7,10 +7,10 @@ require("luci.model.uci")
local basicParams = {
--
--
-- Widget, Name, Default(s), Description
--
{ Flag,"enable",0, translate("Enable") },
{ Value,"port",65001, translate("TCP port # for both local and remote") },
{ Value,"dev","tun0", translate("Interface name") },

View file

@ -15,15 +15,20 @@ uci -q batch <<-EOF >/dev/null
delete network.glorytun=interface
set network.glorytun=interface
set network.glorytun.ifname=tun0
set network.glorytun.proto=static
set network.glorytun.ipaddr=10.0.0.2
set network.glorytun.netmask=255.255.255.0
set network.glorytun.gateway=10.0.0.1
# set network.glorytun.proto=static
# set network.glorytun.ipaddr=10.0.0.2
# set network.glorytun.netmask=255.255.255.0
# set network.glorytun.gateway=10.0.0.1
set network.glorytun.ip4table=vpn
set network.glorytun.multipath=off
set network.glorytun.leasetime=12h
commit network
EOF
# set network.glorytun.proto=static
# set network.glorytun.ipaddr=10.0.0.2
# set network.glorytun.netmask=255.255.255.0
# set network.glorytun.gateway=10.0.0.1
if [ "$(uci -q show firewall | grep vpn)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add firewall zone