SAMBA and NFT #39
Replies: 11 comments 8 replies
-
Maybe the rules need to be positioned earlier in your rule set? If a rule blocks a subsequent rule allowing access will not work. |
Beta Was this translation helpful? Give feedback.
-
I don't have a lot of experience running Samba, but I saw a few things online that you can try. Try accepting both TCP and UDP packets on port 445. Check to see which ports that your Samba server is listening on. |
Beta Was this translation helpful? Give feedback.
-
Try adding this rule before any drop rules to your rule set, see if Samba works:
|
Beta Was this translation helpful? Give feedback.
-
nftables.conf.zip Appears I need rules for accepting tcp 139 and tcp 445 which I do. @jedzi-nz I added the rule but it had no effect. Here is my entire nftables.conf file (attached) |
Beta Was this translation helpful? Give feedback.
-
Infact stopping and starting nftables on server gives access from client to server |
Beta Was this translation helpful? Give feedback.
-
I would try re-ordering your rules:
|
Beta Was this translation helpful? Give feedback.
-
I don't think this is anything to do with your ruleset. Have you disabled IP tables?
Have you enabled
|
Beta Was this translation helpful? Give feedback.
-
After reboot and before restarting nftables what is the output of
|
Beta Was this translation helpful? Give feedback.
-
Well I think that's your problem. You can't have ufw and nftables at the same time. Run
then reboot and see if Samba works. |
Beta Was this translation helpful? Give feedback.
-
After you reboot and before you restart nftables what is the output of
|
Beta Was this translation helpful? Give feedback.
-
So nftables activates on boot but Samba does not work. After restarting nftables Samba works. I can not think of an explanation for this but I doubt Geolocation for nftables is the cause. After rebooting instead of restarting nftables just try running the geo-nft.sh script.
If Samba still not working then Geolocation for nftables likely not the cause. |
Beta Was this translation helpful? Give feedback.
-
I have Geo-NFT set up and working on my PC (Mint22) and works as it should. However I have not been able to run SAMBA with another Mint PC but SAMBA works with the NFT Firewall stopped. Any help creating the correct rule set for the firewall would be appreciated. So far I have these rules:
`# Accept SAMBA on port 137
udp dport 137 counter accept comment "Accept SAMBA on port 137"
Beta Was this translation helpful? Give feedback.
All reactions