Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firewalld is blocking Network/Samba Client in KDE/Dolphin #1277

Open
CaptainCoward opened this issue Jan 15, 2024 · 4 comments
Open

Firewalld is blocking Network/Samba Client in KDE/Dolphin #1277

CaptainCoward opened this issue Jan 15, 2024 · 4 comments
Labels
needinfo Needs more information before action can be taken. triage Issue needs triaged.

Comments

@CaptainCoward
Copy link

What happened

When trying to access a shared Folder (samba) of my other Computer via KDE/Dolphin/Network the access gets blocked by Firewalld. Even if i unblock every service it just refuses to work:

The Computer will be show up under Network yet i can't access it. This seems to be related to some DNS issue since smb://IP-Adress seems to work while smb://computername doesn't. As soon as i disable Firewalld i also will be able to connect via smb://computername.

What you expected to happen

be able to connect..

How to reproduce it (as minimally and precisely as possible)

Use KDE/Dolphin -> Network -> try to access shared folder PC via SMB by it's computername.

Anything else we need to know?

No response

Firewalld Version

2.1.0-1

Firewalld Backend

ntftables

Linux distribution

EndouverOS

Linux kernel version

6.7.0-arch3-1

Other information

No response

@CaptainCoward CaptainCoward added the triage Issue needs triaged. label Jan 15, 2024
@erig0
Copy link
Collaborator

erig0 commented Jan 18, 2024

You want to use samba-client not samba.

@erig0 erig0 added the needinfo Needs more information before action can be taken. label Jan 18, 2024
@CaptainCoward
Copy link
Author

CaptainCoward commented Jan 20, 2024

That's not the issue. The computer that shares the folder with Samba has no firewall.It isn't the server that's blocking access. It's my "client" computer which uses Firewalld. As long as i have firewalld running i can't connect to the server.. i'm only able to see it in Dolphin/Network though can't access it. I even tried allowing literally all services yet access still is not possible. Firewalld prevents Dolphin from loading the Files. I have to disable firewalld-service after that it works. though it's super annoying to always kill firewalld first.

@erig0
Copy link
Collaborator

erig0 commented Jan 20, 2024

I'm aware that it's the client traffic that's being blocked. The samba-client service allows netbios-ns, which is what's being blocked according to your original report.

Perhaps you could give it a try?

I even tried allowing literally all services yet access still is not possible.

Can you enable --set-log-denied all, then look at the drop reports in dmesg ? That'll tell you what's being blocked.

@CaptainCoward
Copy link
Author

I have done so but i have no clue what it means. These two lines seem to appear when i try to connect to the other computer. No clue if MAC is "good" to share so i removed it just in case.

STATE_INVALID_DROP: IN=enp42s0 OUT= MAC=xxx SRC=192.168.0.31 DST=192.168.0.33 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=30059 DF PROTO=TCP SPT=445 DPT=38298 WINDOW=249 RES=0x00 ACK FIN URGP=0 

filter_IN_home_REJECT: IN=enp42s0 OUT= MAC=xxx SRC=198.252.206.25 DST=192.168.0.33 LEN=113 TOS=0x00 PREC=0x00 TTL=47 ID=60435 DF PROTO=TCP SPT=443 DPT=35746 WINDOW=62 RES=0x00 ACK PSH URGP=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needinfo Needs more information before action can be taken. triage Issue needs triaged.
Projects
None yet
Development

No branches or pull requests

2 participants