loopyzort
March 1st, 2009, 02:32 PM
I know this is kinda stupid, but doing:
sudo ufw allow Samba
basically says anyone can access the samba ports on my server. maybe it's pointless (as if someone's hacked my network they'd have an internal IP anyway), but I'd like to allow the ports defined in certain preconfigured applications to only be accessible from my internal network IPs (192.168.0.0/24). Is there any way to do this besides:
sudo ufw allow proto tcp from 192.168.0.0/24 to 445
Or a I stuck with the prepackaged application profile allowing access from Anywhere vs. manually entering the information (not that it's a huge problem, just seems stupid to limit the "allow <<application>>" syntax like that).
Sorry if this is clearly written somewhere that I missed...
sudo ufw allow Samba
basically says anyone can access the samba ports on my server. maybe it's pointless (as if someone's hacked my network they'd have an internal IP anyway), but I'd like to allow the ports defined in certain preconfigured applications to only be accessible from my internal network IPs (192.168.0.0/24). Is there any way to do this besides:
sudo ufw allow proto tcp from 192.168.0.0/24 to 445
Or a I stuck with the prepackaged application profile allowing access from Anywhere vs. manually entering the information (not that it's a huge problem, just seems stupid to limit the "allow <<application>>" syntax like that).
Sorry if this is clearly written somewhere that I missed...