LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-14-2005, 05:50 AM   #1
Dolphin2005
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 13

Rep: Reputation: 0
Firewalls are inactive


Hi,

I have managed to network my Linux and Windows XP machines using Samaba, but in order to access the files on my Linux machine from Windows I had to deactivate the firwalls on both Windows and Linux and currently my computers are not protected from the interent.
 
Old 11-14-2005, 06:07 AM   #2
meranto
LQ Newbie
 
Registered: Nov 2005
Location: /home/ridderkerk/NL or /work/heerhugowaard/NL
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
Re: Firewalls are inactive

Quote:
Originally posted by Dolphin2005
Hi,

I have managed to network my Linux and Windows XP machines using Samaba, but in order to access the files on my Linux machine from Windows I had to deactivate the firwalls on both Windows and Linux and currently my computers are not protected from the interent.
No, you have to configure your firewalls to allow samba. Simply shutting down the firewalls for this is like using an H-bomb to kill the mosquito in your bedroom.

It is highly unsafe to connect your pc's to the internet without having firewalls turned on
 
Old 11-14-2005, 06:49 AM   #3
Dolphin2005
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 13

Original Poster
Rep: Reputation: 0
Ok. Please can you tell me where I can find my firewall file in order to configure it and what would I need to change to allow samba through.

And I also have an Apache server runnning......do I need to configjur the firewall file to let it thrugh as well?

Thanks
 
Old 11-14-2005, 07:22 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
It might help if you indicated which disto you are using. There may be a graphical interface to iptables that can make it easier to configure. If you look in /etc/services, you can see which ports are needed.
grep -i netbios
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp # NETBIOS Name Service
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp # NETBIOS Datagram Service
netbios-ssn 139/tcp # NETBIOS Session Service
netbios-ssn 139/udp # NETBIOS Session Service

Also, if you manually edited your samba configuration file, be sure to run "testparm" on it to check for errors.
On some distro's, using their setup program for samba will also open up the ports that you need.
 
Old 11-14-2005, 10:58 AM   #5
Dolphin2005
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 13

Original Poster
Rep: Reputation: 0
Hi,

I am using Fedora Core 3 and I am curently at work so I cannot check the /etc/services to see which ports are needed but I will definitely try ti when I get home in a couple of hours.

Thanks for your help. And if you can think of anything else I should be doing please let me know.
 
Old 11-14-2005, 03:17 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Quote:
And if you can think of anything else I should be doing please let me know.
If the samba server isn't running services to the internet, you might install the "swat" package. This is a web based program for configuring and monitoring Samba. The front page has links to numerous man pages, how-tos and even some books on your system (such as Samba 3 by Example).
 
Old 11-15-2005, 05:34 AM   #7
Dolphin2005
LQ Newbie
 
Registered: Sep 2005
Location: London
Posts: 13

Original Poster
Rep: Reputation: 0
Hi,

I ran testparm and there were no errors found- it loaded everything fine. I looked in the /etc/services and found that there were a lot of ports being used (not sure what most of them were to be honest) and I found the netbios ones that you mentuioned in your reply and it was using ports 137,138 and 139.

I tried to download swat rpm file in a few websites and found that the websites were down. I am going to try and find another site tonight.

Also, I have now put my firewalls on both Windows and Linux back up. Please can you tell me how I can configure my firwall to let samba through>?
 
Old 11-15-2005, 05:25 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The swat package may be available on your installation discs.

Also, the NETBIOS ports use both TCP and UDP.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
inactive servers LLS Linux - General 2 02-27-2005 05:48 PM
eth0 is inactive nethunter Linux - Hardware 2 02-09-2005 09:40 AM
Network goes inactive... docman Linux - Networking 1 04-29-2003 02:08 PM
networkdevice inactive cuboctahedron Linux - General 5 02-23-2003 03:18 AM
Linux Firewalls [iso firewalls] yoogie Linux - Networking 3 01-28-2002 06:56 PM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration