Basic set up: OpenWrt on Netgear router. Static names and IPs for each of 9 machines. I run 3 distros on separate partitions on my main machine. To simply "ping" tests between machines I created a "ping_list" and put it in /usr/local/bin so when a new machine is booted I can easily ping openwrt or my server by typing a few letters. I use ssh to move to other machines on my home network. This seemed to work OK, but recently I upgraded Mint and LinuxMintDebian (LMDE) to the newest LTD. Now I get failures -- something isn't right. Usually I have to run $ source /usr/local/bin/ping_list to get bash-completion working on any new terminal tab. And also DNS within my home network isn't working with "that name isn't found" If I typed the IP ping would work. I may have screwed up /etc/resolve.conf or something. I've been doing searches, but seem to be getting in more trouble. Best way to resolve this?
This sounds like a Mint issue. Did you make any changes to your OpenWrt system when you changed to Mint?
Well mint trademark is “Linux as close as possible to Windows” and ping doesn’t work on windows either. At least if the network is defined as public network, then the firewall has nailed the door shut and it won’t open at all.
In theory a windows pc will be more network friendly if the network is setup as private network, then the firewall should allow ping and ssh etc?
That is why I don’t use windows for network work because it is impossible to find fault when there are crazy much security and I have no meaningful access to control it since Microsoft have said “don’t worry, we make you secure”.
So check what firewall you have in mint and what settings there are. To make ping work, icmp messages must be allowed, at least the one called “ping reply” or something like that.
How do you store dns names on your router?
Well, I'll post this to the Mint forum as well, but this was not a CHANGE to mint but a clean install of LTD Mint22 from LTD Mint21. I posted here not because I thought this was an OpenWrt issue, but because it I think it an issue with how I've set up my home network and I think users here know a lot about how best to troubleshoot those issues.
I have been using OpenWrt for about 5 years. It's set up with names and IPs for all the machines on my network. In the DNS settings under static leases, these machine names and IPs have been used. So from any machine on the network a ping using a network machine IP should and does give a response. So in that sense everything works. Individual machines use automatic DHCP which gives the static lease IP set on OpenWrt. So $ping 192.168.1.1 works, but $ping openwrt does not. So it's a dns problem in my new LTS distros. In the booted machine's network specs automatic DHCP is blank but that setting does give the machines correct IP. In the DNS, I've used 192.168.1.1 (openwrt's IP) and 8.8.8.8, 8.8.4.4 (Google DNS servers, I believe). So I think these settings are OK. Yet machine name names on my network are not resolved to IPs.
As mentioned, I'm pretty sure it's some sort of /etc/resolv.conf issue, which I think should find my DNS server IPs listed above, but do not. The user is not supposed to edit some of those files. I've read the man pages...pretty involved, but can't figure it out. Any suggestions appreciated.
I still think it is an issue with Mint. Therefore, I'd advise two things.
- Try other devices/operating systems. For example, your phone/tablet or another non-mint computer (and also try a live USB stick of ubuntu on one of the mint systems). See if the same problem exists on other systems. If not, it's a mint problem.
- Let's review your config to make sure there are no errors that we can see:
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
I got wordy. To specific responses: No changes to openwrt. No firewall at present. Will use ufw later when everything else is set. I store DNS server names in the desktop app which shows up a "wired network". Individual machine names are only on the openwrt router.
Wait, what? On OpenWrt?
What desktop app??
So confused... you said that there is a desktop app in which you store your dns server names, but then individual hosts names on OpenWrt??
Let's see the config, and it would probably also be a very good idea for us to see a topology diagram that explains how OpenWrt fits into the network and the other DNS related bits-and-bobs.
Did some checks and comparisons with an older distro that has been working (LMDE-5) and was able to fix /etc/resolv.conf on mint. This file in non-editable. It is an alias (but somehow not a link) to another file: /run/systemd/resolve/resolv.conf and that file now correctly gives my DNS servers: 192.168.1.1, 8.8.8.8 and 8.8.4.4 After restarting everything works.
I use OpenWrt's firewall. After all configuration is done ufw will be implemented on mint & lmde.
I've ssh'd into openwrt years ago when setting it up. After that, since everything seemed to work properly, I've left it alone. Had trouble sshing in today.
After doing: $ ssh root@192.168.1.1
there was an error: Unable to negotiate with 192.168.1.1 port 4567: no matching host key type found. Their offer: ssh-rsa
I changed port 22 to 4567 (not). Since everything is working I didn't pursue it further. Sorry for the confusing and thanks all for the help.
If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks!