From e579b80a481294454f5607ad7bec7c8383a86529 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 8 Feb 2015 18:46:48 +0100 Subject: openconnect: ask for the output interface name Signed-off-by: Nikos Mavrogiannopoulos --- .../luasrc/model/cbi/admin_network/proto_openconnect.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols') diff --git a/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua b/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua index e0e63d863..7b213127f 100644 --- a/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua +++ b/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua @@ -19,6 +19,9 @@ port = section:taboption("general", Value, "port", translate("VPN Server port")) port.placeholder = "443" port.datatype = "port" +ifname = section:taboption("general", Value, "interface", translate("Output Interface")) +ifname.template = "cbi/network_netlist" + section:taboption("general", Value, "serverhash", translate("VPN Server's certificate SHA1 hash")) section:taboption("general", Value, "authgroup", translate("AuthGroup")) -- cgit v1.2.3 From 515ad0e08e32390a0b2c7b945fc85a01a0b088e2 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 29 Mar 2015 08:31:26 +0200 Subject: luci-proto-openconnect: Added option for default gateway Signed-off-by: Nikos Mavrogiannopoulos --- .../luasrc/model/cbi/admin_network/proto_openconnect.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'protocols') diff --git a/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua b/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua index 7b213127f..4ed34ae3b 100644 --- a/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua +++ b/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua @@ -22,6 +22,20 @@ port.datatype = "port" ifname = section:taboption("general", Value, "interface", translate("Output Interface")) ifname.template = "cbi/network_netlist" +defaultroute = section:taboption("advanced", Flag, "defaultroute", + translate("Use default gateway"), + translate("If unchecked, no default route is configured")) + +defaultroute.default = defaultroute.enabled + + +metric = section:taboption("advanced", Value, "metric", + translate("Use gateway metric")) + +metric.placeholder = "0" +metric.datatype = "uinteger" +metric:depends("defaultroute", defaultroute.enabled) + section:taboption("general", Value, "serverhash", translate("VPN Server's certificate SHA1 hash")) section:taboption("general", Value, "authgroup", translate("AuthGroup")) -- cgit v1.2.3 From dc6a250a0183d3f489776d1a7fd2dfda7a8c0c5c Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 10 Apr 2015 17:29:42 +0200 Subject: proto_hnet: add missing categories Signed-off-by: Steven Barth --- .../luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols') diff --git a/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua index b76475828..2ed34faf7 100644 --- a/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua +++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua @@ -6,8 +6,11 @@ local map, section, net = ... local mode = section:taboption("general", ListValue, "mode", translate("Category")) mode:value("auto", translate("Automatic")) mode:value("external", translate("External")) +mode:value("internal", translate("Internal")) +mode:value("leaf", translate("Leaf")) mode:value("guest", translate("Guest")) mode:value("adhoc", translate("Ad-Hoc")) +mode:value("hybrid", translate("Hybrid")) mode.default = "auto" -- cgit v1.2.3 From 5934fb4e9dcce36436bfe1334fb545baffb88ab5 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 10 Apr 2015 18:04:56 +0200 Subject: proto_hnet: fix homenet dependency Signed-off-by: Steven Barth --- protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua b/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua index 4e9816bea..c6652186c 100644 --- a/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua +++ b/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua @@ -12,5 +12,5 @@ function proto.is_installed(self) end function proto.opkg_package(self) - return "hnetd" + return "hnetd-full" end -- cgit v1.2.3 From 5ef2946edec96de21d5905fd73fd78cc5aab1b0b Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 10 Apr 2015 18:55:56 +0200 Subject: Fix typo in last commit Signed-off-by: Steven Barth --- protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua b/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua index c6652186c..f525061be 100644 --- a/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua +++ b/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua @@ -12,5 +12,5 @@ function proto.is_installed(self) end function proto.opkg_package(self) - return "hnetd-full" + return "hnet-full" end -- cgit v1.2.3