119 Commits

Author SHA1 Message Date
Franco Fichtner
54ae88aea3 interfaces: correct content-type match, it can have ;charset etc. suffix
PR: https://forum.opnsense.org/index.php?topic=5709.0
2017-08-10 22:29:40 +02:00
Ad Schellevis
c14000892b Merge pull request #1766 from opnsense/license_generate
License overview generation for GitHub
2017-08-09 22:49:25 +02:00
Franco Fichtner
81aed9877d interfaces: add ability to lock vital interfaces
They will prevent any interface mismatch and individual deletion
from the GUI on the assignment page.

PR: https://forum.opnsense.org/index.php?topic=5667.0
2017-08-07 06:07:45 +02:00
Franco Fichtner
bd6c566f2d interfaces: some settings are not in advanced; closes #1735
Maybe the dhcpv6 opts should be, but currently are not.  At least
now the GUI makes this very clear.
2017-08-06 12:42:28 +02:00
Franco Fichtner
c5d4002541 src: add Scott's e-mail everywhere 2017-08-05 20:57:29 +02:00
Fabian Franz
74ba371152 use strings which I guessed from dhcp6c source and copied from RFC 2471; closes #1178 2017-08-05 20:18:22 +02:00
Ad Schellevis
69510a5fad legacy ui pages cleanup for https://github.com/opnsense/core/issues/1733 2017-07-22 15:01:26 +02:00
velati
7681a2915d interfaces: Host-Uniq field in PPPoE connection; closes #1730
PR: https://forum.opnsense.org/index.php?topic=5307.0
2017-07-19 17:29:43 +02:00
Ad Schellevis
8236ddcc5f interfaces.php, rework last 2017-07-14 21:17:10 +02:00
Ad Schellevis
576799a181 interfaces.php, vlan mtu, check with actual parent 2017-07-14 18:54:40 +02:00
Ad Schellevis
093895e37e Networking, side affects. when an "other type" interface is configured it's automatically created, but if the interface got unconfigured it's dropped,leading to broken laggs for example.
We should trust the "other type" create/drop to handle the interface itself and interface_bring_down() should only unconfigure it, so possible parent/child interfaces won't break for no reason.
Fixes part of https://github.com/opnsense/core/issues/1709
2017-07-14 09:42:54 +02:00
Franco Fichtner
96318bd970 plugins: split vpn/newwanip configures 2017-04-29 15:25:25 +02:00
Franco Fichtner
0028518541 interfaces: drop trivia "some XXX want this or that" 2017-04-16 12:47:30 +02:00
Franco Fichtner
6c022705b2 interfaces: tweak whitespace in these strings 2017-04-12 06:17:38 +02:00
Franco Fichtner
c7a488dcb5 rrd: naming conventions and a side note
We have a function pair rrd_import() / rrd_export() now, which do
wildly different things even though they've been used for a single
purpose:

(1) rrd_export() writes a string, appends it to the config.xml

(2) rrd_import() takes a parsed config portion, but not as an
    argument, rather as a global config element

(3) There was also an older backup clue which exported files, but
    simply packed them up for restore after boot

If we can get the system to unify the usage we'll end up with a
neat way of backing, restoring and migrating RRD data, although
I'm not sure if this can be fully compatible with the old files.
2017-03-28 01:06:53 +02:00
Franco Fichtner
9b694b705d start to hide IPsec and OpenVPN for pluginification 2017-03-11 17:51:54 +01:00
Franco Fichtner
bdd1be3962 plugins: not going away anytime soon
If we want to be pluggable, simply delete contents of
/usr/local/etc/inc/plugins.inc.d/ and be done with it.
2017-02-22 15:49:22 +01:00
Franco Fichtner
3bbe389533 interfaces: fix validation of hex in PHP 7
PR: https://github.com/opnsense/core/issues/1331
2017-01-08 09:38:56 +01:00
Ad Schellevis
52b95b80c0 (legacy) cancel button behaviour, closes https://github.com/opnsense/core/issues/1099 2016-12-12 21:34:03 +01:00
Franco Fichtner
836a07c56e interfaces: stray line break in previous 2016-12-09 00:09:04 +01:00
Franco Fichtner
28dccacf78 interfaces: simplify help strings for dhcp config overrides
People who use these know what they are doing, for everybody else
this is just plain confusing.
2016-12-09 00:01:24 +01:00
Franco Fichtner
04ccf983d4 plugins: allow to configure through multiple call sites
This is the glue needed to be entirely plugin-agnostic, it only
needs new hooks for spots we haven't pluginified yet.  The dns
subsystem is another likely candidate in the long run.

Allows to move these plugins away from core: bsnmpd, igmpproxy,
relayd, miniupnpd.  ACL and menu entries pending...
2016-11-20 13:38:13 +01:00
Franco Fichtner
79b87986d5 igmpproxy: pluginify 2016-11-20 12:15:27 +01:00
Franco Fichtner
a0b769e85d bsnmpd: pluginify 2016-11-20 11:49:14 +01:00
Franco Fichtner
715b636793 unbound: clean up includes and function usage
o consolidate "unbound_" prefix for unbound.inc for pluginification
o services.inc includes unbound.inc rightfully, a bit like a
  plugin would do in the future, but this also means we can
  zap all requires from top pages, which are entirely spurious.
o get_dns_servers() moves to system.inc because it is used by
  status_interfaces.php
o RIP read_hosts()
2016-11-14 11:28:01 +01:00
Franco Fichtner
152141866b interfaces: url_safe() redirects for #1168 2016-10-09 18:26:39 +02:00
Franco Fichtner
c852405968 interfaces: wait for dhcp6c to exit et al for #1202 2016-09-29 07:19:49 +02:00
Ad Schellevis
bcd96a58cd (legacy, interfaces) it doesn't look very usefull to fill empty "provider" with 1. 2016-08-23 19:56:34 +02:00
Franco Fichtner
081415d4fa rc: remove IP checks for PPTP and L2TP servers
The console would refuse to assign an IP that was used by the
PPTP or L2TP server (surprisingly not PPPoE).  This rule changed
during the MPD4 -> MDP5 migration, so remove that code.  Also,
the subnet check was never executed, good time to remove it as
well.
2016-08-13 15:18:06 +02:00
Franco Fichtner
b236262878 interfaces: annotate dhcp modes; closes #1052 2016-08-12 07:44:07 +02:00
Franco Fichtner
57bb583c1d interfaces: add missing validation for previous #1052 2016-08-12 07:25:47 +02:00
Fabian Franz
6411baeaa1 translation; closes #1069
Omit the console changes, we are not prepared for improving
the translation there.
2016-08-10 08:34:05 +02:00
Franco Fichtner
3da906b624 interfaces: optionally allow to set txpower
PR: https://forum.opnsense.org/index.php?topic=3462.0
2016-08-01 09:09:44 +02:00
Franco Fichtner
224b5d8247 www: util.inc is provided by guiconfig.inc for #1065 2016-07-22 07:12:21 +02:00
Franco Fichtner
e2998ac4cf interfaces: skip rtsold in case required by ISP for #637 2016-07-16 20:48:46 +02:00
Ad Schellevis
4e3b66c257 zapp pfsense-utils.inc 2016-06-20 16:59:19 +02:00
Ad Schellevis
65aa038255 (legacy) move is_private_ip() to util.inc 2016-06-20 14:33:30 +02:00
Franco Fichtner
f6b554f87e www: consistent use of <?=, some escapes while at it; closes #986 2016-06-11 07:45:49 +02:00
Fabian Franz
123e68c393 some translation fixes 2016-06-02 09:50:23 +02:00
Fabian Franz
50c1d95ada some cleanup and translation 2016-05-31 12:23:07 +02:00
Franco Fichtner
d5654b79a6 interfaces: remove pppoe reset cron handling... #911
... Ad already annotated a few spots, the whole thing is beyond
repair and I dread extending it to PPP and others which has been
asked for a few times now.  We will have to find another way.

To paraphrase Star Trek: He's dead, Jim.

The upside is that the cron config items are flushed by default
now, later we can remove this as we don't care what is in that
unused config section anyway.
2016-05-27 00:02:20 +02:00
Franco Fichtner
0ddccb7cd1 ui: tooltip placement and button alignment; closes #959 2016-05-26 21:24:45 +02:00
Ad Schellevis
91756d8152 (interfaces/dhcpv6 client) add debug option to advanced dhcpv6 client config, closes https://github.com/opnsense/core/issues/859 2016-05-23 13:55:10 +02:00
Franco Fichtner
c8b9eefbcf wireless: remove ancient ath(4) long distance helpers
The original script is from 2005 and most newer ath(4) drivers do not
even support it.  One can still set the sysctls individually anyway,
it's highly likely you know the hardware when you're trying to set
this up in the first place...

See also: https://wiki.freebsd.org/dev/ath(4)
2016-05-22 15:09:27 +02:00
Ad Schellevis
845cb7aff1 add opnsense_standard_table_form class to forms (2) 2016-05-20 18:13:49 +02:00
Ad Schellevis
0b31dc522f add opnsense_standard_table_form class to forms 2016-05-20 17:09:58 +02:00
Franco Fichtner
955b73fdd7 src: strip gettext() from log messages
It only makes debugging harder as our translations are being
completed one after the other.  Also has the positive side-
effect of freeing a few hard-to-do translations in the process.
2016-05-16 00:28:22 +02:00
Ad Schellevis
51531ca047 (legacy) interface subnet allow /31 https://github.com/opnsense/core/issues/934 2016-05-09 09:53:06 +02:00
Fabian Franz
e6ed1c4acb translation in interfaces.php 2016-04-15 17:36:34 +02:00
Franco Fichtner
7c80504e93 interfaces: fix a chopped translation 2016-04-13 08:22:48 +02:00