Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I replaced my TP-Link router with a PC running Linux, hostapd, dnsmasq etc.
On the old router, I used to be able to SSH from one AP client to another. On this new router, I can't. They're all inaccessible to each other. How can I recover that feature?
Note #1: I don't have any Windows machines, just Linux and Android, so I assume I don't need Samba to exchange files across machines. I just need SSH. In fact, blocking Windows machines would be a bonus.
Note #2: I am using this firewall script, but I could not SSH across machines even before I installed it. I am just mentioning it because it certainly is blocking something and should probably be taken into consideration for a potential solution to my problem.
Can we assume your devices are being assigned an IP address using DHCP and can access the internet? Are these all wireless devices or are some of them wired? Can the wireless devices ping the new router and ping other wireless devices?
* devices are being assigned an IP address using DHCP - check
* can access the internet - check
* all wireless devices - check
* the wireless devices can ping the new router and ping other wireless devices - check
OK, I have a PC (Linux), a tablet (Android) and a phone (Android).
I just ran an SSH server on the tablet and it all worked. That's something I overlooked. But that's not the way I'm used to. I usually run a file explorer application on the phone and the tablet that can browse network folders. It can use Samba, which I did a long time ago, and it can use SSH. I prefer SSH now and it works on the TP-Link router, but won't work on the home brew router.
Each router assigns different IPs to the PC so I have to have a different configuration depending on which router I am using, but the two configurations are exactly the same except for the IP.
On the home brew router, the application complains:
"failed to connect to 10.40.40.21 (port 220) after 15000ms: isConnnnected failed: ECONNREFUSED (Connection refused)"
Are you attempting root login? An upgrade may have disabled password based root logins.
Re: Port 220. I wouldn't bother changing port on LAN machines. You can always change the port with port forwarding for internet access if you wish.
About port forwarding, I can't do that. I am very network-illiterate. I also don't know how to assign fixed IPs to each client, like I used to do on the TP-Link router.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.