You are not logged in.
1st weird problem:
Is this normal for nft?
table ip libvirt_network {
comment "Managed by libvirt for virtual networks: https://libvirt.org/firewall.html#the-virtual-network-driver"
chain forward {
type filter hook forward priority filter; policy accept;
counter packets 3 bytes 984 jump guest_cross
counter packets 3 bytes 984 jump guest_input
counter packets 3 bytes 984 jump guest_output
}
chain guest_output {
}
chain guest_input {
}
chain guest_cross {
}
chain guest_nat {
type nat hook postrouting priority srcnat; policy accept;
}
}
table ip6 libvirt_network {
comment "Managed by libvirt for virtual networks: https://libvirt.org/firewall.html#the-virtual-network-driver"
chain forward {
type filter hook forward priority filter; policy accept;
counter packets 0 bytes 0 jump guest_cross
counter packets 0 bytes 0 jump guest_input
counter packets 0 bytes 0 jump guest_output
}
chain guest_output {
}
chain guest_input {
}
chain guest_cross {
}
chain guest_nat {
type nat hook postrouting priority srcnat; policy accept;
}
}Because if so then I don't mind leaving it alone, however I have turned off all systemd services for libvirt and for whatever reason,
nft list rulesetstill returns unless I flush ruleset and restart nftables.service. This only works temporarily, as inevitably, it always still seems that libvirtd ends up managing my nft firewall rules(or at the very least above output still returns. Perhaps I am just misinformed, and above output is typical for many users who have installed libvirtd. If so please let me know, as it would clear one of my suspicions.
2nd Weird Problem:
why can't I get rid off one of my ethernet interfaces labeled as "eth0"? I am unsure why it is even there in the first place as none of my configurations mention an "eth0" interface, and one of the most baffling things is that I can't even delete it. Returns
Failed to delete interface eth0: Operation not supported
3mcode 1Likewise, one of the ethernet interfaces that I do have defined:
[Match]
Name=enp2s0
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=100
[DHCPv6]
RouteMetric=100Never shows up ever since eth0 interface started appearing(before this it would).
Finally 3rd weird(and main) problem:
Ever since I started noticing above, I have consistently received either frequent random disconnects here and there(packets not sent out, can't receive internet despite the fact that I know I should as I can see that I am still connected to my router, and I am able to receive internet that are connected to the same router but under different devices no problem), or large slowdowns. The latter seems to only affect my system whenever using pacman(so basically, pacman downloading and/or updating packages is very very slow, even after refreshing and updating my mirrorlist). The only thing I have found that consistently solved these two weird issues, is restarting systemd-networkd(and only this service) via
systemctl restart systemd-networkd. But similar to problem#1, inevitably one of these two issues will come up.
I have never received this problem before, and really started experiencing this last problem for about a week or so. I hope this has nothing to do with the government being hacked recently
, though if this is the case I would imagine perhaps many more users have experienced similar problems recently? If so, please share below so I know I am not the only one ![]()
Last edited by reggieArchExpert (Today 19:11:41)
I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...
Offline
Is this normal for nft?
No. But probably for libvirt. I use QEMU/KVM, but not libvirt. Those idiotic empty chains are typical for higher level applications or frameworks managing the netfilter subsystem.
[...] unless I flush ruleset and restart nftables.service.
Be aware that "nftables.service" does nothing more than loading the ruleset defined at "/etc/nftables.conf" and exit.
2nd Weird Problem: [...]
Maybe just a renaming issue. Look for
journalctl -b | grep eth0and
journalctl -b | grep enp2s0to determine what happened.
Ever since I started noticing above, I have consistently received either frequent random disconnects here and there(packets not sent out, can't receive internet despite the fact that I know I should as I can see that I am still connected to my router, and I am able to receive internet that are connected to the same router but under different devices no problem), or large slowdowns.
That sounds like a configuration collision. How many configured Ethernet devices under their "real" ("ip a") name are there?
Offline
No. But probably for libvirt. I use QEMU/KVM, but not libvirt. Those idiotic empty chains are typical for higher level applications or frameworks managing the netfilter subsystem.
Fair, deleted libvirt as I only care for QEMU upon reflection.
reggieArchExpert wrote:2nd Weird Problem: [...]
Maybe just a renaming issue. Look forjournalctl -b | grep eth0returns nothing unusual
-thc wrote:and
journalctl -b | grep enp2s0returns nothing ->
code 1reggieArchExpert wrote:Ever since I started noticing above, I have consistently received either frequent random disconnects here and there(packets not sent out, can't receive internet despite the fact that I know I should as I can see that I am still connected to my router, and I am able to receive internet that are connected to the same router but under different devices no problem), or large slowdowns.
That sounds like a configuration collision. How many configured Ethernet devices under their "real" ("ip a") name are there?
Only one(I believe?). eth0 is the only ethernet interface that gets returned. You may still be on to something that it "may be a configuration collision" issue... I am missing a 99-default.link file under /usr/lib/systemd/network/, do you think this could be the cause of the problem?
I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...
Offline
This
returns nothing unusual
implies you know what to look for.
This
Only one(I believe?). eth0 is the only ethernet interface that gets returned.
doesn't. I don't know your level of network knowledge. If you want my opinion, just post the (anonymized) outputs.
So you have an Ethernet device "eth0" and a configuration for "enp2s0". Is there more than one file in "/etc/systemd/network"?
Offline
This
reggieArchExpert wrote:returns nothing unusual
implies you know what to look for.
This
reggieArchExpert wrote:Only one(I believe?). eth0 is the only ethernet interface that gets returned.
doesn't. I don't know your level of network knowledge. If you want my opinion, just post the (anonymized) outputs.
Sorry yeah you caught me, I am somewhat of a linux noob(have only used linux for around 2 years and some change(+/-) which should give you a rough idea of my level of expertise). How exactly do I post the anonymized outputs, as I don't mind just posting all the outputs however I of course want to keep my system safe of course.
So you have an Ethernet device "eth0" and a configuration for "enp2s0". Is there more than one file in "/etc/systemd/network"?
Yes indeed. Here are all the ones that involve my ethernet.
/etc/systemd/network/30-bond0.network
[Match]
Name=bond0
[Link]
RequiredForOnline=routable
[Network]
BindCarrier=enp2s0 wlan0 tether
DHCP=yes
IgnoreCarrierLoss=3s
/etc/systemd/network/30-ethernet-bond0.network
[Match]
Name=enp2s0
[Network]
Bond=bond0
PrimarySlave=trueI don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...
Offline
Hmmm - a bonded setup with a non-existing Ethernet adapter - what could possibly go wrong
.
Temporarily remove the bond (move the files elsewhere) and place only one file in "/etc/systemd/network":
/etc/systemd/network/20-wired.network
[Match]
Name=eth0
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=100
[IPv6AcceptRA]
RouteMetric=100Anonymizing info: Mask MAC addresses and publicly routable IP (4/6) addresses (192.168.x.y can be revealed).
Last edited by -thc (Today 15:57:18)
Offline
Hmmm - a bonded setup with a non-existing Ethernet adapter - what could possibly go wrong
.
A lot apparently? ![]()
Temporarily remove the bond (move the files elsewhere) and place only one file in "/etc/systemd/network":
Should I also remove the files controlling my wlan* type interfaces as well? Just curious on whether I will still receive wifi if I have only defined one interface
I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...
Offline
Also safe to ignore problem#3. Figured out it was due to my mobile provider as my phone experiences something similar whenever I turn off the wifi. Also makes sense why this is only a very recent problem for me.
I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...
Offline
I suggest you post the actual "ip a" output, nics can have alternative names, ie. the same device responds to eth0 and enpwhatever
Did you intentionally try to bond ethernet, wifi and apparently a tethered device? Why?
Online
Thanks to -thc, leaving only one interface defining file under /etc/systemd/network with
[Match]
Name=eth0
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=100
[IPv6AcceptRA]
RouteMetric=100fixed this issue. Now enp2s0 appears as it should, with eth0 appearing nowhere.
journalctl -b | grep eth0 returns
Nov 29 10:29:15 arch kernel: r8169 0000:02:00.0 eth0: RTL8168h/8111h, MA:CA:DD:RE:SS:XY, XID 541, IRQ 85
Nov 29 10:29:15 arch kernel: r8169 0000:02:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
Nov 29 10:29:15 arch kernel: r8169 0000:02:00.0 enp2s0: renamed from eth0
Nov 29 10:29:17 arch systemd-networkd[851]: enp2s0: Interface name change detected, renamed to eth0.
Nov 29 10:29:17 arch systemd-networkd[851]: eth0: Interface name change detected, renamed to enp2s0. journalctl -b | grep enp2s0returns
Nov 29 10:29:15 arch kernel: r8169 0000:02:00.0 enp2s0: renamed from eth0
Nov 29 10:29:17 arch systemd-networkd[851]: enp2s0: Interface name change detected, renamed to eth0.
Nov 29 10:29:17 arch systemd-networkd[851]: eth0: Interface name change detected, renamed to enp2s0.Since journal reports an "Interface name change detected, renamed to ...", safe to assume this was all caused due to a configuration collision as -thc mentioned?
I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...
Offline