What did I do wrong? I installed Samba, but when the firewall is enabled it won't work.

sspade

I am running Linux, and installed Samba for file sharing across the network. When the firewall is enabled, Samba will not function. I need to have a firewall up, I can't imagine that the choice is between using Samba and having a firewall. What am I missing?

Topic: Networking
Answer this Question

Answers

2 total
lsmall
Vote Up (7)

You have to be careful with your firewall for Samba.  If you enable the firewall on the computer that is running Samba, it won't work.  The Linux firewall is supposed to be used between your LAN and internet, but it can keep local users from using Samba.  It is possible, but not all that easy, to configure your firewall so that Samba will be allowed to access only your network.  It is easy to just run Samba on a different computer than the one on which you are running your firewall.  Divide your tasks onto two machines - one for a file server and the other for a firewall.

jimlynch
Vote Up (7)

Hi sspade,

You might want to take a peek at this Samba troubleshooting article. See the section on Samba and firewalls.

Quick HOWTO : Ch12 : Samba Security and Troubleshooting
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch12_:_S...

"Firewall software installed both on your Windows PCs and on the Samba server itself may prevent Samba from functioning. Two popular firewall packages, iptables and ZoneAlarm offer solutions."

Ask a question

Join Now or Sign In to ask a question.
More bumps in the road are probably in store for Bitcoin. The virtual currency has seen some massive swings in value over the last several weeks, but that volatility is not likely to end soon, its lead developer suggested on Saturday.
Bitcoin is growing up. The virtual currency that caught the public's attention last month when its value zoomed briefly past US$200 kicked off its first Silicon Valley conference Friday evening and shows no sign of losing momentum.
Apps, Google's flagship product for enterprise IT, had a minor presence at this week's I/O developer conference, but some announcements at the show and in prior weeks deserve attention from customers of the cloud email and collaboration suite.
Forget Glass, self-driving cars or a smartwatch. Developers, not physical consumer products, were Google's darlings at the company's annual I/O conference this week.
Yahoo has called a mystery press event in New York City on Monday afternoon, hot on the heels of rumors that it plans to buy Tumblr for US$1 billion.
Dell's thumb-sized PC called Project Ophelia, which is the size of a USB stick, will start shipping in July for around US$100.
Mozilla has postponed blocking third-party cookies by default in the Beta version of Firefox 22, "to collect and analyze data on the effect of blocking some third-party cookies."
Google is facing some tough questions from Congress over the privacy concerns raised by Glass, its fledgling augmented reality system for recording and receiving information on the fly. But on the ground at the company's I/O conference for developers, attendees are largely enthusiastic about the technology.
An appeals court in Mexico has overturned an approximately US$2.7 billion judgment against Yahoo and Yahoo Mexico in a breach-of-contract suit concerning online directories.
Unless you're a Yahoo employee, theres a very good chance you are working from home or at a coffee shop at least part of the week, according to Forrester Research.

White Papers & Webcasts

See more White Papers | Webcasts

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+