LinuxQuestions.org
Visit Jeremy's Blog.
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
  Search this Thread
Old 06-25-2003, 12:45 PM   #1
phishintrip
Member
 
Registered: Jun 2003
Distribution: Slack9, Red Hat 8.1
Posts: 117

Rep: Reputation: 15
iptables rule to let samba in


what rule do i need to add to my script to allow my win2k machine to get to my shared linux drive. Samba works already when i flush all the rules but when i run my firewall script i can see my linux machine in My Network Places but i can't go to it.
 
Old 06-25-2003, 01:20 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try adding these 3 iptables rules:
iptables -A INPUT -p tcp --dport 137 -j ACCEPT
iptables -A INPUT -p tcp --dport 138 -j ACCEPT
iptables -A INPUT -p tcp --dport 139 -j ACCEPT
 
Old 10-14-2003, 10:48 PM   #3
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
When you add rules like that to iptables, do they have to be added evrytime the machine starts up or are they automatically added to the default firewall rules? If they need to be added to the iptables rules, how do you permanetly add rules?
 
Old 10-15-2003, 12:58 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The either need to be added each time or saved using the "iptables-save" command.
 
Old 10-15-2003, 11:14 PM   #5
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
So after I do the "iptables . . . ", I issue the iptables-save command and that will save the info into the iptables script?
 
Old 10-16-2003, 01:43 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Yes - It should save them so that the rules are in place after the next reboot.
 
Old 10-17-2003, 09:22 AM   #7
dragonlinux
LQ Newbie
 
Registered: Oct 2003
Distribution: Linux 9.0
Posts: 14

Rep: Reputation: 0
what is this command doing

i looked at the command above and thought great!! I can learn something, however when looking into the command help to see what all of that means I can not find --dport, what is that?
 
Old 10-17-2003, 10:25 AM   #8
Rab22
Member
 
Registered: Dec 2002
Location: Currently: Normal, IL @ ISU -- Typically: South of Chicago
Distribution: Currently: RH 9 && Slackware 9.1 =)
Posts: 50

Rep: Reputation: 15
dport means "destination port" I do believe.
 
  


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
Question about a iptables rule? rjw1678 Linux - Security 2 11-18-2005 07:46 AM
help with iptables rule!! vishamr2000 Linux - Security 6 11-09-2005 05:34 AM
iptables rule order Kumado Linux - Security 4 10-13-2005 11:12 PM
IPTables Rule... Grim Reaper Linux - Software 8 04-28-2003 12:20 PM
IPTABLES rule file (need help) chris200t Linux - Networking 5 11-11-2002 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:14 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
Open Source Consulting | Domain Registration