98 Commits

Author SHA1 Message Date
Franco Fichtner
74958f2032 interfaces: get_interface_list() is a strange one for sure
It's supposed to be handing out physical interfaces only but
callers decided to exclude stuff they didn't want because it
is not physical instead of fixing the function.
2022-01-19 12:40:19 +01:00
Franco Fichtner
9b7c35a630 interfaces: style 2021-11-09 13:15:30 +01:00
Franco Fichtner
d42dcaaa87 interfaces: function only used once 2021-08-29 20:53:54 +02:00
Franco Fichtner
519311433d interfaces: two and a half cleanups
* Remove the unset-after-write-before-redirect logic of dhcpd on
  WAN that practically does nothing.
* At least since b6b3a5ad1d6c41 interface_bring_down() does not
  tamper with down flag of the interface avoiding the need to
  set the up flag to fix "VLAN" (multiple times).
* Remove debug output that I have never seen before.  The function
  call below will throw an error too if that is even possible.
2021-08-29 15:11:29 +02:00
Alexander Shursha
b21272f499
Remove duplicate. (#5178) 2021-08-24 13:42:18 +02:00
Ad Schellevis
5b7716611d interfaces / assignments: lexical sort interface keys, closes https://github.com/opnsense/core/issues/4394 2020-10-05 09:33:43 +02:00
Ad Schellevis
f89d8e6582 style 2020-05-29 19:26:35 +02: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
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
Franco Fichtner
b97789b2d9 plugins: extend reach to "configurable" reject spots 2019-11-01 15:31:49 +01:00
Franco Fichtner
be2d13512a interfaces: also delete DHCPv6/RA server on interface delete 2019-05-11 18:55:35 +02:00
Franco Fichtner
ba0c82dd54 dhcpd: naming convention, plugins_configure() use 2019-04-29 07:49:26 +02:00
Franco Fichtner
b8b739260d interfaces: typo in previous 2019-04-28 13:30:44 +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
a79a163a55 interfaces: allow OPT1 to carry anti-lockout #3005
When no LAN is present OPT1 can now be configured.  To make sure that
anti-lockout doesn't shift never again assume that "LAN" can be assigned.
The same is already true for "WAN".

Some style while here...
2019-01-02 20:37:41 +01:00
Ad Schellevis
f7f5489266 interfaces/assign, drop reference usage. for https://github.com/opnsense/core/issues/3085 2019-01-02 20:18:36 +01:00
Ad Schellevis
afeb422d69 interfaces_assign, show link status in select, closes https://github.com/opnsense/core/issues/3019 2018-12-06 14:30:06 +01:00
Michael Steenbeek
19ce1c57a4 Replace uncommon <> notation with != 2018-11-23 14:36:44 +01:00
Franco Fichtner
04259b48f8 interfaces: also move zt and ue 2018-09-07 17:48:50 +02:00
Werner Fischer
bf0b3f1acc fix adding interfaces LAN bug of German interface (#2653) 2018-08-20 12:10:06 +02:00
Franco Fichtner
fb541dd8ba ui: fix footer boxing; closes #2626 2018-08-11 23:22:47 +02:00
Franco Fichtner
cc2902e4dd interfaces: 6rd validation and avoid assignment #1501 2018-07-14 09:11:42 +00:00
Franco Fichtner
c5ed71ad26 interfaces: style for #2440 2018-06-04 12:18:04 +00:00
Franco Fichtner
b77b3a5782 interfaces: flip arguments of interface_configure() 2018-05-22 08:42:52 +02:00
Franco Fichtner
f850748d1d console: reset VLANs as stated; closes #2342
Regression introduced in 566fe52 a while back.  Checked the commits
and code again so a bit of assorted cleanup attached.  Other spots
in the commits look good.
2018-04-13 07:31:48 +02:00
Ad Schellevis
92a8e402b1 ditch non functional QinQ interfaces, closes https://github.com/opnsense/core/issues/2274 2018-03-20 14:41:52 +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
Franco Fichtner
54410fe38f interfaces: auto-lock problematic interfaces; closes #2002 2018-01-04 14:06:45 +00:00
Ad Schellevis
c14000892b Merge pull request #1766 from opnsense/license_generate
License overview generation for GitHub
2017-08-09 22:49:25 +02:00
Franco Fichtner
81aed9877d interfaces: add ability to lock vital interfaces
They will prevent any interface mismatch and individual deletion
from the GUI on the assignment page.

PR: https://forum.opnsense.org/index.php?topic=5667.0
2017-08-07 06:07:45 +02:00
Franco Fichtner
968a3afc8e src: four errors in the copyrights
* interfaces_assign.php: creation year addition for Jim McBeath
* filter_log.inc: spurious attribution via 96899e89f0c
* diag_traceroute.php: typo in split via d87c6ff556
* Manuel Kasper e-mail missing in a few pages
2017-08-05 20:40:53 +02:00
Ad Schellevis
46c460bb3f cleanup, move link_interface_to_vlans to interfaces_assign.php and remove unused code 2017-07-14 22:10:48 +02:00
Ad Schellevis
093895e37e Networking, side affects. when an "other type" interface is configured it's automatically created, but if the interface got unconfigured it's dropped,leading to broken laggs for example.
We should trust the "other type" create/drop to handle the interface itself and interface_bring_down() should only unconfigure it, so possible parent/child interfaces won't break for no reason.
Fixes part of https://github.com/opnsense/core/issues/1709
2017-07-14 09:42:54 +02:00
Ad Schellevis
24c62ed5b3 call overhead in interfaces_assign.php for https://github.com/opnsense/core/issues/1662 2017-05-27 16:28:11 +02:00
Franco Fichtner
99a3caf36b interfaces: when there are no interfaces to assign...
... the save button can still be useful.
2017-04-26 19:20:28 +02:00
Franco Fichtner
c7a488dcb5 rrd: naming conventions and a side note
We have a function pair rrd_import() / rrd_export() now, which do
wildly different things even though they've been used for a single
purpose:

(1) rrd_export() writes a string, appends it to the config.xml

(2) rrd_import() takes a parsed config portion, but not as an
    argument, rather as a global config element

(3) There was also an older backup clue which exported files, but
    simply packed them up for restore after boot

If we can get the system to unify the usage we'll end up with a
neat way of backing, restoring and migrating RRD data, although
I'm not sure if this can be fully compatible with the old files.
2017-03-28 01:06:53 +02:00
Franco Fichtner
9b694b705d start to hide IPsec and OpenVPN for pluginification 2017-03-11 17:51:54 +01:00
Franco Fichtner
715b636793 unbound: clean up includes and function usage
o consolidate "unbound_" prefix for unbound.inc for pluginification
o services.inc includes unbound.inc rightfully, a bit like a
  plugin would do in the future, but this also means we can
  zap all requires from top pages, which are entirely spurious.
o get_dns_servers() moves to system.inc because it is used by
  status_interfaces.php
o RIP read_hosts()
2016-11-14 11:28:01 +01:00
Franco Fichtner
ba56f1683b interfaces: strip development code nobody works on 2016-11-07 18:56:31 +01:00
Franco Fichtner
152141866b interfaces: url_safe() redirects for #1168 2016-10-09 18:26:39 +02:00
Ad Schellevis
14d53f5b8d (legacy) ditch compare_interface_friendly_names 2016-08-11 10:58:44 +02:00
Franco Fichtner
224b5d8247 www: util.inc is provided by guiconfig.inc for #1065 2016-07-22 07:12:21 +02:00
Ad Schellevis
4e3b66c257 zapp pfsense-utils.inc 2016-06-20 16:59:19 +02:00
Ad Schellevis
65aa038255 (legacy) move is_private_ip() to util.inc 2016-06-20 14:33:30 +02:00
Franco Fichtner
3940688682 interfaces: tweaks after table-layout changes
o Allow to delete WAN, LAN is worse :P
o Zap spurious 4th column
o Shorten assign text prompt
o remove margianlly helpful message
2016-06-11 13:33:56 +02:00
Ad Schellevis
fd8c6d465a (legacy) wrap $config['interfaces'] in interfaces_assign.php 2016-05-26 16:08:59 +02:00
Ad Schellevis
408bab1a37 (legacy) fix previous commit, interfaces_assign.php wasn't supposed to be in yet. 2016-05-26 15:42:09 +02:00
Ad Schellevis
75eec3cfe8 (config) set description when empty in legacy_config_get_interfaces 2016-05-26 15:41:13 +02:00
Franco Fichtner
9989097dd8 src: second part of restyle done 2016-04-01 16:05:35 +02:00