LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 12-23-2011, 03:18 AM   #1
sathish_s
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Rep: Reputation: Disabled
port opening in RHEL 5


how to open the port in rhel 5 ( i want to open port 7001 )

thanks in advance
Sathish s
 
Old 12-23-2011, 03:36 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
well, first you have to use a service that will listen on that port.

You don't specify which 'service' you're running (is it going to be SSH, FTP, vpn etc.) and what is the problem that you don't get port 7001 ?

You can probably open port with your firewall (maybe you're running IPTABLES ?) or temporarily stop firewall to test (# service iptables stop)?


When you're asking for help, specify what is the service you're having trouble with and what have you done so far,
this way you can get help, not just saying "how to open the port ..." (it's like you would go to a car mechanic and tell him that your car is not working ...? )
 
1 members found this post helpful.
Old 12-23-2011, 04:55 AM   #3
sathish_s
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
weblogic is going to run in that port ,

i started weblogic server and opend the console by giving localhost:7001/console but it didnt work ,

telnet output says connection refused to that port (7001)

i tried with iptables


1)iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 7001 -j ACCEPT

2)/etc/init.d/iptables restart

after this also telnet didnt work to that port




thanks

Sathish
 
Old 12-23-2011, 05:52 AM   #4
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 53
Quote:
i started weblogic server and opend the console by giving localhost:7001/console but it didnt work
If you are using "localhost:7001" then you must be using a web browser directly on the server, correct? If not, your problem is you shouldn't be using "localhost" but rather the IP address of the server.

The way you changed your IPtables rules is fundamentally wrong, because even though you may have opened the port on (1), you didn't save the rule set, so when you restarted iptables (2) you erased the fact that you added a rule.

Before changing your firewall though, your default IPtables rules will allow you to connect to localhost:{any} (assuming you are on the local console). So, because you said that didn't work, you should first check that there is a service listening on port 7001:
Code:
netstat -pantl |grep :7001
If the above doesn't return something listening on that port, then you need to go back and check your weblogic logs to find out why it is not.
 
1 members found this post helpful.
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why port not opening prashanlk Linux - Networking 1 01-16-2008 02:11 AM
opening a port satish Linux - Security 2 11-23-2006 02:14 PM
opening pendrive in RHEL 4.0 anupamcbr Linux - Newbie 6 02-13-2006 01:36 AM
opening a port Robin01 Linux - General 3 11-17-2004 10:40 PM
Opening a Port gpamkenny Linux - Networking 3 11-04-2004 02:51 PM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration