Commit graph

116 commits

Author SHA1 Message Date
Jo-Philipp Wich
680a6d2ad3 luci-proto-relay: propagate up state, do not forward netifd errors
Due to historical reasons, the relayd daemon configuration resides in the
form of a fake "config interface" section in /etc/config/network without
actually registering a protocol handler.

This causes netifd to emit an "INVALID_PROTO" error for the interface
which is technically correct, but confusing for LuCI users.

This situation needs to be resolved upstream by either moving relayd
configuration out of the network config, or by converting the relayd
service into a proper protocol handler.

Until this happens, do not report any netifd errors since we're not
operating on an actual interface.

While we're at it, also propagate the protocol up state from the fake
virtual device to ensure that LuCI displays the relay bridge as "up"
when all relayed interfaces are up as well.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit aae187dedf)
2018-07-28 17:14:22 +02:00
Dmitry Tunin
ffed0206b9 luci-proto-ncm: remove unrelated options
This removes all options 100% unrelated to NCM protocol.
Some options like 'dns' are not currently used by connection scripts,
but may be used in the future.

Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
(cherry picked from commit 6d03051e95)
2018-07-26 20:26:54 +02:00
Dmitry Tunin
a6b2b29dc6 luci-proto-ncm: add pdptype option
Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
(cherry picked from commit 58fd0749de)
2018-07-26 20:26:50 +02:00
Dmitry Tunin
beb9ab2daa luci-proto-ncm: add modem default mode
Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
(cherry picked from commit 57439d8daa)
2018-07-20 08:48:39 +02:00
Jo-Philipp Wich
b8b87182f6 luco-proto-ipv6: allow multiple prefixes for 6in4 and dhcpv6
Fixes FS#1361.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 60e7ea2fc8)
2018-07-17 16:20:15 +02:00
Jo-Philipp Wich
401898a437 luci-proto-qmi: register further network error codes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:10:59 +02:00
Jo-Philipp Wich
5f2aa8d475 luci-proto-ncm: register further network error codes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:10:59 +02:00
Jo-Philipp Wich
80ed1af639 luci-proto-ipv6: register further network error codes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:10:59 +02:00
Dirk Brenken
36b6d98747
Merge pull request #1937 from LuKePicci/luci-proto-ppp_pppoe_host-uniq
luci-proto-ppp: expose pppoe host_uniq tag setting
2018-07-09 21:55:02 +02:00
LuKePicci
265b0ebbd4 luci-proto-ppp: expose pppoe host_uniq tag setting
Signed-off-by: Luca Piccirillo <luca.piccirillo@gmail.com>
2018-07-09 17:53:08 +02:00
rwalli
140f41b40f
Add description 2018-07-08 19:46:10 +02:00
Kevin Darbyshire-Bryant
8f67019713 wireguard: update wireguard url
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2018-06-11 11:43:39 +01:00
Florian Eckert
f6aec9fe21 luci-proto-3g: make it a self-contained package
The follow error will appear after clicking "Switch protcol" to 3g when
luci-proto-3g was not installed.  Fix this by moving the relevant parts
from luci-proto-ppp into luci-proto-3g and making it complete as a
single protocol handler

> Missing protocol extension for proto "3g"
> cannot open /usr/lib/lua/luci/model/cbi/admin_network/proto_3g.lua: No such file or directory

Closes openwrt/luci#1815

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-28 22:28:30 +08:00
Florian Eckert
9e3fb2c585 luci-proto-ipv6: remove outdated aiccu proto support
Remove outdated package for luci proto section.
See commit:
441f8a3ed1

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-25 12:04:28 +02:00
Florian Eckert
54455719e5 luci-proto-ppp: add translation to ipv6 handling
If there is no translation set, then on material theme the dropdown
selection displaced. To fix this add an translation to this dropdown.

The commit also changes source code whitespace shifting.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-07 14:03:32 +08:00
Jo-Philipp Wich
4d6c5d284b luci-proto-ipv6: clarify 6in4 local address hint
Make the hint message more explicit to tell users that the prefix size needs
to be specified as well.

Fixes #1559.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-06 08:49:41 +02:00
square.wf
43589ae4d8
Fix #1609: luci-proto-wireguard placeholder wrongfully suggests default port 2018-01-30 15:38:31 +01:00
Jo-Philipp Wich
932bae9873 protocols: fix various interface patterns
The virtual interface match patterns of various protocols were improperly
quoted, causing them to over- or undermatch.

Follow up of #1435.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 14:20:53 +01:00
Martin Schiller
f8b1b8a47a luci-proto-ipv6: fix patterns in proto_4x6.lua
The dash '-' needs to be escaped by a '%', otherwise it will
be interpreted as minus, which means '0 or more repetitions'.

This fixes LEDE FS#1157.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2017-11-10 13:49:45 +01:00
Hannu Nyman
1ba412dcd9 luci-proto-vpnc: fix typo
fix: 'enaled' --> 'enabled'

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-09-24 10:10:34 +03:00
Hannu Nyman
cb557f61c3 Merge pull request #1194 from TDT-GmbH/add-license-tags
Add license tags
2017-06-20 16:40:48 +03:00
Yousong Zhou
dfd082c53b luci-proto-openconnect: remove "interface" field
It's not needed anymore and removed in the openconnect package

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-19 11:26:36 +08:00
Yousong Zhou
cf8146ff67 luci-proto-openconnect: allow setting mtu, password2
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-19 11:21:47 +08:00
Quirin Hofstaetter
d40bb2e60e luci-proto-ppp: add license tag
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
2017-06-13 13:40:28 +02:00
Quirin Hofstaetter
a4bee3de51 luci-proto-ipv6: add license tag
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
2017-06-13 13:40:25 +02:00
Jo-Philipp Wich
f01e49210b luci-proto-wireguard: use "Optional" instead of "Optional." as translation
This allows sharing the translation string with other components.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-30 21:45:54 +02:00
Jo-Philipp Wich
830f2245a8 luci-proto-ipv6: use "Automatic" instead as "automatic" as translation label
This allows sharing a common translation string with all other protocols.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-30 20:20:34 +02:00
Jo-Philipp Wich
10057db9b1 luci-proto-openconnect: fix authgroup translation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-30 20:16:29 +02:00
Jason A. Donenfeld
b9b64aae96 wireguard: preshared-key is now an attribute of the peer
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-05-09 16:51:40 +02:00
Hannu Nyman
9f165132a6 luci-proto-vpnc: remove unnecessary fields from Makefile
Remove unnecessary fields from Makefile and
rely on LuCI automatics.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-04-23 13:03:58 +03:00
Hannu Nyman
180f2d670a Merge pull request #956 from lucize/master
Add luci-proto-ncm for comgt-ncm
2017-03-19 16:55:45 +02:00
danrl
cd8333cf0b luci-proto-wireguard: add support for fwmark option
Adds support for the fwmark option.

FwMark is a 32-bit fwmark for outgoing packets.
If set to 0 or "off", this option is disabled.

Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-02-27 20:48:46 +01:00
Dan Lüdtke
517d430f65 luci-proto-wireguard: mark package as arch indep.
Marks package luci-proto-wireguard as architecture independent.

Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-02-16 21:50:39 +01:00
danrl
8fc55591b9 luci-proto-wireguard: stricter input validation
Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-02-15 10:03:29 +01:00
danrl
a9463d3d1a luci-proto-wireguard: fix wrong maximum MTU
Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-02-03 21:05:01 +01:00
Lucian Cristian
a2349fac27 Add luci-proto-ncm for comgt-ncm
NCM is used by some 3G/LTE dongles.
First introduced in 51a5ff0947

light modified file taken from OpenWRT/Gargoyle github
https://github.com/obsy/packages/tree/master/luci-proto-wwan

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2017-01-17 18:21:55 +02:00
danrl
77ea7c8c7e luci-proto-wireguard: enable addressing for tunnel interfaces
Enable static addresses on WireGuard tunnel interfaces without requiring
an static address interface.

This removes the requirement to use a static address interface on top of a
WireGuard tunnel interface in the majority of cases. In the past, users have
been confused by the current approach and asked for a simpler way to configure
WireGuard interfaces.

Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-01-14 17:12:36 +01:00
Daniel Dickinson
e063597d65 Merge pull request #840 from TouchStar/support_proto_qmi
luci-proto-qmi: Added support for QMI Cellular
2016-12-21 18:44:01 -05:00
David Thornley
819e8cd41b luci-proto-qmi: Added support for QMI Cellular
Derived mostly from (ppp) 3g implementation. Currently exposing the following configuration through cbi (apn/pincode/username/password/auth/ipv6).

Signed-off-by: David Thornley <david.thornley@touchstargroup.com>
2016-12-15 13:34:22 +11:00
Christian Schoenebeck
1fd43b4b65 Merge pull request #787 from rogerpueyo/luci-proto-ipip
luci-proto-ipip: Add package
2016-12-01 20:33:44 +01:00
danrl
3bfc32f541 luci-proto-wireguard: Fix misleading description
Description was misleading, as the routes are not created automatically. We have
a flag to create routes. Added a hint what to fill into the AlledIPs field as
users repeatedly have struggled to use it correctly. Thanks to Stefan Agner for
providing feedback on this.

Signed-off-by: Dan Luedtke <mail@danrl.com>
2016-12-01 09:01:35 +01:00
Roger Pueyo Centelles
d8b3515cd4 luci-proto-ipip: Add package
This package adds LuCI support for IPIP tunnels (IPv4-in-IPv4 RFC2003)

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2016-11-21 11:27:23 +01:00
danrl
e610bfa1f7 luci-proto-wireguard: do not depend on meta-package
Signed-off-by: Dan Luedtke <mail@danrl.com>
2016-11-19 15:00:01 +01:00
danrl
eb44a58c6d luci-proto-wireguard: input validation optimization 2016-11-15 23:57:23 +01:00
Dan Lüdtke
f9f4145bbd luci-proto-wireguard: added maintainer
Signed-off-by: Dan Lüdtke <mail@danrl.com>
2016-11-15 21:43:09 +01:00
danrl
9caa982c19 luci-proto-wireguard: WireGuard VPN Protocol (New)
WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
more useful than IPSec, while avoiding the massive headache. It intends to
be considerably more performant than OpenVPN.  WireGuard is designed as a
general purpose VPN for running on embedded interfaces and super computers
alike, fit for many different circumstances.
It runs over UDP.

Signed-off-by: Dan Lüdtke mail@danrl.com
2016-11-15 21:43:09 +01:00
Juan Manuel M
d4176328df luci-proto-vpnc: further typo fixes 2016-06-28 16:43:42 +02:00
Juan Manuel M
3a6c2872c6 Fixed luci-proto-vpnc typos which rendered it unusable 2016-06-28 11:01:41 -03:00
Jo-Philipp Wich
6619e66fc9 luci-proto-ipv6: allow hostnames for dslite peer addresses (#621)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-10 13:19:34 +01:00
Jo-Philipp Wich
0dcb549841 Merge pull request #579 from cshore/pull-request-protocol-vpnc
protocols: vpnc: Add vpnc as a network protocol
2015-12-17 02:38:41 +01:00