I have a server that I use externally for backup and cloud storage, however locally for convenience I'd like to allow samba shares.
I don't need these externally, just for my local network. Currently CSF+LFD just blocks Samba completely so I have to temorarily disable the firewall to use it. Does anybody please know how to just allow samba internally and keep it blocked externally?
I've tried adding the below to my /etc/csf/csf.allow file and restarted but for some reason it is still blocked:
Code: Select all
# TCP connections inbound to port 139 and 445 from local network (192.168.0.0/24)
tcp|in|d=139|s=192.168.0.0/24
tcp|in|d=445|s=192.168.0.0/24
# UDP connections inbound to port 137 and 138 from local network (192.168.0.0/24)
udp|in|d=137|s=192.168.0.0/24
udp|in|d=138|s=192.168.0.0/24
gives me this:
Code: Select all
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 23102/smbd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 23102/smbd
tcp6 0 0 :::139 :::* LISTEN 23102/smbd
tcp6 0 0 :::445 :::* LISTEN 23102/smbd
udp 0 0 192.168.122.255:137 0.0.0.0:* 1267/nmbd
udp 0 0 192.168.122.1:137 0.0.0.0:* 1267/nmbd
udp 0 0 192.168.0.255:137 0.0.0.0:* 1267/nmbd
udp 0 0 192.168.0.100:137 0.0.0.0:* 1267/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 1267/nmbd
udp 0 0 192.168.122.255:138 0.0.0.0:* 1267/nmbd
udp 0 0 192.168.122.1:138 0.0.0.0:* 1267/nmbd
udp 0 0 192.168.0.255:138 0.0.0.0:* 1267/nmbd
udp 0 0 192.168.0.100:138 0.0.0.0:* 1267/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 1267/nmbd