LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-18-2004, 05:05 PM   #1
Linux6574
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Question Help with RedHat firewall open ports


Hello,

Can someone tell me how to open port 139 from the redhat 9 firewall?
What command should i write so that i can open this port? I need to access some samba shares, but i cannot open port 139 for access. When i do a scan it says that port 139 is closed.

thanks.
 
Old 04-18-2004, 09:28 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
As root:

iptables -I INPUT -p tcp --dport 139 -j ACCEPT

If this system is accessible to the internet, you should only allow ip address(es) that need access (allowing public access to Samba shares is a really bad idea). So can use this as a template, just subsitute in the appropriate IP address or network subnets:

iptables -I INPUT -s XXX.XXX.XXX.XXX -p tcp --dport 139 -j ACCEPT


--EDIT--

Once you get it working, save your ruleset so that it will remain after a reboot:

service iptables save

Last edited by Capt_Caveman; 04-18-2004 at 09:30 PM.
 
Old 04-24-2004, 08:20 AM   #3
Linux6574
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the reply

Thanks,

I know that it's a bad idea to shere samba over internet. Right now i dropped the samba thing. I'm going with vsftp it's much more reliable.

Again thanks.

Linux6574.
 
  


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
Protecting open ports on firewall RecoilUK Linux - Security 3 06-08-2005 11:29 PM
How to open ports on hardware firewall? ben_build#2.1.0 Linux - Security 3 03-13-2005 02:59 PM
Open ports behind a firewall? ni0wn Slackware 4 09-16-2004 07:48 AM
PLEASE !!! Can't open ports with rc.firewall peryserv Linux - Networking 2 08-26-2004 07:43 PM
Open ports on firewall LionMaster Linux - Security 3 04-13-2003 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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