LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-05-2007, 11:16 AM   #1
lion_heart_300
Member
 
Registered: Sep 2005
Posts: 130

Rep: Reputation: 15
i need open samba port by iptables


hello,,,,
im using suse 10.1
i need open samba port by iptables
i added this command
1 iptables -A INPUT -p tcp --dport 137:139 -j ACCEPT
2 iptables -A INPUT -p udp --dport 137:139 -j ACCEPT
aftet save samba dont work
thanks
 
Old 01-05-2007, 11:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
try these...

-A INPUT -p udp -m udp -s 192.168.0.0/24 --dport 137 -j ACCEPT
-A INPUT -p udp -m udp -s 192.168.0.0/24 --dport 138 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp -s 192.168.0.0/24 --dport 139 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp -s 192.168.0.0/24 --dport 445 -j ACCEPT

assuming your local subnet is 192.168.0.0/24 of course
 
Old 01-05-2007, 01:23 PM   #3
lion_heart_300
Member
 
Registered: Sep 2005
Posts: 130

Original Poster
Rep: Reputation: 15
what do you main of 192.168.0.0/24
 
  


Reply



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 - Port Won't Open stascrash Linux - Security 11 11-09-2006 10:39 AM
iptables won't allow ftp even with port 21 open. keithxl Linux - Security 12 05-22-2006 11:36 PM
iptables open port for Azureus Berticus Linux - Security 2 02-21-2006 03:32 PM
Open/Closing port without iptables? hottdogg Slackware 8 12-27-2005 03:55 PM
open port 10000 by iptables vijaysh Linux - Security 2 12-24-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:03 PM.

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