9387 Commits

Author SHA1 Message Date
Ad Schellevis
73e63bca64 another take at https://github.com/opnsense/ui_devtools/issues/3 2018-09-04 20:58:00 +02:00
Fabian Franz BSc
a7bc218801 core: fix configd asList helper (#2687) 2018-09-04 18:51:10 +02:00
Franco Fichtner
2b323f6dcd system: small ACL name oddity 2018-09-04 07:01:13 +02:00
Franco Fichtner
c61ece51fe interfaces: address stripping works, avoid destroy... #2661
... as it can cause reconfigure loops, at least with a faulty config.
2018-09-03 23:39:07 +02:00
Franco Fichtner
91ecc980bd interfaces: display of prefix ID is wrong here; closes #2622
We still have the validation on save which is correct.  While
here improve the help text.
2018-09-03 23:09:15 +02:00
Franco Fichtner
92fc44c365 interfaces: audit find_interface_ipv6() and callers 2018-09-03 22:44:52 +02:00
Ad Schellevis
18dcbcbd72 skip reading when firmware-product doesn't exist, avoids issues when running stand-alone for https://github.com/opnsense/ui_devtools/issues/3 2018-09-03 21:21:15 +02:00
Franco Fichtner
b6b3a5ad1d interfaces: rework interface_bring_down() et al to do the right things
This function looks innocent enough but has potential to mess with the
wrong interfaces or do operations all over or just general code drift
that doesn't seem so nice nowadays.

Tested on static LAN with WAN track and dhcp4/6 over there.  Also
survices a reboot which is good enough for a first commit.  More testing
to come.

Also destroys 6rd/6to4 tunnel devices now although the scrubbing of
the interface should work after this rework.  Just trying to stay
consistent with the configure functions which destroy the interface
on each configure run.

Copyright in file since 2015 when work started to remove the PHP module.
A multitude of improvemets followed ever after.

Related PR: https://github.com/opnsense/core/issues/2661
2018-09-03 17:10:53 +00:00
Franco Fichtner
d24ef0f940 src: whitespace sweep 2018-09-03 08:37:29 +02:00
Franco Fichtner
2935f5689a importer: tweak previous, first pass
/dev/zfs/pool does not exist so we can do a "zfs/pool" input
in alignment with gmirror and graid inputs.  Move the probing
after zfs load to be able to unload again also.
2018-09-02 17:16:11 +02:00
Alexey Prokopchuk
1ca7c0081d Added probe and list for ZFS pools in opnsense-importer 2018-09-02 16:44:40 +02:00
Alexey Prokopchuk
e07927fbe2 Added probe for ZFS pool on partition 2018-09-02 16:44:40 +02:00
Franco Fichtner
a1a153946a interfaces: tweak previous, only set mtu when valid 2018-09-02 14:44:28 +02:00
Giulio Cervera
15acbad935 interfaces: get pfsync0 mtu from real interface
in some situation, like OpenStack, mtu is less then default (1500) and
it cause replication issue
we have noticed on a low used firewall with 2/3k State table size more
then 100k State table size on the backup server

copy mtu from real interface fix this issue
2018-09-02 14:36:38 +02:00
Franco Fichtner
25f9c31238 ui: static pages cache-safe stuff; closes #2367 2018-09-02 14:33:57 +02:00
Franco Fichtner
19871e054f ui: cache_safe() for MVC #2367 2018-09-02 13:48:52 +02:00
Franco Fichtner
08569103ce ui: funnel hash through firmware-product file #2367
Part one makes it possible to inject branding info from the Makefile
which is not fully complete yet but can always be finished.  The new
hash value can thus be used as a unqiue identifier for page resources
that may be subject to caching.  By using the git hash it allows us
to have this effect on test commits as well as earch working version
as we don't want to track the changes for each file but still get a
good amount of caching.
2018-09-02 09:43:52 +02:00
marjohn56
dc027455b4 fix for dhcpd6 not being configured; closes #2681 2018-09-02 09:11:01 +02:00
Franco Fichtner
db818e9b08 interfaces: sync widget api return, no carrier is "x"
Aligns with an earlier change to make arrow-down the down case
for clarity.
2018-09-02 09:06:29 +02:00
Ad Schellevis
2fbed01d7c interfaces.lib.inc add groups to legacy_interfaces_details() for https://github.com/opnsense/plugins/issues/807 2018-09-01 15:00:27 +02:00
Ad Schellevis
b10aaddbe0 Firewall/alias , remove "View" level in menu 2018-08-25 10:00:40 +02:00
Ad Schellevis
f0595c45cc Firewall/alias, add type to grid for https://github.com/opnsense/core/issues/1858 2018-08-24 18:05:38 +02:00
Ad Schellevis
619707a0c9 Firewall/alias, ditch legacy pages for https://github.com/opnsense/core/issues/1858 2018-08-24 18:03:25 +02:00
Ad Schellevis
a772e7a4ad Firewall/alias, enable migrations for https://github.com/opnsense/core/issues/1858 2018-08-24 18:01:32 +02:00
Ad Schellevis
f87ba3db64 Firewall/alias, change edit links in legacy pages for https://github.com/opnsense/core/issues/1858 2018-08-24 18:00:43 +02:00
Ad Schellevis
81f1d2552e Firewall / alias, change ACL's for https://github.com/opnsense/core/issues/1858 2018-08-24 17:59:46 +02:00
Ad Schellevis
34ce46bbde Firewall / alias, hook new alias system into menu for https://github.com/opnsense/core/issues/1858 2018-08-24 17:54:36 +02:00
Ad Schellevis
9080e6b63a Firewall / alias, change template for https://github.com/opnsense/core/issues/1858 2018-08-24 17:53:27 +02:00
Ad Schellevis
0673a37a9a Firewall/alias, minor timing tweak, for https://github.com/opnsense/core/issues/1858 2018-08-24 16:47:01 +02:00
Ad Schellevis
dd2debaeaf MVC, add iterateItems() method to base field type to simplify callflow 2018-08-24 12:09:08 +02:00
Ad Schellevis
ab94750568 Firewall/alias, add reconfigure button + action for https://github.com/opnsense/core/issues/1858 2018-08-24 11:36:25 +02:00
andi-makandra
270e6de7ff dhcpd: treat EFI BC the same as EFI x86-64 (#2669)
Several vendors use EFI BC instead of the EFI x86-64 value for the arch, some thinkpads for example. We noticed this while we tried to use PXE on all our machines and that some EFI systems with 64-bit didn't work and some did. We then found the old commit that change the if clause from 00:07 to 00:09 and tested around. Thus we found out that some machines use 7 and some 9, so IMHO it's correct to redirect both cases to the 64bit syslinux filename. This commit doesn't break old configs, just adds the additional option.
2018-08-24 11:10:10 +02:00
Ad Schellevis
dcbd2ab547 firewal/alias, fix missing brackets for https://github.com/opnsense/core/issues/1858 2018-08-24 10:55:40 +02:00
Ad Schellevis
3add6c7cc9 configd, add xml attributes to template parser, when referring an uuid from a Jinja template use something similar to:
{{item['@uuid']}}
2018-08-23 21:32:58 +02:00
Ad Schellevis
d0458d50ae dhcpd / staticmap, remove unused inputs, see https://github.com/opnsense/core/pull/2651 2018-08-21 20:28:52 +02:00
Ingo Theiss
55f05950b5 Add DHCP Dynamic DNS key algorithm drop-down list (#2651) 2018-08-21 20:06:33 +02:00
Werner Fischer
bf0b3f1acc fix adding interfaces LAN bug of German interface (#2653) 2018-08-20 12:10:06 +02:00
Ad Schellevis
b693a3b99a ipsec, add ike keyexchange option, for https://github.com/opnsense/core/issues/2642 2018-08-17 11:54:51 +02:00
Franco Fichtner
6c4912cfce unbound: cleanups on previous #2627 2018-08-17 08:35:55 +02:00
John Keates
90efc01809 Swap stub-zone for forward-zone
stub-zone doesn't work for non-authorative upstream DNS servers, but forward-zone does.
2018-08-17 08:35:07 +02:00
Franco Fichtner
a3ff635dc6 firewall: nonfunctional updates to shaper addition 2018-08-17 08:12:04 +02:00
Franco Fichtner
82be7c461e firewall: whitespace cleanups 2018-08-17 08:02:02 +02:00
Franco Fichtner
4c5bff4991 openvpn: take this socket cleanup #2610 2018-08-17 07:40:06 +02:00
Ad Schellevis
81d70d630a openvpn, align auth-user.php to use common_name, closes https://github.com/opnsense/core/issues/2641 2018-08-16 21:28:39 +02:00
Franco Fichtner
4d664bc39d openvpn: allow /32, & bitwise operator is before != ???
PR: https://forum.opnsense.org/index.php?topic=9445.0
2018-08-16 16:15:49 +00:00
Franco Fichtner
8287fcf32a firewall: return alias types to unbreak outbound NAT rule edit 2018-08-16 11:13:17 +00:00
Franco Fichtner
ecbb352211 Revert "firewall: a bit weird, page indicates host aliases"
This reverts commit d30125e0fbf1d08f1e2053a4f088528d5632c5fa.
2018-08-16 11:11:44 +00:00
Franco Fichtner
5810cc7a31 firewall: fix more glitches in outbound alias target 2018-08-16 10:35:39 +02:00
Franco Fichtner
3ddea146e3 firewall: round-robin is for host alias nat/rdr; loosely refs #2625
This simplifies the logic for the interface redirect target
as we use :0 and push it directly to the kernel to resolve.

From pf.conf:

   Tables can also be used for the redirect address of nat and
   rdr rules and in the routing options of filter rules, but only
   for round-robin pools.
2018-08-16 10:17:05 +02:00
Franco Fichtner
d30125e0fb firewall: a bit weird, page indicates host aliases 2018-08-16 09:36:31 +02:00