10901 Commits

Author SHA1 Message Date
Franco Fichtner
b140e91b7e interfaces: services.inc stopgap measure
PR: https://forum.opnsense.org/index.php?topic=11540.0
2019-04-28 14:37:43 +02:00
Franco Fichtner
127c364789 interfaces: get_real_interface() as opportunistic try
Speeds up lookup.  The caller is ultimately in charge of operating
on the data given by the function.  Most callers do not check the
return value for empty() so let's just fix callers that do require
this.
2019-04-28 14:27:40 +02:00
Franco Fichtner
01ed7a77a2 openvpn: rid the world of openvpn_carp_start() and openvpn_carp_stop()
OpenVPN has had so many functions to reload and all of them hardcoded one
way or another.  Since we already check CARP state in openvpn_restart()
and stop before potentially starting that should be enough indeed.

Another question is why servers are being restarted if CARP is solely
used for preventing to start clients on BACKUP nodes.
2019-04-28 14:25:43 +02:00
Franco Fichtner
b8b739260d interfaces: typo in previous 2019-04-28 13:30:44 +02:00
Franco Fichtner
bda5695f64 interfaces: get_carp_interface_status() return values audit 2019-04-28 13:27:31 +02:00
Franco Fichtner
d8e17d7737 dpinger: only monitor for existing entries of enabled interfaces
I have a little beef with the new code: the System: Gateways: Single
page listing should always list existing config.xml gateways, but it
does not.  So it looks like a gateway was deleted when in fact it is
being hidden.  This is definitely a visibility departure from the
previous code.
2019-04-26 18:03:53 +02:00
Franco Fichtner
139ef1334f system: log all "skips" for monitor targets
PR: https://forum.opnsense.org/index.php?topic=11540.0
2019-04-26 15:08:26 +02:00
Franco Fichtner
a9e05d5722 system: fix dpinger invoke 2019-04-26 14:41:07 +02:00
Franco Fichtner
60966cdaa2 system: gateway_items are not dynamic 2019-04-26 14:27:47 +02:00
Franco Fichtner
c901a00eb6 interfaces: entirely unsure about this 2019-04-26 08:54:49 +02:00
Franco Fichtner
ff3d7fc46e interfaces: interface_has_gateway() gone, yikes 2019-04-26 08:52:54 +02:00
Franco Fichtner
998aa1097d system: /etc/hosts generation without interface_has_gateway()
It only marginally matters and lan or opt1 is mostly there with
a safe assumption of no gateway unless that is for a different
purpose than simply going to the internet.
2019-04-26 08:51:39 +02:00
Franco Fichtner
316e988459 system: avoid use of interface_has_gateway()
A number of sanity cleanups while here...
2019-04-26 08:39:36 +02:00
Franco Fichtner
908c1d617c interfaces: avoid use of interface_has_gateway() 2019-04-26 08:39:21 +02:00
Franco Fichtner
d2ba53e1ea dnsmasq: another services.inc taint 2019-04-26 08:11:14 +02:00
Franco Fichtner
cfa86ac5b6 interfaces: unused interface_has_gatewayv6() 2019-04-26 07:49:03 +02:00
Franco Fichtner
e40b8f51ac interfaces: lock IP configuration type for tunnels
@Adschellvis and me wondered about this so I did a bit of
reseach and multiple workaround oddities exist to fix parts
of the issue.  To be frank, fix the issue at the source and
do not let users otherwise configure these settings in tunnel
interfaces.

See:      https://redmine.pfsense.org/issues/3280
Also see: https://redmine.pfsense.org/issues/8687
2019-04-26 07:42:54 +02:00
Franco Fichtner
d40c917fcb interfaces: long group names vs. pf(4)
PR: https://forum.opnsense.org/index.php?topic=12527.0
2019-04-26 05:42:22 +02:00
Franco Fichtner
6b8fc100e4 interfaces: further changes in slaac pursuit 2019-04-26 05:29:31 +02:00
Franco Fichtner
bc6340f167 interfaces: VTI is a bit tricky #3414 2019-04-25 18:32:19 +02:00
Franco Fichtner
6858aec382 interfaces: fix VTI vs. system route issue; closes #3414 2019-04-25 16:45:29 +02:00
Franco Fichtner
e07347f701 system: services.inc removal splatter 2019-04-25 15:04:23 +02:00
Franco Fichtner
dabcea59d7 interfaces: always provide a "description" 2019-04-25 14:37:11 +02:00
Ad Schellevis
839ec3567a dhcp, leases overview. merge static mac addresses with leases for https://github.com/opnsense/core/issues/2946 2019-04-25 11:08:05 +02:00
Franco Fichtner
3992b4e556 interfaces: annotate VIP configuration change for the future 2019-04-25 10:47:35 +02:00
Franco Fichtner
b16e03cb68 interfaces: some changes to VIP handling
* always configure VIPs in interface_configure()
* also configure VIPs in rc.newwanipv6
* link_interface_to_vips() removed
* land IPv6 VIPs on the IPv6 device

Discussed with: @adschellevis
2019-04-25 10:20:23 +02:00
Franco Fichtner
3498416734 interfaces: in a perfect world these do not need services.inc
Let's make it so.  :)
2019-04-25 09:37:34 +02:00
Franco Fichtner
db2b0ff27c interfaces: allow link-local address on bridges; closes #926 2019-04-25 09:25:40 +02:00
Franco Fichtner
4335b1cda7 interfaces: rename variable for clarity 2019-04-25 08:27:17 +02:00
Franco Fichtner
05bb008126 interfaces: more SLAAC woes 2019-04-25 08:24:30 +02:00
Franco Fichtner
4e0328fc7e interfaces: add VIPs on late interface configuration; closes #3135 2019-04-25 08:22:49 +02:00
Ad Schellevis
1b6d698429 Filter, groups. allow underscores in names and fix bug leaving groups assigned after rename. closes https://github.com/opnsense/core/issues/3439 2019-04-24 12:26:34 +02:00
Ad Schellevis
93816f5cbf Filter, aliases. add feedback to "Find references" and prevent events to be fired while already waiting. 2019-04-24 11:18:41 +02:00
Franco Fichtner
75eb613f47 interfaces: change the load order to be less error prone
Trackers shouldn't be special in GIF and GRE and bridges.  In
bridges there's also no use of VIPs so the code simplifies quite
a bit.  Load all exceptions in a row with the "unhandled" ones
still at the top of the function.

What needs to be seen is if VIPs latch on to interfaces that
are handled as exceptions correctly, or else we will have to
reload them alongside again.
2019-04-24 09:42:42 +02:00
Franco Fichtner
0aa060050a interfaces: another sublte bug introduced 2019-04-24 05:16:15 +02:00
Franco Fichtner
a58203c2ed interfaces: off-by-one 2019-04-24 03:59:21 +02:00
Franco Fichtner
17489ebea5 interfaces: hmm, this seems correct now...
It's not equivalent because the _vip check wasn't correct and now
you can easily see the logic invert so that setup is either on '1'
or '2' and nothing can be missed.
2019-04-24 03:56:57 +02:00
Franco Fichtner
868f68ab16 interfaces: repair always-broken code before eventually removing it
The original commit does not make a lot of sense.

See: https://github.com/pfsense/pfsense/commit/ef1c048b0f8f4
2019-04-24 03:34:23 +02:00
Franco Fichtner
865ee5d3a4 interfaces: ok, strstr() is 0-safe so long as the needle is not 0 2019-04-24 03:19:24 +02:00
Franco Fichtner
561a783b92 interfaces: a first try for #3199
This isn't meant as a fix.  Need to find out what this code really does...
2019-04-24 03:09:38 +02:00
Franco Fichtner
fc2ea5dee4 interfaces: looks like a bug in interface selection
For our trackers we need the IPv6 to land on the IPv6 device.
2019-04-24 02:21:51 +02:00
Franco Fichtner
6151a8c1c8 interfaces: unwind the configuration a bit
Adapt newer code style techniques and try to separate convoluted
code into a clearer picture.  This makes pluggable interface code
more attractive as we do not have to know up front how the interface
will look like.
2019-04-24 01:52:57 +02:00
Franco Fichtner
a66986c90a openvpn: looks like a bug introduced in aff94b55a366f70df 2019-04-24 01:25:07 +02:00
Franco Fichtner
a536687879 network time: cosmetics 2019-04-23 17:23:59 +02:00
Franco Fichtner
8d0072e775 system: only use rrd where needed 2019-04-23 17:18:53 +02:00
Franco Fichtner
b14f10b698 system: gwgroups not staticroutes
Discussed with: @adschellevis
2019-04-23 16:09:18 +02:00
Franco Fichtner
6865f545e0 src: style sweep 2019-04-23 15:58:23 +02:00
Franco Fichtner
c30477bef7 openvpn: remove hardcoded service include
Add two temporary spots that need to be reworked later when
this is verified working.  Other plugins also register their
interfaces so it would be nice to pin them all down in a shared
hook.
2019-04-23 15:48:47 +02:00
Franco Fichtner
1a507990b1 interfaces: get_real_interface() $wanif is really $realif (d'oh) 2019-04-23 15:45:01 +02:00
Franco Fichtner
64e1a893b6 interfaces: fix passing VLAN name 2019-04-23 14:26:36 +02:00