6955 Commits

Author SHA1 Message Date
Franco Fichtner
8e4e129e2e dynamic dns: pluggable ACLs, consolidation...
* RFC2136 missed the edit page completely
* DynDNS ACLs merged, we do it by feature
2017-04-03 07:31:21 +02:00
Ad Schellevis
5f17abb3fa (ids) fix for https://github.com/opnsense/core/issues/1516 2017-04-02 19:42:16 +02:00
Ad Schellevis
83488b6710 (proxy) virtualip's should be added automatically for listening configuration, this was the case for some types, but not for all (CARP) 2017-04-02 12:22:03 +02:00
Ad Schellevis
e52e251e5e (proxy) decode content when downloading ACL, closes https://github.com/opnsense/core/issues/1510 2017-03-30 06:56:59 +02:00
Franco Fichtner
8d745baa6c plugins: simplify this before next step 2017-03-29 19:14:37 +02:00
Franco Fichtner
ddcc54f48f plugins: lose the eval(), switch to include_once
Note that require_once is bad as well here, because it throws another
uncatched error as opposed to a warning when a file has not been found.
Now it is better in recovery, although 99% of the time this is supposed
to deal with syntax errors during bad core/plugin updates or manual
user edits.

It's also useful to note that the errors/warnings still make their way
to the crash reporter so we can do something about them.

Suggested by: @fabianfrz
2017-03-29 11:52:05 +02:00
Franco Fichtner
f81085dfc0 plugins: if a component has a faulty syntax...
simply eval() it and log the error instead of stopping execution.

We don't get to source the code, but since for strict plugins
there is no direct code execution the plugin acts as if it was
deinstalled.

As the plugin scope is growing rapidly, we need this to be able to
guarantee error-free execution in the widest possible sense.  This
doesn't currently protect function calls, but the same thing must
be done there as well.
2017-03-29 09:35:59 +02:00
Franco Fichtner
264c5655c4 web proxy: fix typo
PR: https://lists.opnsense.org/pipermail/devel/2017-March/000012.html
2017-03-28 15:24:54 +02:00
Franco Fichtner
a2381e6cd9 system: do not prompt for password on user edit
PR: https://lists.opnsense.org/pipermail/users/2017-March/000062.html
2017-03-28 13:48:56 +02:00
Franco Fichtner
122deaf904 menu: unpack the remaining DNS Tools into Services 2017-03-28 06:50:52 +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
4ca71c3234 interfaces: one sweep through the file 2017-03-28 00:39:53 +02:00
Ad Schellevis
88787945d1 crash report, "missing style", closes https://github.com/opnsense/plugins/issues/99 2017-03-27 18:46:35 +02:00
Franco Fichtner
3a7f8310fe rc: touch-and-go on the tabs while here 2017-03-27 09:12:39 +02:00
Franco Fichtner
92fab6528f rc: don't (re)set shell privileges on password reset anymore
The admins group has this now, it makes more sense there as several
people ran into the issue of "my user is admin, but cannot login".

Besides, the privilege sets /bin/csh as the user shell, which we don't
use for root as we have /usr/local/etc/rc.initial there.
2017-03-27 09:10:39 +02:00
Franco Fichtner
2339147d09 menu: "DNS Tools" no more 2017-03-27 06:49:41 +02:00
Franco Fichtner
3d5d4444a7 openssh: start earlier, eventually use this spot for web GUI too 2017-03-27 06:46:27 +02:00
Franco Fichtner
5f653cf0b9 ipsec: put back the lock, because...
rc.newwanip, rc.newwanipv6, interface_configure() and interfaces_configure()
all call ipsec_configure_do(), which is no wonder why the code can be prone
to races.
2017-03-27 06:29:24 +02:00
Franco Fichtner
f3c0f74fbe rc: more tabs vs. spaces 2017-03-27 06:28:26 +02:00
Franco Fichtner
1f8e73ba9c src: whitespace sweep 2017-03-26 21:41:27 +02:00
Franco Fichtner
5ba281e8ea ipsec: switch include order 2017-03-26 21:32:38 +02:00
Franco Fichtner
8ccff0a515 rc: drop a spurious comment 2017-03-26 21:14:04 +02:00
Franco Fichtner
e4113804e0 dynamic dns: if we change/split these scripts, we can also rename them
".update" does not bring any value to the table, especially since there
is no other script there and the intent is somewhat clear...
2017-03-26 21:11:17 +02:00
Franco Fichtner
6e599ed47d rc: fix tabs vs. spaces in dynamic dns scripts 2017-03-26 21:07:42 +02:00
Franco Fichtner
c1055e1ddc ipsec: zap empty line 2017-03-26 20:56:36 +02:00
Franco Fichtner
eb80fa683c pkg: fix plist for unbound additions 2017-03-25 17:09:44 +01:00
Franco Fichtner
802157a3a1 xmlrpc: switch base/kernel version file 2017-03-25 17:03:57 +01:00
Fabian Franz
1ada56947a unbound debugging (#1504) 2017-03-25 17:01:36 +01:00
Ad Schellevis
a6fc0d5586 Merge pull request #1498 from fabianfrz/squid_hardening
harden ciphers and tls versions
2017-03-25 08:37:46 +00:00
Franco Fichtner
867a9a953d mvc: first scoping fix was before for, that obviously didn't work; closes #1245 2017-03-25 08:35:01 +01:00
Franco Fichtner
465cd35a9e mvc: work around Phalcon volt scoping issue
PR:  https://forum.opnsense.org/index.php?topic=4860
See: https://github.com/phalcon/cphalcon/issues/12648
2017-03-25 08:24:04 +01:00
Ad Schellevis
b6c6eec21e (ipsec) missing ca for Mutual RSA, for https://github.com/opnsense/core/issues/1497 2017-03-23 20:58:33 +01:00
Ad Schellevis
7504bd00a2 (mvc) volt templates scope issues, closes https://github.com/opnsense/core/issues/1500 2017-03-23 20:39:14 +01:00
Fabian Franz
98716bd751 harden ciphers and tls versions - Note: SSL cannot be disabled because it does not exist 2017-03-22 11:19:50 +01:00
Franco Fichtner
4c087a2874 openvpn: of course, skip mismatch in previous ;) 2017-03-22 09:13:28 +01:00
Franco Fichtner
b521b24ce0 openvpn: restart single instance by id
This looks a bit odd when we have the full struct and pass it down,
but is way easier to maintain than to tell the underlying code
this is a server or a client or whatever, because it shouldn't
matter as the vpnid is unique anyway.
2017-03-22 08:52:05 +01:00
Franco Fichtner
aff94b55a3 openvpn: naming and call conventions, pull more internal code into plugin
Looking at openvpn_configure_server() and openvpn_configure_client()
it becomes a bit clearer why they take a config.xml subset: it's beause
the write_config() ordering was flipped.  We could probably now pass
an ID and let the code figure out if it is a client or server...
2017-03-22 08:22:52 +01:00
Franco Fichtner
8ba7da8fc2 plugins: exclude both '.inc' and '.class' 2017-03-22 07:14:47 +01:00
Franco Fichtner
1464b111f3 plugins: clearly annotate the reason why this is bad in general 2017-03-22 07:10:38 +01:00
Franco Fichtner
200bd3eefa plugins: protect against faulty updates
Switching the tty causes the terminal to exit, which means
the package upgrade jobs are not done, leaving files in the
system that shouldn't be there.

The $search parameter is unused.
2017-03-22 06:39:43 +01:00
Franco Fichtner
6c57fc7a9e dyndns: fix tabs vs. spaces and indent 2017-03-22 06:15:15 +01:00
Franco Fichtner
b990aad69c services: fix a crash report 2017-03-22 06:14:41 +01:00
Franco Fichtner
a561aa5ef8 dns: if at first you don't succeed...
... wrap with array() to proceed!
2017-03-21 09:16:41 +01:00
Franco Fichtner
399b9090a4 dns: make DNS services fully pluggable #1491 2017-03-21 08:53:23 +01:00
Franco Fichtner
4a4352610a dns: consolidate previous, remove service names hack... #1491
... that was written at a time when either Unbound or Dnsmasq
could run, but nowadays both can run in tandem which "breaks"
the service widget on the log page.  The log page now belongs
to the Unbound service.
2017-03-21 08:26:01 +01:00
Franco Fichtner
2e19f4ecad dns: restructure services menu for #1491 2017-03-21 08:09:36 +01:00
Franco Fichtner
12c3c0c2cb ipsec: mobike is only for IKEv2, coding style
Submitted by: Armin Tüting
2017-03-21 07:07:11 +01:00
Ad Schellevis
336cbd67dd (gwlb.inc) simplify things a bit more and add get_interface_gateway_v6() 2017-03-20 21:14:14 +01:00
Franco Fichtner
8cb35f8b02 rfc2136: le widget! closes #996 2017-03-20 10:50:44 +01:00
Franco Fichtner
500539234d firewall: properly reload cron for scheduled rules; closes #1483 2017-03-20 08:45:18 +01:00