9964 Commits

Author SHA1 Message Date
Ad Schellevis
c4d42929fb Routing, gateways. missed two statements where friendlyiface was used, since we keep the configured "interface", these need to be renamed. for https://github.com/opnsense/core/issues/2279 2019-04-13 17:35:34 +02:00
Ad Schellevis
2d3e6de0de Routingm, gateways. what's in a name, discussed in https://github.com/opnsense/core/issues/2279 with @mimugmail 2019-04-13 17:31:28 +02:00
Ad Schellevis
4cc7157d78 Routing, gateways. now that get_interface_gateway_v6() and get_interface_gateway() are unused, ditch duplicate these duplicates. for https://github.com/opnsense/core/issues/2279 2019-04-13 17:28:29 +02:00
Ad Schellevis
c69e1f0b6b Routing, gateways. there's no need to try to retrieve the gateway address twice in return_gateway_groups_array(), our gateway class already resolved the address. for https://github.com/opnsense/core/issues/2279 2019-04-13 17:26:25 +02:00
Ad Schellevis
ac239827d4 Routing, gateways. replace get_interface_gateway() in get_interfaces_info() for https://github.com/opnsense/core/issues/2279 2019-04-13 17:20:45 +02:00
Ad Schellevis
18cd8b8e58 Routing, gateways. replace get_interface_gateway() in interface_6to4_configure() for https://github.com/opnsense/core/issues/2279 2019-04-13 17:17:33 +02:00
Ad Schellevis
2011da3800 Routing, gateways. replace get_interface_gateway() in interface_6rd_configure() for https://github.com/opnsense/core/issues/2279 2019-04-13 17:16:22 +02:00
Ad Schellevis
be85768f6b Routing, gateways. interface_gif_configure() replace get_interface_gateway() with new class implementation, reverted previous patch (misread the target interface). for https://github.com/opnsense/core/issues/2279 2019-04-13 17:12:18 +02:00
Ad Schellevis
5c4da8687d Revert "Route, gateways. prevent possible race in interface_gif_configure(), (host route not created on first execution) and remove get_interface_gatewayXXX usage. for https://github.com/opnsense/core/issues/2279"
This reverts commit 0c1f95b9b3f24625a29b788b5d74c9ce858c609b.
2019-04-13 17:03:24 +02:00
Ad Schellevis
26291b7fcd Routing, gateways. make sure we don't return an invalid gateway (property could be set to 'dynamic') in Gateway class, for https://github.com/opnsense/core/issues/2279 2019-04-13 16:35:28 +02:00
Ad Schellevis
0c1f95b9b3 Route, gateways. prevent possible race in interface_gif_configure(), (host route not created on first execution) and remove get_interface_gatewayXXX usage. for https://github.com/opnsense/core/issues/2279 2019-04-13 16:20:15 +02:00
Ad Schellevis
aacd319511 Route, gateways. in filter.lib.in:filter_core_get_initialized_plugin_system() replace get_interface_gatewayXXX with new object call, for https://github.com/opnsense/core/issues/2279 2019-04-12 20:56:26 +02:00
Ad Schellevis
f39eb0b86a Route, gateways. add getInterfaceGateway() to Gateways class to find the most likely gateway for a named interface (lan, wan, ..) for https://github.com/opnsense/core/issues/2279 2019-04-12 20:08:36 +02:00
Ad Schellevis
d9f0e03a28 Firewall/live-log, stop poller on error. closes https://github.com/opnsense/core/issues/3409 2019-04-12 19:04:43 +02:00
Ad Schellevis
9be62b07f9 Routing, gateways. system_routing_configure() should use the exact same method to determine "default" as evrything else, removes quite some obscure hooks and duplicated logic. definitely needs additional testing, for https://github.com/opnsense/core/issues/2279 2019-04-12 18:47:21 +02:00
Ad Schellevis
10a858855b Route, gateways. remove return_gateways_array(), replaced with new gateways class. for https://github.com/opnsense/core/issues/2279 2019-04-12 18:13:29 +02:00
Ad Schellevis
446ba20cce Routing, gateways. ditch refactor return_gateway_groups_array() to use the new gateways class, for https://github.com/opnsense/core/issues/2279 2019-04-12 18:03:57 +02:00
Ad Schellevis
c67b276bf9 gateway monitoring, don't report perfect when unknown, closes https://github.com/opnsense/core/issues/3408
and ditch return_gateways_array() usage for https://github.com/opnsense/core/issues/2279
2019-04-12 17:26:41 +02:00
Ad Schellevis
2b03a9be13 Gateways, change "pending" to "~" in https://github.com/opnsense/core/issues/3408 2019-04-12 17:13:46 +02:00
Ad Schellevis
af2b31bd7a gateway status widget, align status and color to system_gateways.php, for https://github.com/opnsense/core/issues/3408 2019-04-12 17:12:26 +02:00
Ad Schellevis
58a2efd4f9 Routing, gateways. use new gateways class in setup_gateways_monitor() and do some minor cleanups.
* monitor field is the responsibility of the class, so there's no need to check it again (duplicate)
* interface was previously overwritten with technical name, which is now in "if" field, replace occurrences
* simplify reasons to ignore gateways a bit (if, elseif block on top of loop)

for https://github.com/opnsense/core/issues/2279
2019-04-12 16:13:02 +02:00
Ad Schellevis
ace8f9af7f Routing, gateways. without consumers, its safe to kill lookup_gateway_interface_by_name, for https://github.com/opnsense/core/issues/2279 2019-04-12 15:54:52 +02:00
Ad Schellevis
e0e4ec5c08 Routing, gateways. refactor rc.openvpn. Although its still an ugly piece of software, its more clean now and uses the new gateways class required for https://github.com/opnsense/core/issues/2279
- since rc.openvpn can only be called from configd and accepting 1 parameter, it doesn't make sense to accept more than that
- in theory, this could accept a gateway group, but its not possible to monitor a gateway group, which does seem to make this a useless option
- if the parameter is not found [empty, all], it will start openvpn_resync_if_needed() for all interfaces.

I'm even not sure we need what's left of it, but it looks more sane now.

@fichtner please double check if this makes sense
2019-04-12 15:37:15 +02:00
Ad Schellevis
45297924e9 Routing, gateways. extend Gateways class with getInterface() to return technical interface and getInterfaceName() to return its name, for https://github.com/opnsense/core/issues/2279 2019-04-12 15:35:06 +02:00
Ad Schellevis
73ee4446d5 Routing, gateways. ditch now used lookup_gateway_ip_by_name() for https://github.com/opnsense/core/issues/2279 2019-04-12 15:06:19 +02:00
Ad Schellevis
49388ca2c6 Routing, gateways. ditch lookup_gateway_ip_by_name() usage from firewall_rules_edit.php, for https://github.com/opnsense/core/issues/2279 2019-04-12 15:05:07 +02:00
Ad Schellevis
bb1f0151d6 Routing, gateways. ditch lookup_gateway_ip_by_name() usage from system_resolvconf_generate() in system.inc, for https://github.com/opnsense/core/issues/2279 2019-04-12 14:56:29 +02:00
Ad Schellevis
a6340f8032 Routing, gateways. add getAddress() method to return a gateways address. for https://github.com/opnsense/core/issues/2279 2019-04-12 14:53:03 +02:00
Ad Schellevis
21f3607085 unused var, ref https://github.com/opnsense/core/issues/2279 2019-04-12 14:30:08 +02:00
Ad Schellevis
0c31965f27 Routing, gateways. replace return_gateways_array() with new class implementation in filter_delete_states_for_down_gateways, use empty() in stead of !isset(), our default config has <kill_states/> in it. for https://github.com/opnsense/core/issues/2279 2019-04-12 14:21:39 +02:00
Ad Schellevis
e9ba128993 Routing, gateways. replace return_gateways_array() in system_staticroutes_configure, for https://github.com/opnsense/core/issues/2279 2019-04-12 12:17:24 +02:00
Ad Schellevis
45c01a61ba Routing, gateways. move return_gateways_array() out of the way in DHCPvX relay services and prevent gatewaysIndexedByName() to be called multiple times in the loop, for https://github.com/opnsense/core/issues/2279 2019-04-12 12:07:02 +02:00
Ad Schellevis
4494f5cf24 Routing, gateways. in services.inc/services_dhcpdv4_configure() remove the need for return_gateways_array(), related to https://github.com/opnsense/core/issues/2279 2019-04-12 11:55:43 +02:00
Ad Schellevis
208f54665f Routing, gateways. add hasGateways(ipprotocol) method to determine if there is at least one gateway configured for the requested protocol. for https://github.com/opnsense/core/issues/2279 2019-04-12 11:43:33 +02:00
Ad Schellevis
b68bbb3350 Routing, gateways / monitoring. Since is_dpinger_enabled() only depends on config items in gateways.gateway_item, we could save ourselves the trouble from probing all interfaces in the system and just loop over the configuration to register services. also related to https://github.com/opnsense/core/issues/2279 2019-04-12 11:29:13 +02:00
Ad Schellevis
a1dea419c3 Routing, gateways. missed a spot, monitoring is disabled by default and can only be enabled by the user (with a config entry in gateways.gateway_item), for https://github.com/opnsense/core/issues/2279 2019-04-12 11:25:27 +02:00
Ad Schellevis
b38fe697db Routing, gateways. in is_dpinger_enabled(), return_gateways_array() can't return anything else than an array. for https://github.com/opnsense/core/issues/2279 2019-04-12 11:23:13 +02:00
Ad Schellevis
79e39a71de Route, gateways. remove some madness from bypassstaticroutes in pf_firewall(). for https://github.com/opnsense/core/issues/2279
- you can't define static routes pointing to gateway groups, ditch return_gateway_groups_array() usage
- gateway list already contains all required interface data, no need to fetch it from getInterfaceMapping()
2019-04-12 11:15:49 +02:00
Ad Schellevis
c7fa84248e Routing, gateways. ditch return_gateways_array() in core_services() to detect dpinger services. for https://github.com/opnsense/core/issues/2279 2019-04-12 10:58:12 +02:00
Ad Schellevis
c593906501 Routing, gateways, ditch another return_gateways_array() in firewall_rules_edit.php for https://github.com/opnsense/core/issues/2279 2019-04-11 20:51:44 +02:00
Ad Schellevis
c7c6fc70e8 Theme, recompile css to revert the last bits and pieces for https://github.com/opnsense/core/issues/3377 2019-04-11 18:52:22 +02:00
Ad Schellevis
7ee32601b7 Revert "copy default bootstrap stylesheets for 3.4.1 https://github.com/opnsense/core/issues/3377"
This reverts commit 0e501da603c17b7cfd362c07882319a90411ec96.
2019-04-11 18:41:27 +02:00
Ad Schellevis
4459388739 Revert "bootstrap, overlay our changes for https://github.com/opnsense/core/issues/3377"
This reverts commit 11b9358a60beb00d3834872097467eb8a7638cc4.
2019-04-11 18:41:14 +02:00
Ad Schellevis
8dee941e23 Revert "bootstrap, brand-logo issue when using 3.4.1, fix in theme file (for https://github.com/opnsense/core/issues/3377)"
This reverts commit f14079143f893fee0207a3165287c14f49eb7738.
2019-04-11 18:41:07 +02:00
Ad Schellevis
47a8a5f277 Revert "ui: bootstrap missing a file"
This reverts commit da6447e2fe61240a124ef090bc46b694e9b5878b.
2019-04-11 18:41:02 +02:00
Ad Schellevis
4b2f99003e Revert "bootstrap, missing _reset-text.scss (https://github.com/opnsense/core/issues/3377)"
This reverts commit c24b45f17fb201d5a3738bb80cd4647b653140c8.
2019-04-11 18:40:54 +02:00
Ad Schellevis
c09a999077 Revert "bootrstrap, login font back to normal (https://github.com/opnsense/core/issues/3377)"
This reverts commit 834f0e12b9a1e1908a81c611a4e07ffc599de7cd.
2019-04-11 18:40:48 +02:00
Ad Schellevis
c62da1cf03 Revert "bootstrap, fix regression in https://github.com/opnsense/core/issues/3377"
This reverts commit 92f5c81100db5627835879f7e2fac817a1d8e84c.
2019-04-11 18:40:40 +02:00
Ad Schellevis
7db485a736 missed one in previous (https://github.com/opnsense/core/issues/3377) 2019-04-11 17:03:21 +02:00
Ad Schellevis
d8ea833eab bootstrap 3.4.1 regression (https://github.com/opnsense/core/issues/3377), since our modals aren't placed directly under the body tag, the backdrop seems to be disfunctional. https://github.com/opnsense/core/issues/3377
Although its probably not the best fix, it does the trick.
2019-04-11 17:02:52 +02:00