From 0f36c4af34c6062ac37c9905cd8291554a997cc3 Mon Sep 17 00:00:00 2001 From: Eduard Tolosa Date: Wed, 20 Jan 2021 00:59:53 -0500 Subject: [PATCH] Update --- etc/systemd/network/10-bond1.netdev | 10 ++++++++++ etc/systemd/network/10-bond1.network | 5 +++++ etc/systemd/network/20-wired.network | 13 ++++--------- etc/systemd/network/20-wired.network.bk | 5 +++++ etc/systemd/network/25-wireless.network | 12 +++--------- etc/systemd/network/25-wireless.network.bk | 5 +++++ etc/systemd/network/26-wireless.network | 9 +-------- etc/systemd/nspawn/ArchLinux.nspawn | 3 +++ etc/systemd/nspawn/BlackArch.nspawn | 5 ++++- etc/systemd/nspawn/Debian.nspawn | 3 +++ etc/systemd/nspawn/KaliLinux.nspawn | 5 ++++- etc/systemd/nspawn/ParrotSec.nspawn | 5 ++++- 12 files changed, 51 insertions(+), 29 deletions(-) create mode 100644 etc/systemd/network/10-bond1.netdev create mode 100644 etc/systemd/network/10-bond1.network create mode 100644 etc/systemd/network/20-wired.network.bk create mode 100644 etc/systemd/network/25-wireless.network.bk diff --git a/etc/systemd/network/10-bond1.netdev b/etc/systemd/network/10-bond1.netdev new file mode 100644 index 0000000..d3eada3 --- /dev/null +++ b/etc/systemd/network/10-bond1.netdev @@ -0,0 +1,10 @@ +[NetDev] +Name=bond1 +Kind=bond + +[Bond] +Mode=active-backup +PrimaryReselectPolicy=always +TransmitHashPolicy=layer3+4 +MIIMonitorSec=1s +LACPTransmitRate=fast diff --git a/etc/systemd/network/10-bond1.network b/etc/systemd/network/10-bond1.network new file mode 100644 index 0000000..6e76da6 --- /dev/null +++ b/etc/systemd/network/10-bond1.network @@ -0,0 +1,5 @@ +[Match] +Name=bond1 + +[Network] +DHCP=ipv4 diff --git a/etc/systemd/network/20-wired.network b/etc/systemd/network/20-wired.network index 86736af..c4c7a51 100644 --- a/etc/systemd/network/20-wired.network +++ b/etc/systemd/network/20-wired.network @@ -1,12 +1,7 @@ [Match] -Name=enp2s0 +Name=en* [Network] -DHCP=ipv4 -DNS=9.9.9.9 -DNSOverTLS=opportunistic -DNSSEC=true - -[DHCP] -RouteMetric=10 -UseDNS=no +Bond=bond1 +LinkLocalAddressing=no +PrimarySlave=true diff --git a/etc/systemd/network/20-wired.network.bk b/etc/systemd/network/20-wired.network.bk new file mode 100644 index 0000000..9613cc0 --- /dev/null +++ b/etc/systemd/network/20-wired.network.bk @@ -0,0 +1,5 @@ +[Match] +Name=en* + +[Network] +DHCP=ipv4 diff --git a/etc/systemd/network/25-wireless.network b/etc/systemd/network/25-wireless.network index 0573446..3019740 100644 --- a/etc/systemd/network/25-wireless.network +++ b/etc/systemd/network/25-wireless.network @@ -1,12 +1,6 @@ [Match] -Name=wlp3s0 +Driver=rtl8192eu [Network] -DHCP=ipv4 -DNS=9.9.9.9 -DNSOverTLS=opportunistic -DNSSEC=true - -[DHCP] -RouteMetric=20 -UseDNS=no +LinkLocalAddressing=no +Bond=bond1 diff --git a/etc/systemd/network/25-wireless.network.bk b/etc/systemd/network/25-wireless.network.bk new file mode 100644 index 0000000..0619781 --- /dev/null +++ b/etc/systemd/network/25-wireless.network.bk @@ -0,0 +1,5 @@ +[Match] +Name=wl* + +[Network] +DHCP=ipv4 diff --git a/etc/systemd/network/26-wireless.network b/etc/systemd/network/26-wireless.network index 75524ba..fb27a63 100644 --- a/etc/systemd/network/26-wireless.network +++ b/etc/systemd/network/26-wireless.network @@ -1,12 +1,5 @@ [Match] -Name=wlp0s20f0u2 +Driver=mt76x2u [Network] DHCP=ipv4 -DNS=9.9.9.9 -DNSOverTLS=opportunistic -DNSSEC=true - -[DHCP] -RouteMetric=30 -UseDNS=no diff --git a/etc/systemd/nspawn/ArchLinux.nspawn b/etc/systemd/nspawn/ArchLinux.nspawn index 52ec20a..bdfbdec 100644 --- a/etc/systemd/nspawn/ArchLinux.nspawn +++ b/etc/systemd/nspawn/ArchLinux.nspawn @@ -15,3 +15,6 @@ Bind=/dev/nvidia-uvm-tools Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh BindReadOnly=/tmp/.X11-unix + +[Network] +VirtualEthernet=false diff --git a/etc/systemd/nspawn/BlackArch.nspawn b/etc/systemd/nspawn/BlackArch.nspawn index e5db45d..6ad940b 100644 --- a/etc/systemd/nspawn/BlackArch.nspawn +++ b/etc/systemd/nspawn/BlackArch.nspawn @@ -1,7 +1,7 @@ [Exec] Boot=true Capability=CAP_NET_ADMIN -PrivateUsers=no +PrivateUsers=false [Files] Bind=/dev/dri @@ -15,3 +15,6 @@ Bind=/dev/nvidia-uvm-tools Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh BindReadOnly=/tmp/.X11-unix + +[Network] +VirtualEthernet=false diff --git a/etc/systemd/nspawn/Debian.nspawn b/etc/systemd/nspawn/Debian.nspawn index 52ec20a..bdfbdec 100644 --- a/etc/systemd/nspawn/Debian.nspawn +++ b/etc/systemd/nspawn/Debian.nspawn @@ -15,3 +15,6 @@ Bind=/dev/nvidia-uvm-tools Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh BindReadOnly=/tmp/.X11-unix + +[Network] +VirtualEthernet=false diff --git a/etc/systemd/nspawn/KaliLinux.nspawn b/etc/systemd/nspawn/KaliLinux.nspawn index e5db45d..6ad940b 100644 --- a/etc/systemd/nspawn/KaliLinux.nspawn +++ b/etc/systemd/nspawn/KaliLinux.nspawn @@ -1,7 +1,7 @@ [Exec] Boot=true Capability=CAP_NET_ADMIN -PrivateUsers=no +PrivateUsers=false [Files] Bind=/dev/dri @@ -15,3 +15,6 @@ Bind=/dev/nvidia-uvm-tools Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh BindReadOnly=/tmp/.X11-unix + +[Network] +VirtualEthernet=false diff --git a/etc/systemd/nspawn/ParrotSec.nspawn b/etc/systemd/nspawn/ParrotSec.nspawn index e5db45d..6ad940b 100644 --- a/etc/systemd/nspawn/ParrotSec.nspawn +++ b/etc/systemd/nspawn/ParrotSec.nspawn @@ -1,7 +1,7 @@ [Exec] Boot=true Capability=CAP_NET_ADMIN -PrivateUsers=no +PrivateUsers=false [Files] Bind=/dev/dri @@ -15,3 +15,6 @@ Bind=/dev/nvidia-uvm-tools Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh BindReadOnly=/tmp/.X11-unix + +[Network] +VirtualEthernet=false