LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-07-2005, 07:26 AM   #1
GiX
LQ Newbie
 
Registered: Mar 2005
Location: South Africa
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
iptables and samba


here goes another stoopid question from an obvious noob...

I have managed to set up samba...
from my xp system I can see the linux box, no prob, when trying to access it, it takes a few seconds, then gives me a network path does not exist error, when i stop iptables on my fedora3 box, i can access my shares fine from my xp system.

So common sense tells me that iptables is denying me access.

As i am clueless to how to configure iptables, could someone please nudge me into a direction...

much appreciated
 
Old 05-07-2005, 07:59 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
If you're completely in the dark about writing iptables rules, I'd suggest a gui interface like Firestarter. If you are somewhat familiar with iptables rules, I use the following to allow local network access to Samba

Code:
iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp --dport netbios-ssn -j ACCEPT
iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp --dport microsoft-ds -j ACCEPT
iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p udp --dport netbios-ns -j ACCEPT
 
Old 05-07-2005, 06:19 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
i let anything the windows box on my network wants to send over OK (it's connected to eth1)
/sbin/iptables -A INPUT -i eth1 -j ACCEPT

remember that order matters to your iptables entries

the above command won't do any good if it comes after the connection from eth1 is dropped
 
  


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
iptables and samba captain-cat Linux - Networking 2 07-18-2004 09:22 PM
iptables and samba shankariyer Linux - Security 1 02-18-2004 01:26 AM
iptables and SAMBA oracsol Linux - Networking 2 10-08-2003 09:33 AM
samba and iptables p1az Linux - Networking 1 08-04-2003 08:51 PM
Samba and iptables kevin Linux - Security 1 01-29-2002 12:21 PM


All times are GMT -5. The time now is 02:02 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