[SOLVED] Mint Sylvia can't see share Mint Sarah with firewall, rules tried
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] Mint Sylvia can't see share Mint Sarah with firewall, rules tried
Hi all, I have a pretty new laptop with Mint 18.3 Sylvia and the firewall here, not on the server yet, and a shared printer (works firewall on or off) and a shared folder on an older XFCE Sarah box using SAMBA for both because other laptops are Windows. With the firewall off I can browse the "Windows" network and send/receive files from the Sarah box. With it on I was getting "cannot mount- no list from server" so I searched and discovered rules to fit SAMBA are pre-configured and added them to the firewall successfully, first out only, then in also. The only change was the error message which now says zero items instead of can't mount. Again, the firewall is not on the box with the share, it's on the machine I want to access the share from! Firewall off it works just fine read/write to Sarah box, firewall on (ufw standard) I cannot make it work with any advice I've found so far. Ideas anyone- not afraid of terminal. Thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Mint Sylvia can't see share Mint Sarah with firewall, rules tried
Please see
viewtopic.php?t=224391
viewtopic.php?t=224391
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Re: Mint Sylvia can't see share Mint Sarah with firewall, rules tried
I appreciate the link, and I read all posts there. I installed [Postby altair4 » Fri Jul 01, 2016 10:59 am "Just install everything terminal code"] and my machine was missing a lot of packages, but I still can't connect, though about to reboot and try again. Still, all the info I've gathered is surely going to help when I do complete the work on my home server box.
However, for all that read my problem a reminder that it is my client machine (Sylvia) that won't connect with the XCFE Sarah machine shared folder which does not yet have the firewall enabled, it is just being configured- and yet all the various editions of Windows can, and so can my second XCFE Sarah install.
Sylvia (the client) Firewall off, connect fine, firewall on regardless of added SAMBA rules in and out, will not connect. Thanks for any and all help!
However, for all that read my problem a reminder that it is my client machine (Sylvia) that won't connect with the XCFE Sarah machine shared folder which does not yet have the firewall enabled, it is just being configured- and yet all the various editions of Windows can, and so can my second XCFE Sarah install.
Sylvia (the client) Firewall off, connect fine, firewall on regardless of added SAMBA rules in and out, will not connect. Thanks for any and all help!
Re: Mint Sylvia can't see share Mint Sarah with firewall, rules tried
Not sure I followed all of that but it sounds a lot like this issue: https://askubuntu.com/questions/875845/ ... g-together
But before you do that you are talking about one Linux machine connecting to another another Linux machine with samba correct? The bug at askubuntu deals with a netbios / firewall incompatibility. You don't have to use netbios - or any other Windows name resolution protocol - when going from Linux to Linux using Samba.
On the Mint Sarah machine run this command:
On the Sylvia machine run this command in a terminal to connect to it:
Then bookmark it.
Change:
thunar to the name of your file manager
sarah-host-name to it's real host name
and don't forget the .local at the end.
If you want to get fancy about this you can add an avahi / samba service announcement to the server as described here: viewtopic.php?f=157&t=185410#p960482
Then all of your Linux boxes and any macOS boxes you may have on your network will see
But before you do that you are talking about one Linux machine connecting to another another Linux machine with samba correct? The bug at askubuntu deals with a netbios / firewall incompatibility. You don't have to use netbios - or any other Windows name resolution protocol - when going from Linux to Linux using Samba.
On the Mint Sarah machine run this command:
Code: Select all
hostname
Code: Select all
thunar smb://sarah-host-name.local
Change:
thunar to the name of your file manager
sarah-host-name to it's real host name
and don't forget the .local at the end.
If you want to get fancy about this you can add an avahi / samba service announcement to the server as described here: viewtopic.php?f=157&t=185410#p960482
Then all of your Linux boxes and any macOS boxes you may have on your network will see
sarah-host-name SMB
under Network in their file managers automatically. No netbios, workgroup, etc,.. involved.Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: [SOLVED] Mint Sylvia can't see share Mint Sarah with firewall, rules tried
@altair4 You're a GENUIS! The link you provided was the solution for making Network Browse work with Firewall On which is what I wanted. Immediately after running the first suggested terminal command the view in Files/Network displayed an icon of the server host box like on every other machine but this one until the fix. Read/Write just fine! Why a Linux to Linux Samba share was so hard, I don't know.
Question: I then added the iptables persistent option suggestion, and yes, it still works after reboot, but now I'm thinking there could be a negative from that down the road maybe? My question: Better to undo iptables persist and instead run the first command in startup?
Have a great weekend all!
Question: I then added the iptables persistent option suggestion, and yes, it still works after reboot, but now I'm thinking there could be a negative from that down the road maybe? My question: Better to undo iptables persist and instead run the first command in startup?
Have a great weekend all!
Re: [SOLVED] Mint Sylvia can't see share Mint Sarah with firewall, rules tried
Don't know which one is a better approach. You won't be able to run the command as a "startup application " because of the sudo but you could run it in /etc/rc.local is suppose - also without the sudo. And you can always undo the iptables-persist thing later if there's an issue.Question: I then added the iptables persistent option suggestion, and yes, it still works after reboot, but now I'm thinking there could be a negative from that down the road maybe? My question: Better to undo iptables persist and instead run the first command in startup?
Ubuntu 17.10 fixed the problem by finally implementing something Samba told them to do years ago. The second link in my original post talks about adding an avahi service announcement for samba on all your linux boxes. That's what Ubuntu 17.10 will do to itself automatically in a more elegant way.Why a Linux to Linux Samba share was so hard, I don't know.
This method doesn't use port 137. It uses port 445 as does macOS and Windows. It's unaffected by this odd kernel / iptables bug.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: [SOLVED] Mint Sylvia can't see share Mint Sarah with firewall, rules tried
Thanks much, I will try the server-side announcement suggestion. Sorry for delayed reply, I've been away several days celebrating the birth of a grandchild. Thanks much for accurate advice!! -Pete