2749 Commits

Author SHA1 Message Date
Franco Fichtner
c8052a87fb unbound: style sweep 2018-02-26 14:55:16 +00:00
Ad Schellevis
8700e9f5fa dhcpd / uefi 64 network boot using wrong arch type, closes https://github.com/opnsense/core/issues/2223 2018-02-25 11:37:18 +01:00
Ad Schellevis
1a415b9ea2 fix typo and style fixes for https://github.com/opnsense/core/pull/2222 2018-02-24 15:21:34 +01:00
Namezero
734ad0fe0f
auto route disable 2018-02-23 20:42:37 +01:00
Ad Schellevis
31282787df Interfaces / reconfigure
* remove race conditions in interface_bring_down() so when an old configuration is provided we will actually use the contents of that configuration.
* Next make sure we only save the first occurrence of a changed interface until an apply is hit, to prevent lossing the running configuration.
* Do some additional cleanups for removing virtual ip's when an interface is requested to go down.

For https://github.com/opnsense/core/issues/2221
2018-02-23 19:01:47 +01:00
Ad Schellevis
47cd4bea29 ntpd, add missing stratum level. closes https://github.com/opnsense/core/issues/2219 2018-02-23 13:44:31 +01:00
Franco Fichtner
b46fc7fe4c radvd: style tweak 2018-02-16 14:52:30 +01:00
Franco Fichtner
b85cd97da0 rc: proper includes
PR: https://forum.opnsense.org/index.php?topic=7320.0
2018-02-15 14:24:04 +01:00
Martin Wasley
5a0306e66f RADVD Problem on PPPeO link without public IPv6 address (#2200)
PR: https://forum.opnsense.org/index.php?topic=7304.0
2018-02-15 08:51:03 +01:00
Franco Fichtner
00b6bcefc4 intrusion detection: straighten syslog output
If enabled, now consistenly log into a clog suricata.log.  Since
the last rework suricata syslog output landed in system.log because
the suricata.syslog.log file was removed, but this one was never
read because syslog.log was not a real log file.
2018-02-14 20:51:08 +00:00
Franco Fichtner
0bd1d466f0 unbound: tweak previous
* Add all documented types
* Do not translate types, difficult to express in a label
* Move validation to config-save time
* Modify help text, default is in the manual
* Simplify naming
* Use empty as "transparent" for backwards compat
* Properly escape option value

CC: @NOYB
2018-02-14 08:40:55 +00:00
NOYB
0df6c357f7 Services - Unbound DNS - General - System Domain Local Zone Type Option
Expose system domain unbound local-zone type to be configurable.
2018-02-14 08:56:24 +01:00
Franco Fichtner
25a9eed20b system: add more logging, this is too fragile 2018-02-13 12:26:21 +00:00
Ad Schellevis
cb4d95fee5
Merge pull request #2193 from jeis2497052/master
Propose fix some typos
2018-02-12 16:27:24 +01:00
John Eismeier
bc4ca0b895
Propose fix some typos 2018-02-12 10:25:21 -05:00
Ad Schellevis
7704e3ec34 firewall/alias, URL (IPs) alias type missing in selections 2018-02-12 08:59:28 +01:00
Franco Fichtner
01f38e3135 rc: "tweak" previous, but it's practically unfixable 2018-02-09 07:37:27 +00:00
Ad Schellevis
c5555b2ebc firewall/aliases, set alias update/check interval to 1 minute and align update to configd call. for https://github.com/opnsense/core/issues/2162
This was a bit forgotten, since the new alias update handles all types of aliases using different expiry intervals, we need to make sure we actually probe our changes in time, otherwise it's impossible to expire dns entries within a reasonable timeframe.
2018-02-08 21:14:51 +01:00
Franco Fichtner
b5a3ad126b rc: fix access to shell for now
PR: https://forum.opnsense.org/index.php?topic=7222.0
2018-02-08 19:01:46 +01:00
Franco Fichtner
b12f9212dc unbound: optimize outgoing-range differently; closes #2172
"- 50" would will eventually underflow.  According to the official
docs in the libevent case we set double num-queries-per-thread, so
that's what we'll do and kick the other code.

While here, seems like the GUI options for the default value are
missing which causes the num-queries-per-thread value to decrease
to 512, reducing the outbound-range with it arbitrarily.

See: https://www.unbound.net/documentation/howto_optimise.html
2018-02-06 19:15:39 +00:00
Franco Fichtner
49a2bc6584 system: a bit more magic to keep things from breaking; closes #2154 2018-02-05 06:50:17 +00:00
Franco Fichtner
5a9f6c4cfb system: remove the user-shell-access privilege #2154
Eventually, the two remaining user privileges should be killed
as well in favour of similar approaches.  The ACL should be for
page access, not more, not less.
2018-02-04 19:27:21 +00:00
Franco Fichtner
c8bdf3e92f system: allow shell selection for user, prepped a long time ago #2154 2018-02-04 19:24:47 +00:00
Franco Fichtner
e09dc8c91a rc: recover all known shells, plus zsh, scponly and bash... #2154 2018-02-04 18:47:09 +00:00
Franco Fichtner
d94f592213 system: fallbacks without logs are bad, this cannot happen
If we don't have default gateways and no connectivity, we cannot
rely on the idea that "WAN" will save us.  It could be an OPT interface
instead...

PR: https://github.com/opnsense/core/issues/2164
2018-02-03 20:12:14 +01:00
Franco Fichtner
f09eaf7f3a system: default gateway disappears, needs more refactoring for clarity
PR: https://github.com/opnsense/core/issues/2164
2018-02-03 20:01:29 +01:00
Franco Fichtner
64ad42d349 intrusion detection: log viewer; closes #2158
While here strip empty logs...
2018-02-03 15:43:37 +00:00
Franco Fichtner
4cdfe13bc4 openssh: prevent SFTP login for non-admins...
unless explicity configured.  We set "admins" in the default
config with also adds "wheel" underneath, but some systems may
not use "admins" so that doesn't work then.

PR: https://forum.opnsense.org/index.php?topic=6994.15
2018-01-31 21:19:10 +00:00
Franco Fichtner
d8f661f86a firmware: remove update glue, we're done 2018-01-29 17:59:57 +01:00
Franco Fichtner
2fc86a72bf openssh: do not allow sftp login for non-admins
Also suggested by @fabianfrz.  Not perfect yet as we seem
to mix wheel with access and either need to lock down shell
access along with it or somehow tag along the shell privilege.

Small race in the group setting on the user page.

PR: https://forum.opnsense.org/index.php?topic=6994.0
2018-01-27 13:41:59 +00:00
NOYB
816ddcbb57 Fix a typo 2018-01-27 08:53:38 +01:00
Franco Fichtner
b99968fb00 ntp: use all time servers, prefer the first 2018-01-26 11:18:12 +01:00
Alexander Shursha
8ad0a66869 Optimize exec('/usr/local/bin/openssl version') 2018-01-26 07:54:16 +01:00
NOYB
0c19c7b08a Viewport User Scalable 2018-01-24 08:19:01 +01:00
NOYB
6ef9a127ff HTML Compliance - Attribute "type" on Element <script>
Warning: The type attribute is unnecessary for JavaScript resources.

HTML5: Edition for Web Authors
http://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html
The default, which is used if the attribute is absent, is "text/javascript".

The Script element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type.
2018-01-22 19:13:34 +01:00
NOYB
f509437f84 HTML Compliance - Attribute "content" value on Element <meta>
Error: A meta element with an http-equiv attribute whose value is X-UA-Compatible must have a content attribute with the value IE=edge.

The "Chrome=1" value was used to spawn Chrome Frame in IE 6,7,8,9.  However, "Google Chrome Frame was discontinued in January 2014", and think all IE<11 is beyond EOL.
So is this even needed/useful?

If needed/useful it would probably be better to support deployment by HTTP headers method instead.

Google Chrome Frame
https://en.wikipedia.org/wiki/Google_Chrome_Frame
2018-01-20 13:54:58 +01:00
Franco Fichtner
947718b44b firewall: fix booting alias resolve for #2102
While here, also honour ssl_no_verify and plug in force
usage in the right spot (currently unused but still).
2018-01-18 09:52:00 +01:00
Franco Fichtner
c371155455 rc: since configctl prints "OK" we need a sensible preamble 2018-01-17 11:24:10 +01:00
Franco Fichtner
3869385096 rc: defer newwanip not exectued during boot
PR: https://forum.opnsense.org/index.php?topic=6891.0
2018-01-16 20:10:01 +01:00
Franco Fichtner
cd5e23360f rc: show argument for defer, order was wrong
PR: https://forum.opnsense.org/index.php?topic=6891.0
2018-01-16 17:58:49 +01:00
Franco Fichtner
585d251ae7 rc: annotate reason in the code, too 2018-01-15 22:01:47 +01:00
Franco Fichtner
d26c77a1ea rc: same fix for /tmp MFS
If users want read-only media they need to put their own
/etc/fstab entries into the system as the MFS options from
the config should not work under unknown conditions.
2018-01-15 21:59:59 +01:00
Franco Fichtner
653651046f firewall: move alias directory to persistent memory
PR: https://forum.opnsense.org/index.php?topic=6843.0
2018-01-15 18:44:07 +01:00
Franco Fichtner
39a22b7066 rc: we are stuck with these workarounds forever 2018-01-15 18:05:21 +01:00
Franco Fichtner
817d10955d rc: recover php.ini files just in case 2018-01-15 17:04:35 +00:00
Franco Fichtner
eaffc0edc4 rc: prevent /var MFS transition on install media after import 2018-01-15 17:30:59 +01:00
Franco Fichtner
56517b529a rc: remove 32 bit mmap allow workaround
The final 18.1 kernel will have the default switched for clarity.
2018-01-15 15:19:38 +01:00
Franco Fichtner
85ac021e56 rc: no, we need another mode for the full restore 2018-01-15 11:08:33 +01:00
Franco Fichtner
66d7e80dd1 rc: even more so, restore a non-existent root account 2018-01-15 11:02:16 +01:00
Franco Fichtner
7bbfc26329 rc: make password reset more consistent in `-h 0' mode
We want to be able to access the root account again after all.
2018-01-15 10:58:13 +01:00