DNS Spam Issue #54

Closed
opened 2026-02-20 08:19:43 -05:00 by deekerman · 12 comments
Owner

Originally created by @ShowSysDan on GitHub (Jan 13, 2025).

Originally assigned to: @ym on GitHub.

I run a network that doesn't have internet with a Mikrotik router in the middle. the inline image below is what I found after a day or two of running JetKVM. The JetKVM device is the .177 making requests to port 53 on the router gateway.

The active connections in on the bottom left of the image, usually we are between 300-500 active connections through the firewall, 25-27k of DNS requests from one little device seems a bit much.

For now I disabled the switch port the JetKVM is connected to and all of those 25k connections cleared out as they timed out.

I understand the device calls home to update firmware, so it would be nice to either just give up if it can't reach out after a bit, or if there was a setting to tell the device that it can't possibly reach out so don't even try.
 
DNSREequests

Originally created by @ShowSysDan on GitHub (Jan 13, 2025). Originally assigned to: @ym on GitHub. I run a network that doesn't have internet with a Mikrotik router in the middle. the inline image below is what I found after a day or two of running JetKVM. The JetKVM device is the .177 making requests to port 53 on the router gateway. The active connections in on the bottom left of the image, usually we are between 300-500 active connections through the firewall, 25-27k of DNS requests from one little device seems a bit much. For now I disabled the switch port the JetKVM is connected to and all of those 25k connections cleared out as they timed out. I understand the device calls home to update firmware, so it would be nice to either just give up if it can't reach out after a bit, or if there was a setting to tell the device that it can't possibly reach out so don't even try.   ![DNSREequests](https://github.com/user-attachments/assets/02456e30-2868-49e4-8c8a-92af62ce3727)
Author
Owner

@exegeteio commented on GitHub (Jan 25, 2025):

@ShowSysDan I saw a similar problem, but all of the requests were NTP related. Can you confirm if you saw the same behavior?

Image
@exegeteio commented on GitHub (Jan 25, 2025): @ShowSysDan I saw a similar problem, but all of the requests were NTP related. Can you confirm if you saw the same behavior? <img width="982" alt="Image" src="https://github.com/user-attachments/assets/97e8ce23-ae5e-4577-b31c-98e72d16248b" />
Author
Owner

@kashalls commented on GitHub (Jan 29, 2025):

Is this a clean session (where you logged in and are just sitting infront of a screen?) or have you used the kvm a little bit?

Sitting at / locally, I see the normal MDNS, SRTCP, STUN and other traffic on my local ethernet. Same thing for remote cloud.

Image

@kashalls commented on GitHub (Jan 29, 2025): Is this a clean session (where you logged in and are just sitting infront of a screen?) or have you used the kvm a little bit? Sitting at `/` locally, I see the normal MDNS, SRTCP, STUN and other traffic on my local ethernet. Same thing for remote cloud. ![Image](https://github.com/user-attachments/assets/6b0ebc57-6085-4f74-b1cb-436b9444ec5b)
Author
Owner

@yferszt commented on GitHub (Jan 29, 2025):

I have observed that just having the JetKVM connected to the network is enough to have the DNS spam issue. Just verified it.
Setup: Isolated VLAN without access to DNS or Internet.

Image

@yferszt commented on GitHub (Jan 29, 2025): I have observed that just having the JetKVM connected to the network is enough to have the DNS spam issue. Just verified it. Setup: Isolated VLAN without access to DNS or Internet. ![Image](https://github.com/user-attachments/assets/5fc9d54b-488c-4b17-b841-d6f9a7a67e92)
Author
Owner

@kashalls commented on GitHub (Jan 29, 2025):

I have observed that just having the JetKVM connected to the network is enough to have the DNS spam issue. Just verified it. Setup: Isolated VLAN without access to DNS or Internet.

That seems like a setup issue then... Considering that it should only be using the IP provided by the DHCP Server (which looks like its your own router).

Codebase wise, this lines up with what the kvm tries to do and register with the cloud service by default. A better behavior would be to only start up if configured with a cloud address.

See: https://github.com/jetkvm/kvm/blob/main/cloud.go#L121C25-L121C29, and the auto-updater + oidc.

@kashalls commented on GitHub (Jan 29, 2025): > I have observed that just having the JetKVM connected to the network is enough to have the DNS spam issue. Just verified it. Setup: Isolated VLAN without access to DNS or Internet. That seems like a setup issue then... Considering that it should only be using the IP provided by the DHCP Server (which looks like its your own router). Codebase wise, this lines up with what the kvm tries to do and register with the cloud service by default. A better behavior would be to only start up if configured with a cloud address. See: https://github.com/jetkvm/kvm/blob/main/cloud.go#L121C25-L121C29, and the auto-updater + oidc.
Author
Owner

@Nevexo commented on GitHub (Jan 29, 2025):

A better behavior would be to only start up if configured with a cloud address.

https://github.com/jetkvm/kvm/pull/27

@Nevexo commented on GitHub (Jan 29, 2025): > A better behavior would be to only start up if configured with a cloud address. https://github.com/jetkvm/kvm/pull/27
Author
Owner

@yferszt commented on GitHub (Jan 29, 2025):

That seems like a setup issue then... Considering that it should only be using the IP provided by the DHCP Server (which looks like its your own router).

I am not sure what you mean with that. The JetKVM spams my own gateway with DNS queries.

Configuration:
JetKVM uses DHCP and gets 192.168.192.100
I did not configure any cloud services on the JetKVM.
Gateway: 192.168.192.1

Additionaly I think that the NTP is hardcoded in the JetKVM. In my opinion JetKVM should have 2 modes. Mode 1 is getting all settings from DHCP. Mode 2 shoud let us specify all network parameters.

@yferszt commented on GitHub (Jan 29, 2025): > That seems like a setup issue then... Considering that it should only be using the IP provided by the DHCP Server (which looks like its your own router). I am not sure what you mean with that. The JetKVM spams my own gateway with DNS queries. Configuration: JetKVM uses DHCP and gets 192.168.192.100 I did not configure any cloud services on the JetKVM. Gateway: 192.168.192.1 Additionaly I think that the NTP is hardcoded in the JetKVM. In my opinion JetKVM should have 2 modes. Mode 1 is getting all settings from DHCP. Mode 2 shoud let us specify all network parameters.
Author
Owner

@Nevexo commented on GitHub (Jan 29, 2025):

Additionaly I think that the NTP is hardcoded in the JetKVM. In my opinion JetKVM should have 2 modes. Mode 1 is getting all settings from DHCP. Mode 2 shoud let us specify all network parameters.

Yeah lots of discussion around this, it'll get some form of manual network config options soon, and it certainly shouldn't have the NTP servers hardcoded like it does.

@Nevexo commented on GitHub (Jan 29, 2025): > Additionaly I think that the NTP is hardcoded in the JetKVM. In my opinion JetKVM should have 2 modes. Mode 1 is getting all settings from DHCP. Mode 2 shoud let us specify all network parameters. Yeah lots of discussion around this, it'll get some form of manual network config options soon, and it certainly shouldn't have the NTP servers hardcoded like it does.
Author
Owner

@yferszt commented on GitHub (Jan 29, 2025):

Yeah lots of discussion around this, it'll get some form of manual network config options soon, and it certainly shouldn't have the NTP servers hardcoded like it does.

That would be great.

@yferszt commented on GitHub (Jan 29, 2025): > Yeah lots of discussion around this, it'll get some form of manual network config options soon, and it certainly shouldn't have the NTP servers hardcoded like it does. That would be great.
Author
Owner

@kashalls commented on GitHub (Jan 29, 2025):

That seems like a setup issue then... Considering that it should only be using the IP provided by the DHCP Server (which looks like its your own router).

I am not sure what you mean with that. The JetKVM spams my own gateway with DNS queries.

Your default deny rule prevents any DNS from being resolved, at all. That's all I meant by it.

@kashalls commented on GitHub (Jan 29, 2025): > > That seems like a setup issue then... Considering that it should only be using the IP provided by the DHCP Server (which looks like its your own router). > > I am not sure what you mean with that. The JetKVM spams my own gateway with DNS queries. Your default deny rule prevents any DNS from being resolved, at all. That's all I meant by it.
Author
Owner

@yferszt commented on GitHub (Jan 29, 2025):

Your default deny rule prevents any DNS from being resolved, at all. That's all I meant by it.

Yes, this is how I test new devices on my network. Block all and see how they behave and where they try to go.

@yferszt commented on GitHub (Jan 29, 2025): > Your default deny rule prevents any DNS from being resolved, at all. That's all I meant by it. Yes, this is how I test new devices on my network. Block all and see how they behave and where they try to go.
Author
Owner

@apalrd commented on GitHub (Feb 12, 2025):

I think we should reduce the sleep time down from 1 hour to something in the range of 5 seconds. The time task isn't dependent on the network being 'up', so the first attempt will always fail. If we delay 1 hour on failure, we will never get time for the first hour.

Failure can also be due to any number of network reasons and not necessarily the network blocking the request.

@apalrd commented on GitHub (Feb 12, 2025): I think we should reduce the sleep time down from 1 hour to something in the range of 5 seconds. The time task isn't dependent on the network being 'up', so the first attempt will always fail. If we delay 1 hour on failure, we will never get time for the first hour. Failure can also be due to any number of network reasons and not necessarily the network blocking the request.
Author
Owner

@dontcrash commented on GitHub (Jul 21, 2025):

This was closed complete, but wondering if there has been a regression.

App: 0.4.6
System: 0.2.5

Image

@ym

@dontcrash commented on GitHub (Jul 21, 2025): This was closed complete, but wondering if there has been a regression. App: 0.4.6 System: 0.2.5 <img width="560" height="154" alt="Image" src="https://github.com/user-attachments/assets/854331d5-0841-45f9-aef7-69b10d18ea95" /> @ym
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/kvm#54
No description provided.