LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-06-2004, 07:32 PM   #1
arete1969
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake (9.0)
Posts: 7

Rep: Reputation: 0
samba stops when MDK integrated firewall activated


Sorry to bother; I've searched for "firewall" in this forum with no luck, though I've learned some strange things...

How do I allow samba file sharing through a firewall?

I have a Mandrake 9.0 machine successfully sharing and browsing on my home network. When I activate the firewall offered from the Security section under Control Center, none of the other machines can 'see' this computer at all. I can ping it with no problem, but it no longer appears under Network Neihborhood on Windows machines and I can't find it by \\name or \\ip. This happens even when I select all of the services listed under "Which services would you like to allow..." These services are Web Server, DNS, SSH, FTP, Mail Server, POP and IMAP Server, and CUPS.

All the machines are connected through a router with its own firewall so I probably don't really need anything more. I tried disabling the router's firewall and trying again, but I still had the same problem.

Thanks for your time.
 
Old 04-06-2004, 08:13 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,534

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
The router firewall should not have anything to do with the internal network. I assume its a hardware firewill like a Dlink or Syslink.

Samba in unrelated to any web server, DNS, SSH, FTP, Mail Server, POP and IMAP Server, and CUPS. It uses ports 137,138,139 and 443. If you want to run a firewall you will need to open these ports. I do not suggest disabling the router's firewall with these ports open because it is quite easy to gain access to your PC's
 
Old 04-06-2004, 09:59 PM   #3
arete1969
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake (9.0)
Posts: 7

Original Poster
Rep: Reputation: 0
perfect -- thank you!

I was shocked to receive an answer so quickly. Thanks so much, michaelk. And the router is Linksys, by the way, though I guess it doesn't matter.

It took me a little bit to implement this fix, so in case anyone else needs it (or in case I've done something blindingly stupid), here is what I entered into the ports area (click "Advanced"):

137/udp 138/udp 139/udp 443/udp 137/tcp 138/tcp 139/tcp

I'm very new to network security things, especially in Linux, so I apologize that I wasn't able to figure out what file was actually changed by the "drakfirewall" wizard. In the scripts I've seen elsewhere in this forum, I think there will be lines "tcp_ports=" and "udp_ports=", but I don't know.

I think the only one necessary might be "139/tcp". I don't actually know what any of these things do, but when I leave that as the only one on the line and restart samba, I can still view and modify files as before the firewall.

Last edited by arete1969; 04-06-2004 at 11:23 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network stops working when X is activated dinojerm Linux - Wireless Networking 0 08-15-2005 03:41 PM
dhcp when two firewalls in series: integrated firewall to router + shorewall iptable Emmanuel_uk Linux - Networking 3 08-15-2005 07:14 AM
Can't get on internet when firewall activated in Xandros figfighter Linux - Security 5 06-08-2005 08:52 AM
Mdk 10.0 won't boot, stops at NET: Registered protocol family 2 Mike23 Mandriva 1 10-03-2004 07:53 PM
SuSE 8.1 open ports without firewall activated ruedi Linux - Distributions 2 05-10-2003 03:40 PM


All times are GMT -5. The time now is 11:45 AM.

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