Commit Graph

40 Commits

Author SHA1 Message Date
Peter Müller
9826ac9bc2 modules.d: Drop orphaned blacklist statements
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-10-03 10:21:24 +00:00
Michael Tremer
90c988a6ee networking: Correctly set MTU on all bridges
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-03-30 13:58:02 +00:00
Arne Fitzenreiter
8b4396559b network-aqm: don't set cake for imq/ifb devices
fixes: #12765

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-01-24 16:19:26 +00:00
Michael Tremer
cfa06b67ee network-aqm: Use "conservative" setting for all PPP connections
This should be a better default than using VDSL2 since "conservative"
should work on all connections.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-01-16 15:17:50 +00:00
Michael Tremer
58d471a4a8 network-hotplug-bridges: Fix warning when address doesn't exist
Some devices do not have an address, which prints an error when reading
it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-01-16 15:17:50 +00:00
Michael Tremer
ec0ba68a15 udev: Rename enable_codel to network-aqm
This is a more generic term since CoDel is no longer being used

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-01-16 15:17:50 +00:00
Michael Tremer
cfa5f916ea AQM: Use CAKE as default qdisc where appropriate instead of fq_codel
This script configures CAKE as default qdisc where appropriate:

* It is not suitable to use any queue management on bridges/GRE/VTI/tun
  interfaces.
* On Internet-facing interfaces, CAKE is configured in "internet" mode
  whereas on any zones except RED, it is configured in "metro" mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-01-16 15:17:50 +00:00
Michael Tremer
8be8ac63ca udev: Enable ntuple offloading feature in supported NICs
We are using CPU-affinity and packet steering functions in various
places in IPFire, but packets might still be received on a random CPU
core.

This feature enables that packets that belong to the same connection
(i.e. have the save tuple) will be steered to the same queue. This will
increase cache locality and decrease locking which results in higher
throughput.

https://www.kernel.org/doc/Documentation/networking/scaling.txt

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-10 16:57:06 +00:00
Daniel Weismüller
73476dd9dc Drop support for macvtap
This has been broken because of other changes on the network scripts and
since we now have support for bridges there is no point in supporting
something else that has the same functionality.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:19:55 +00:00
Daniel Weismüller
fa4905addf udev: Set all wireless interfaces to master mode before adding to bridge
This patch changes that instead of only the wireless interface that is
used to run a wireless access point, all wireless interfaces will be set
to master mode.

This allows that attaching the interface won't fail if hostapd isn't
started, yet.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:17:57 +00:00
Daniel Weismüller
087a20011b udev: Fix renaming bridged interfaces
Since using random interface names is always trouble, we will order all
slave interfaces and number them in order as they appear in the SLAVES
variable.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:16:32 +00:00
Michael Tremer
502f6c63a3 network-hotplug-bridges: Fix logical error in STP_PRIORITY check
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 17:09:10 +00:00
Daniel Weismüller
82973fae14 network-hotplug-bridges: Apply STP_PRIORITY
Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-20 19:59:31 +00:00
Daniel Weismüller
f8bf19c92e Core 152: the script "network-hotplug-bridges" now reads the variable ${ZONE}_STP from /var/ipfire/ethernet/settings so that STP can be turned on and off for each bridge
Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-20 13:46:27 +00:00
Michael Tremer
b53d8ae99b udev: Set wireless interfaces into AP mode before adding to bridge
Wireless interfaces cannot be added to the bridge when they are
still running in station mode. At boot time, the interface will
be created and it is attempted to attach it to a bridge, which
fails.

This patch now checks whether the wireless interface is going to
be an access point, changes the mode accordingly and then attaches
the interface to the bridge.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Tested-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-02-16 15:31:06 +00:00
Michael Tremer
943eab6695 udev: Add more logging to bridge hotplug script
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-02-16 15:31:04 +00:00
Florian Bührle
a494174979 udev: Accept MAC addresses for PARENT_DEV
This allows us to create VLAN interfaces even when the
name of the parent interface might vary.

This patch also appends the VLAN tag to interfaces
when the zone is in bridge mode.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-05-08 12:15:27 +01:00
Michael Tremer
32e7b93c28 udev: Rename interfaces when MACs are uppercase
The script relied on the configuration being in lowercase.

If people manually editied their configuration file they might
not have paid attention to this and therefore this script now
also accepts uppercase MAC addresses.

Fixes: #12047
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-04-11 21:59:41 +01:00
Arne Fitzenreiter
56726ed954 rngd: update initskript and add hwrngtty support
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-12-06 22:33:05 +01:00
Jonatan Schlag
593de24f30 Use a better naming scheme for physical devices.
Instead of orange0phys we should use orangephys0 this patch implements
the necessary changes.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-31 14:05:56 +00:00
Jonatan Schlag
c2336f6bed Use MAC addresses to define a slave
It is now also possible to use the MAC address to define a slave of a
bridge.
Simply add the mac address to the ZONE_SLAVES=''.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-31 14:05:54 +00:00
Jonatan Schlag
3fbf7bed79 network: Rename MACVTAP script
This script is creating common bridges now, too and therefore
needs a more generic name.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-29 20:34:22 +00:00
Jonatan Schlag
4aef53d50d network: Support bridge mode for zones
This bridge mode is supposed to be used for virtual environments
to create a network zone as a bridge and have virtual machines inside
it. Other physical interfaces can also be added to the bridge.

This is very similar to the MACVTAP bridge feature but still works
when the link of any (or all) physical interfaces is down.

Fixes: #11252

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-29 20:34:21 +00:00
Jonatan Schlag
1857244ea4 udev: Do not use MACVTAP for any wireless devices
Fixes #11179

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-12-29 20:34:19 +00:00
Jonatan Schlag
7b616db4e2 Network: add macvtap mode
This change make it possible to use a macvtap interface as a
standard interface (green0).
This is required by libvirt, because libvirt adds macvtap interfaces to
the physical interface, but this causes a problem. A VM  with this
configuration can communicate with the whole network,
but not with the Host (IPFire).
To solve this problem, the host interface must be also a macvtap interface.
This is achieved by:
1. In /var/ipfire/ethernet/settings the mode of a interface could set
with GREEN_MODE= ...
When the mode is macvtap the physical interface is renamed to green0phys
instead of green0. If the mode is not set the normal configuration is
applied .
2. The  network-hotplug-macvtap script checks if a physical nic ends
with "phys".
When the interface ends with "phys", the script adds a macvtap interface
to the physical nic which is named green0. The MAC address of this
interface is set to the MAC address of the physical nic. The MAC address
of the physical is set to a random value. We do this because the MAC
address of green0 should not change.
All services, IP addresses then binds to the macvatap interface, the
physical nic is not used.
PS.:  The script works also with the orange or blue interface, just
replace green with orange or blue.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-06-01 22:22:29 +01:00
Michael Tremer
64835e022c udev: Fix calling VLAN script
The VLAN hotplugging script was called with a wrong parameter that
should just be used to rename devices. Hence the script was not
correctly executed and did not create the virtual devices.

Fixes: #11009

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-02-28 12:29:45 -08:00
Michael Tremer
36f7fe6a38 udev: Add hotplugging for VLAN devices
The VLAN devices will now automatically be created after
a parent device has been added.

Mainly this will resolve a race-condition between udev
initialising the network adapters and sysvinit running
scripts that will do the initialisation of the VLAN.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-05 12:43:08 +01:00
Michael Tremer
600b99fb31 network: Configure device names from /var/ipfire/ethernet/settings
Instead of creating a copy of the configuration values and
for better extensibility, we will have udev execute a script
that parses /var/ipfire/ethernet/settings and will return the
correct name of the corresponding device (green0, blue0, ...).
2015-03-09 16:31:59 +01:00
Michael Tremer
2af8179385 rngd: Mix-in RDRAND and reload for HWRNGs added at runtime. 2014-02-01 16:46:22 +01:00
Arne Fitzenreiter
35e188494d udev: update to 208. 2013-11-18 23:27:37 +01:00
Michael Tremer
c9a8dd4ca9 mei: Don't load the mei kernel module
This module makes a lot of Supermicro boards fail
to boot and reboot.
2013-04-09 16:30:15 +02:00
Arne Fitzenreiter
8b246743fa udev: add missing alsa rules. 2012-11-09 09:55:18 +01:00
Arne Fitzenreiter
ae0d87a63b udev: update to 141 and cleanup rules. 2012-10-30 14:25:33 +01:00
Michael Tremer#
3e78d712cc codel: Enable fq_codel on all devices.
Except loopback.
2012-08-14 15:44:19 +02:00
Arne Fitzenreiter
e2e106be56 Update isdn modul blacklisting. 2010-06-19 18:37:51 +02:00
Arne Fitzenreiter
d7211302bf Updated mISDN,mISDNuser and lcr (20090906). 2009-12-22 00:23:52 +01:00
Arne Fitzenreiter
0235d31b88 Updated mISDN/user to current 1.2 development version 2009-04-05 07:35:33 +02:00
Arne Fitzenreiter
c7445b8704 Add udev rule for SCSI/SATA/LIBATA Cdrom
Removed building of pcmciautils package
Fixed missing imq patch
2008-05-18 18:27:58 +02:00
Michael Tremer
0ca0680295 Prepared core update 13.
This will change the format of the mISDN config file
back to plain config not XML.
For the new old script there is bc required.
Additionally the mISDN modules and some related are not
loaded by udev on sys-start but manually by the
mISDN init script.
2008-04-10 00:09:53 +02:00
arne_f
debeaeaabc added DVB Hardware modules to core12
added VideoDiskRecoreder


git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1287 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2008-03-27 08:48:22 +00:00