Download your favorite Linux distribution at LQ ISO.
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 05-07-2005, 07:26 AM   #1
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
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
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

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

Rep: Reputation: 53
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


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 > Forums > Linux Forums > Linux - Newbie

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