View Full Version : [ubuntu] SAMBA File Server Configuration

February 21st, 2010, 03:07 PM
I have a PC set up with Ubuntu 9.10 and Samba. I have 2 network cards installed in this machine and I need to configure it so that one network card serves files to one Gateway while the other serves to an other. My goal is to use Ubuntu as a bridge/firewall to keep the internet from passing through. One network card will be connected to internet pc's running windows while the other will be hooked to windows pc's that cannot get on the net (to protect from viruses in the outside network.
Example: eth0= and the private ip=
Can anyone point to so some configuration examples for a newbie. acannon@nextmediagroup.net

February 22nd, 2010, 10:29 AM
Samba, By default, listens on all the interfaces that are connected. Hence no additional configuration is needed for Samba service to listen on multiple interfaces.

After starting Samba you can use the following command to check the interfaces it is listening on

$ netstat -tapn | grep smbd |grep LISTEN

For configuring Ubuntu system as a gateway you can refer the following document: