PDA

View Full Version : [ubuntu] is firewall needed with samba



corkscrew
March 19th, 2009, 10:20 AM
I'm a newbie'
I have a mixed home network set up with win xp and Hardy Heron,I am using samba to share folders across the network.
I connect to the internet via a router.
Do I need to install a firewall since I'm using router?

cdenley
March 19th, 2009, 02:03 PM
Your router should function as a firewall, blocking outside computers from connecting to samba, but more importantly, you should have configured samba to only allow connections from your LAN.
https://help.ubuntu.com/community/SettingUpSamba#/etc/samba/smb.conf

bodhi.zazen
March 19th, 2009, 06:03 PM
It depends on what you are wanting exactly.

I am running a samba server and I have some machines on my LAN I do NOT wish to allow access, so I use a firewall.

There are other solutions, but I firewall other things on that server anyways, so just as easy to use one tool form multiple tasks, gets the job done.

If you do not need to restrict your LAN then your router is sufficient.

IMO you should NOT use samba over the internet (if you need that, go for ssh).

Nxion
March 19th, 2009, 06:14 PM
IMO you should NOT use samba over the internet (if you need that, go for ssh).

To expand a little on what bodhi said, Yes for over the internet, Samba is NOT the way to go. SSH is safest and most secure. With ssh you can setup and configure SSHFS (https://help.ubuntu.com/community/SSHFS). In essence, sshfs allows you to enable mounting of a remote filesystem on a local machine. It is pretty handy. I like it :)

corkscrew
March 19th, 2009, 07:05 PM
thanks to all the replys feel a bit safer now!!!