Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-04-2011, 05:11 PM   #1
LQ Newbie
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Samba on WAN

Hello all:

Is it safe to put Samba Server outside your Firewall?

Thank you
Old 04-04-2011, 06:47 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
It depends on your threshold of 'safe'. Personally, I only allow access via ssh or openvpn. Then again, if you're using ssh, you can just use sshfs instead of samba, and not have to worry about unexpected local access (like via WiFi, for example).
Old 04-04-2011, 07:24 PM   #3
Registered: Aug 2002
Posts: 20,546

Rep: Reputation: 3593Reputation: 3593Reputation: 3593Reputation: 3593Reputation: 3593Reputation: 3593Reputation: 3593Reputation: 3593Reputation: 3593Reputation: 3593Reputation: 3593
Welcome to LinuxQuestions.
No, SMB protocol is not secure.

Last edited by michaelk; 04-04-2011 at 07:27 PM.
Old 04-04-2011, 07:40 PM   #4
Registered: Mar 2008
Posts: 20,227

Rep: Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196Reputation: 3196
At least use a GRE tunnel or greater.

If you can find the old barracudaserver that was free it was a neat way to use https.
Old 04-04-2011, 07:44 PM   #5
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 370

Rep: Reputation: 41
Absolutely not. There are so many vulnerabilities and attack vectors in the SMB/NMB protocol that it would take an entire page to list them all. Trust me when I say that the last thing you wanna do is broadcast a service listening on ports 137/139 on the public internet.

Setup a VPN server (or at the least SSH) if you want to expose samba to remote users.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connectivity problem with Mandrake Linux 10.1 LAN/WAN/Samba Server BiO|Happy Linux - Networking 3 05-05-2005 02:51 PM
Connectivity problem with network on Mandrake 10.1 LAN/WAN/Samba BiO|Happy Linux - Wireless Networking 0 04-29-2005 04:11 PM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
samba symlinks accross a wan jse580 Linux - Newbie 1 02-27-2004 07:58 AM
Samba is Slow w/ FreeS/WAN and Sentinel prismbiz Linux - Networking 5 12-14-2003 04:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration