248 Commits

Author SHA1 Message Date
Franco Fichtner
2637e6ebca interfaces: use consistent "vlan" or "qinq" prefix, start a 0 #5560
Since we also change the vlan names here for new devices to eventually
avoid overlong vlan interface names (#3222) we need to make sure the
rest of the system knows the new prefixes.

Some related style changes in code and text.
2022-03-23 08:54:02 +01:00
Franco Fichtner
98a049a904 src: translation style issues 2022-01-03 10:29:56 +01:00
Franco Fichtner
8578bd35a6 interfaces: split get_parent_interface() into its use cases
* Make it only react to PPP related lookups, no generic fallback
* Move the VLAN portion to a simplified dedicated function
* As a placeholder we shall see if bridges and LAGGs benefit from it
2021-12-06 14:37:10 +01:00
Ad Schellevis
e6f9b9a388 Interfaces - remove validation preventing an interface to be enabled when aliases are already assigned (introduced in 62a4abc92c), there doesn't seem to be a valid reason for requiring no aliases 2021-11-23 19:20:08 +01:00
Franco Fichtner
1a100934b9 interfaces: ignore media settings if interface is not there 2021-11-22 13:02:39 +01:00
Franco Fichtner
4d38eea089 interfaces: avoid recursion by giving proper interface name
Tested both VLAN configuration spots and other callers already
look sane.
2021-11-22 11:37:34 +01:00
NOYB
14f3cb5214
Prevent Browser Auto Fill Username/Password (#5311) 2021-11-22 09:03:18 +01:00
Franco Fichtner
f68816a8c2 src: fix a couple of stray whitespace issues 2021-11-09 13:33:11 +01:00
Franco Fichtner
29bd7f49c5 interface: small cleanup for #5334 2021-11-04 10:08:24 +01:00
Ad Schellevis
0d77358c1d interfaces: VLAN spoofmac taints siblings and parent interface. closes https://github.com/opnsense/core/issues/5297
o move media detection to generic legacy_interfaces_details() parser
o hide options when not applicable (only auto-select means non physical it seems).
2021-10-24 10:39:07 +02:00
Ad Schellevis
3a75948e25 interfaces: VLAN spoofmac taints siblings and parent interface
o refactor spoofmac to apply on the actual interface at hand
o add permanent promisc setting

for https://github.com/opnsense/core/issues/5297
2021-10-23 22:35:33 +02:00
Franco Fichtner
354835abe7 interfaces: tiny cleanup 2021-07-13 12:26:35 +02:00
Ad Schellevis
a98d776fa4 Interfaces / Hardware settings - Overwite global settings, closes https://github.com/opnsense/core/issues/5050 2021-06-16 16:18:50 +02:00
Franco Fichtner
4c9ad1b862 src: change (isset && is_array) to (!empty)
is_array was used until it broke and isset was added in front
back in the day.  It's almost certain the array is there so
!empty is the simplest option to check for data to iterate on.
Also avoids looping over empty data.
2021-06-10 20:33:55 +02:00
Franco Fichtner
533315208c interfaces: interface_configure() checks for enabled 2021-05-26 13:19:35 +02:00
Robin Schneider
5b8228430d
Use HTTPS everywhere (mechanical edit using util from https-everywhere) (#4534) 2021-03-08 20:04:45 +01:00
Franco Fichtner
7fda1670ce interfaces: l2tp/pptp cleanup; closes #2707
The interfaces are created by mpd5 daemon during configuration.
We do not seem to have more than one issue here: IPv6 disable
is too soon but that is easily fixed.  Device creation moves
on ok and there is no apparent error in functionality with or
without it.

While here fix the link when a $pppid is set and properly protect
the redirect url.  Previously empty() was too strict and it ignored
$pppid of zero.

Also remove spurious "IP Address" help text from PPP device
configuration.
2021-01-03 20:45:58 +01:00
Ad Schellevis
d70a1aae03 interfaces: when interface mss is set, split mss calculation into a variant for IPv4 and one for IPV6. fixes incorrect header size for IPv6 (60 instead of 40 bytes). closes https://github.com/opnsense/core/issues/4484 2020-11-27 18:46:44 +01:00
Ad Schellevis
5f108f698e interfaces: change max mtu value to 65535 in accordance with rfc791 (https://tools.ietf.org/html/rfc791). closes https://github.com/opnsense/core/issues/4359 2020-09-29 09:33:22 +02:00
Franco Fichtner
58e3c45655 interfaces: drop unfinished RFC 3118 support 2020-07-21 13:52:49 +02:00
Franco Fichtner
e1365b50ea interfaces: fix a typo 2020-05-24 10:48:09 +02:00
Franco Fichtner
fbe5a1909e interfaces: small changes, remove soon to be reinvented flags from GUI 2020-05-06 10:17:52 +02:00
Ad Schellevis
8bfd62c876 interfaces: typo in validation, failed to communicate unassignable targets. closes https://github.com/opnsense/core/issues/4050 2020-04-21 11:09:19 +02:00
Franco Fichtner
e9eb81a87f menu: change as discussed in 7749c098381
PR: https://github.com/opnsense/core/issues/4016
2020-04-20 08:57:43 +02:00
Ad Schellevis
7749c09838 Interfaces: obey group after POST, the menu can't find the item if the group isn't supplied when using groups. 2020-04-18 14:57:36 +02:00
Ad Schellevis
dba70c0ead Gateways: support interface targets (without addresses), but don't pinpoint it on specific drivers. for https://github.com/opnsense/core/pull/3983
Some tunnel interface types, such as Wireguard and Tinc do support sending traffic to the interface without an intermediate host. Since we don't want to add different static checks (and would like to get rid of the ones there for legacy reasons), it's probably better to add an option here.
2020-03-18 11:16:41 +01:00
Ad Schellevis
2a80d1a8a2 interfaces: make sure descriptions are properly cleansed, save description when disabled too (missed in https://github.com/opnsense/core/pull/3808) closes https://github.com/opnsense/core/issues/3942 2020-02-17 20:33:19 +01:00
Ad Schellevis
65b80e6a55 interfaces., missing break. closes https://github.com/opnsense/core/issues/3922 2020-02-11 17:20:15 +01:00
Franco Fichtner
29b6820117 interfaces: missed review opportunities 2020-02-05 09:07:12 +01:00
Len White
13f8ba2347 - Update maximum MTU for 10Gb NICs 2020-02-04 12:52:51 +01:00
Ad Schellevis
ee542d2822
add support for additional loopbacks (https://github.com/opnsense/core/issues/3832) (#3840)
Add *Interfaces: Other Types: Loopback*.

-  while here, also add the device name in interfaces.php and support setting an initial description on new interfaces (copy device description if available)

- check usages of lo0 and change to lo if not specific for our default loopback
2019-12-05 13:19:43 +01:00
Ad Schellevis
36372b939b interfaces: move description into top block and rename titles like suggested by @fichtner closes https://github.com/opnsense/core/pull/3808 2019-11-21 13:43:40 +01:00
Franco Fichtner
b97789b2d9 plugins: extend reach to "configurable" reject spots 2019-11-01 15:31:49 +01:00
Franco Fichtner
48e0c47a96 interfaces: remove the "Directly send SOLICIT" option
We already do a more-or-less hybrid approach by starting rtsold
even if it isn't used at all.  Now we also have ISPs which do
not seem to send router advertisements after successful connect
so that the reconnect misses the HUP for dhcp6c to fix the
connectivity again.

To change that remove the option and its only conditional to
behave unconditionally which has few reasons to cause regressions.
2019-10-31 09:14:35 +01:00
Ad Schellevis
2982424232 interfaces, only trigger newwanip event for affected interfaces 2019-08-30 15:09:06 +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
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
715ad3f253 interfaces: check prefix ID for duplicates #3406 2019-04-22 12:57:45 +02:00
Franco Fichtner
8bb992cfe7 interfaces: this is really hard ;) 2019-04-22 08:18:59 +02:00
Franco Fichtner
6fb54a1c11 interfaces: different approach 2019-04-22 08:12:44 +02:00
Franco Fichtner
d19d37e1bd interfaces: not my day 2019-04-21 20:30:24 +02:00
Franco Fichtner
82ab898a5a interfaces: changes to previous 2019-04-21 20:04:32 +02:00
Franco Fichtner
542368628b interfaces: make hexadecimal notation obvious; closes #3405 2019-04-21 19:59:17 +02:00
Franco Fichtner
f3b5c0e8f7 system: hide dpinger configuration inside new plugins_configure() call
Some back and forth between explicit and implicit requires while here.
The code is helplessly glued together and no plugin facility to get
data from a function call currently exists.
2019-04-21 19:04:15 +02:00
Ad Schellevis
96eb3f6f03 filter, move code to highlight (point) selected option from system_advanced_firewall.php to generic javascript legacy function and enable support on interfaces.php page as well, including a fix to firewall_rule_lookup.php for supporting ?if=<interface> lookups
for https://github.com/opnsense/core/issues/3312
2019-03-15 14:38:43 +01:00
Franco Fichtner
ae7af5314b interfaces: change apply flow a bit, comment was misleading 2019-02-06 15:59:42 +01:00
Ad Schellevis
4a8e737ced fix some gettext() + html_safe, discussed c4c7f8d732 2019-02-03 20:04:08 +01:00
Martin Wasley
28796e83a6 interfaces: DHCP Override MTU Option
It seems DHCP in 11.2 is honouring the ISPs MTU if it is sent. It
also seems there are some ISPs who send a stupid value. This fix
allows the user to ignore the ISP-supplied MTU (or not) with the
default set to ignore for compatibility with the previous behaviour.

PR: https://github.com/opnsense/core/issues/3173
2019-02-03 15:49:28 +01:00
Johannes Kastl
9f290d11f6 fix typo 'muti-WAN interface' (#3127) 2019-01-13 12:54:33 +00:00
Michael Steenbeek
97645093c3 Fix missing semicolons 2019-01-11 16:44:23 +01:00