The officially official Devuan Forum!

You are not logged in.

#26 Today 01:15:00

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,423  

Re: Unable to connect to devuan laptop server on local network

ok. I believe netbsd uses pf (maybe short for packet filter?) for firewalling... it's the same as iptables but totally different smile In particular, its commands are different, and as I remember pf are set up in a certain order, and the later rules override the earlier ones.

I'll have to browse a bit to be able to say things about it. However, it looks to me like the server (192.168.1.4) has firewall rules that blocks its traffic to the laptop (192.168.1.17). Unless it has some kernel flag(s) to stop it responding to icmp requests. I would guess netbsd has different commands for sysctl too(?)

Online

#27 Today 01:35:52

nuclearkev
Member
Registered: 2025-07-02
Posts: 13  

Re: Unable to connect to devuan laptop server on local network

I believe netbsd uses pf (maybe short for packet filter?) for firewalling...

pf(4) was deprecated. We now use the shiny new (since NetBSD 8 that is...) npf(7) xD Anyways, when I run npfctl show, which will show the current filter state and config I get:

# filtering:    inactive
# config:      empty

Regardless, I don't think that it has anything to do with the server as no systems on the entire network can ping the laptop. Even if I open a hotspot on my phone, join it along with another computer/phone I can't ping it.

I would guess netbsxd has different commands for sysctl too(?)

To be frank, I don't actually know the freelist.org(?)/linux sysctl program pretty much at all. Giving the man page for the linux sysctl and it looks completely different than the NetBSD one. If you tell me what I need to look for I can probably find it, however.

I just did another test where I booted into a liveCD of a different distro on the laptop and I was able to ping the server and I was able to ping the laptop (booted into the liveCD) from another computer. What was particularly important about this test was that the IP address of the liveCD was 192.168.1.17. I think this pretty much rules out that it's a router or a server issue. Seems to me that there might be a bug in the devuan network stack?

Offline

#28 Today 06:03:03

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,423  

Re: Unable to connect to devuan laptop server on local network

Well, you did report the ping request going out from the laptop, and also arriving to the server, but there was no response message out from the server and in to the laptop. Other than for that I agree with you that it appears the Devuan installation on the laptop makes this happen. Especially since the laptop seems invisible to all other systems.

Let's try this experiment: with the laptop running Devuan doing ping -n 192.168.1.4, check both the icmp and arp messages on the server. There should at least be arp messages from the server where it attempts to determine the macaddress for the host having 192.168.1.17. You should then also at the same time check for arp messages to the laptop.

Make sure you get both IP addresses and mac addresses of all messages. And report them here.

Also, please include output of

sysctl net.ipv4.conf.all | grep arp

Online

Board footer