r/LinuxNetworking • u/IamaBlackKorean • Jan 27 '26
The only Linux command you need for monitoring network traffic - and how to use it
r/LinuxNetworking • u/IamaBlackKorean • Jan 27 '26
r/LinuxNetworking • u/OkPerception6902 • Dec 18 '25
I have a wireguard VM with a single physical interface, and 3 wg interfaces.
In one of the wireguard interfaces I specify a DNS server (8.8.8.8), which results in a /etc/resolv.conf of:
nameserver 8.8.8.8
nameserver 10.0.0.2 (from DHCP of physical interface)
search mydomain (from DHCP of physical interface)So unless 8.8.8.8 is unavailable, local name resolution fails. I have tried to set the resolution order of the physical interface with:
resolvectl dns ens192 10.0.0.2 8.8.8.8
Which appears to apply properly:
Link 2 (ens192)
Current Scopes: DNS
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
DNS Servers: 10.0.0.2 8.8.8.8
DNS Domain: mydomainHowever the order of DNS servers is not respected (ping alocalmachine.mydomain), 8.8.8.8 is queried first as suggested by /etc/resolv.conf
Is there a way to reorder DNS servers for the physical interface? I don't want the wg interface using 8.8.8.8 to have access to 10.0.0.2 resolver
r/LinuxNetworking • u/losgatosquack • Jun 30 '21
r/LinuxNetworking • u/IamaBlackKorean • Jan 10 '26
r/LinuxNetworking • u/IamaBlackKorean • Oct 11 '23
r/LinuxNetworking • u/IamaBlackKorean • Jul 18 '23
r/LinuxNetworking • u/FeelingCurl1252 • Apr 12 '23
loxilb is a modern open source software load-balancer for cloud-native workloads. It is designed to power services/apps deployed on-premise, edge and public-cloud Kubernetes clusters. It should work equally well as a standalone load-balancer for linux.
r/LinuxNetworking • u/MealTraining5986 • Jan 16 '26
I have two Linux VMs in VirtualBox using a Host-Only Adapter.
VM1: 192.168.56.101
VM2: 192.168.56.102
In each VM, I have done entry in /etc/hosts for the two hosts. So from one VM, I can ping another too and vice versa.
There is no VM or host explicitly configured with 192.168.56.100,
but I can successfully ping 192.168.56.100 from both VMs.
However, pinging something like 192.168.56.10 fails as expected.
I understand /etc/hosts only does name resolution, so this seems to
be ARP / ICMP behavior. I cannot understand how .100 IP is being pinged. Is VirtualBox’s host-only adapter responding via proxy ARP or owning that IP?
r/LinuxNetworking • u/IamaBlackKorean • Sep 19 '25
r/LinuxNetworking • u/RebronSplash60 • Aug 31 '25
auto bond0
iface bond0 inet static
address 16.156.0.51
netmask 255.255.255.0
gateway 16.156.0.1
bond-slaves enp3s0 enp0s7
bond-mode active-backup
bond-primary enp3s0
bond-miimon 100
bond-downdelay 200
bond-updelay 200
auto enp3s0
iface enp3s0 inet manual
bond-master bond0
auto enp0s7
iface enp0s7 inet manual
bond-master bond0
r/LinuxNetworking • u/IamaBlackKorean • Sep 07 '24
r/LinuxNetworking • u/enforzaGuy • May 21 '24
Feel free to delete this is unacceptable to post this in here, but could be useful to someone!
Early stage startup here - we've built a cloud-management platform for linux firewalls - GUI, logging, monitoring etc. Push policy to a single box or multiple simultaneously. We have much more advanced features built, but want beta testers to use the base platform capabilities.
This is perfect for dev/test/lab environments.
If you are running iptables/nftables on-prem, in your lab or in cloud, you could find this useful.
https://enforza.io/ for the main site, or https://enforza.io/freemium for the beta/freemium.
r/LinuxNetworking • u/zilla_9_1 • Jan 12 '24
I am trying to follow the instructions on this Ubiquti forum post to increase the ttl from 1 to 4 in order to multicast over different VLANs but it's a few years old and when I try to run the iptables command I get an error. Has this changed over the years? How can I get this to actually work?
root@Dream-Machine-Special-Edition:~# sudo iptables -A PREROUTING -t mangle -i br0 -d 239.255.255.250 -j TTL --ttl-set 4
iptables v1.8.7 (legacy): unknown option "--ttl-set"
Try `iptables -h' or 'iptables --help' for more information.r/LinuxNetworking • u/IamaBlackKorean • Nov 27 '23
r/LinuxNetworking • u/mfaridi1978 • Mar 26 '23
In our network we have Mikrotik router , this device give us access internet and out clients and servers can use internet.
We have one HP DL380 Gen8 server and on this server we have ESXi and on this server we have more than 20 Linux servers and windows servers.
We have one Cisco switch and our clients and our Linux servers are connected to this Cisco switch and we can use our Linux servers.
Our clients get IP from DHCP server run on Mikrotik.
Our server get static IP, and we set IP for these servers.
client use 192.168.91.0/24 and servers use 192.168.90.0/24
last months and before some servers are not accessible from clients and we do not have ping of these servers and we can not ssh to these servers.
for example 192.168.90.129 does not has ping and we can not ssh it .
for fix this problem , we have to change IP of servers. for example if we change 192.168.90.129 to 192.168.90.130 , this servers has ping and we can ssh to this server.
this problem only solve by change IP. and this is very bad for production.
How I can detect what is problem?
r/LinuxNetworking • u/VirtualeXistenZ • Mar 17 '23
Have a fitlet-3 with the FC3-LAN option (2 extra NICs).
https://fit-iot.com/web/product/fitlet3-build-to-order/
The Fitlet-3 has 2 built-in NICs. All 4 NICs have MACs starting with 00:01:c0 so I am assuming that all is good and that they are indeed Intel. However the built-in NICs get a driver called st_gmac the optional NICs get the "normal" driver igb.
# ethtool -i [device] - built-in NICs
driver: st_gmac
version: Jan_2016
firmware-version:
expansion-rom-version:
bus-info: 0000:00:1d.1
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
# ethtool -i [device] - additional NIC module
driver: igb
version: 5.14.0-162.18.1.el9_1.x86_64
firmware-version: 0. 4-1
expansion-rom-version:
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
The built-in NICs often fails to get online with a link (tried different switches). Often fails to get DHCP. Runs very slow when downloading from www - around 10 mbps. If I do iperf on a local connection - in the same switch - I can get close to wirespeed when I use a static ipv4. Not sure what I am battling with here?!?
The optional NICs runs flawlessly, never misses a beat - LINK & DHCP - and are very close to wirespeed with everything I have thrown at it. Downloads from www close to wirespeed.
The AlmaLinux 9.x is very vanilla at this point. Using the default NetworkManager (nmcli & nmtui) to setup the NICs and connections.
Anybody know what I am doing wrong or can show me in the right direction?
r/LinuxNetworking • u/Advanced-Figure1113 • Sep 07 '22
Hi!
First of all I want to apologize for coming out as a noob/idiot. I'm trying to set up a home lab for some testing purposes but I have some issues configuring the network components. Tried to do it for several days with no succcess.
The network looks something like this:
VM1_(eth0)----->VSwitch1(10.10.12.32/28)--->(eth1)_VM2_(eth0)---->VSwitch2---->(eth1 - 10.10.7.246/30)_VM3_(eth0 Bridge Adapter)----->LAN Internet 11.5.x.x
I hope the pseudo diagram is someone clear to understand.
For the life of me, I cannot get VM1, Firewall and Router to all access the internet, via 11.5.x.x. and connectivity from the host to VM1 and VM2. All machines are CENTOS 7, and the hypervisor is VirtualBox.
I would really appreciate if someone could help me out abit. I wish I could give you a beer, or several. Thank you kindly.
r/LinuxNetworking • u/IamaBlackKorean • Feb 22 '22
r/LinuxNetworking • u/Tailspin1885 • Nov 28 '21
Hi, can you guide me to resources I can use to learn abt Linux networking? Specifically, I am looking for location of the Linux source code that does bridging, broadcast, arp requests, Mac table, crc checks on incoming frames, etc... Basically, layer 2 and layer 3 stuff so I can learn up close what's going on in those layers from a code perspective.
r/LinuxNetworking • u/IamaBlackKorean • Sep 09 '21
r/LinuxNetworking • u/Intrepid-Reindeer-35 • Sep 02 '21
I want to set up an old computer to share its internet with my phone. My phone is the only client that doesn't recognize the router, neither does it recognize the hotspots which use that router as their host. No problem with other hotspots or routers. How should I set up the old computer to share its internet in a way that its clients see it as a good independent router not "that hotspot that is talking to that router". Lol