Linux (RHEL) and ports...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Linux (RHEL) and ports...
# 1  
Old 07-01-2013
Linux (RHEL) and ports...

Hi,

One of our applications running on RHEL is not working as expected - the application supplier has advised that a port is not allowing the correct traffic.

I know the port is open for incoming connections (checked with nmap and telnet) however is there a way I check the port is open for outgoing connections?

Iptables is disabled, so is SELinux.

Thanks
# 2  
Old 07-01-2013
Maybe describing a bit more your issue and giving more information can help alot
What isnt working/ or as expected ? what error messgaes do you get?
What ports is it using ? etc...
# 3  
Old 07-01-2013
All I need to know if there is a way to confirm whether the port allows outgoing (not just incoming) traffic?

I can then pass the information to the supplier to fix.. I have just read that tcp ports allow connections bidirectionally as default, is this correct (it was in another forum post)?

I have tried various commands now and by all appearences the port is working exactly as our test environment (which is on the same server for this application).

Error messages all point to a problem connecting to the client (there are no firewalls between the server/client it is all on an internal network), jboss should communicating through this port. I can't provide the exact error just now as I am no longer at work but it was along the lines of Broken Pipe/Stream can't communicate.

Thanks for the reply.

Last edited by mcclunyboy; 07-01-2013 at 01:34 PM..
# 4  
Old 07-01-2013
shut down the application server and run netstat -pan, is there anything listening on the port already?

If so your app can't bind to the port.
# 5  
Old 07-02-2013
Error posted below - still thinking along the lines of ports...!?

port 8446 is open/listening.

Code:
2013-07-02 10:51:27,129 TRACE [org.jboss.remoting.transport.socket.ServerThread.processInvocation] preparing to process next invocatio
n invocation
2013-07-02 10:51:27,129 TRACE [org.jboss.remoting.transport.socket.ServerThread.readVersion] blocking to read version from input strea
m
2013-07-02 10:51:27,203 TRACE [org.jboss.remoting.transport.socket.ServerThread.dorun] SocketException received. This is likely due to
 client disconnecting and resetting connection.
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
        at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196)
        at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376)
        at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443)
        at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515)
        at java.io.ObjectInputStream.read(ObjectInputStream.java:800)
        at org.jboss.remoting.transport.socket.ServerThread.readVersion(ServerThread.java:824)
        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:510)
        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
2013-07-02 10:51:27,204 DEBUG [org.jboss.remoting.transport.socket.ServerThread.dorun] WorkerThread#0[xx.xx.xx.xx1419] closing socketW
rapper: ServerSocketWrapper[Socket[addr=/xx.xx.xx.xx,port=1419,localport=8446].2909a1]
2013-07-02 10:51:27,204 DEBUG [org.jboss.remoting.transport.socket.ServerSocketWrapper.close] unable to writing CLOSING byte
java.net.SocketException: Broken pipe

That maybe a red herring, after investigating further the final message logged to the server.log is actually a timeout:

Code:
2013-07-02 13:35:41,382 TRACE [org.jboss.remoting.transport.socket.ServerThread.dorun] java.net.SocketTimeoutException: Read timed out
2013-07-02 13:35:41,382 DEBUG [org.jboss.remoting.transport.socket.ServerThread.dorun] WorkerThread#0[xx.xx.xx.xx:8859] closing socket
Wrapper: ServerSocketWrapper[Socket[addr=/xx.xx.xx.xx,port=8859,localport=8446].180e475]


Last edited by mcclunyboy; 07-02-2013 at 09:36 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

RHEL Linux 6.2 to 7.3 - Bootable iso

Hi All On one of my sandbox machine, I want to replace RHEL 6.2 to RHEL 7.3. I am using both developer editions. rhel-server-7.3-x86_64-dvd.iso ... This is what I have downloaded from Red Hat Enterprise Linux Download | Red Hat Developers My understanding is this file would work as a... (1 Reply)
Discussion started by: videsh77
1 Replies

2. Red Hat

Server Hang in Linux RHEL 5.5

Dear All , One of our Oracle Database Server , which got hanged a couple of days before , so that we could not login to the Server , but it was pinging. So we tried various options and at last we did a reboot of this server. To find out the root cause of the Server Hang , when i checked the... (2 Replies)
Discussion started by: jegaraman
2 Replies

3. Programming

c functions to turn off open ports in linux

nmap is a network utility which gives u information about open ports on ur system. for eg $ nmap 10.226.112.202 PORT STATE SERVICE 7/tcp open echo 13/tcp open daytime 22/tcp open ssh 23/tcp open telnet 37/tcp open time 1100/tcp open unknown these open... (2 Replies)
Discussion started by: anand121
2 Replies

4. Emergency UNIX and Linux Support

RHEL/Linux Small Monitor

Hi, I'm using RHEL 4.5, and currently due to some special circumstances that required me to use this small monitor about 7" The problem is while using this monitor with windows, the monitor able to show the graphic/view.. but while using redhat it unable to detect. This monitor has no... (7 Replies)
Discussion started by: flekzout
7 Replies

5. Cybersecurity

Ports open on solaris/linux

Hi, I am trying to close all possible ports on my solaris and linux servers. I am stuck on the following ports on both Solaris 10 (local zone) and Linux (Suse) servers. Here is nmap output : PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 1720/tcp open H.323/Q.931... (6 Replies)
Discussion started by: manifesto
6 Replies

6. UNIX for Advanced & Expert Users

linux rhel: on which string did this come from?

Hi Guys, RHEL 4.4 I was reviewing an app failure on one of our hosts and I encountered this entry on syslog: Feb 22 08:54:46 saturn-host rc: Starting start_server_daemon: succeeded there's timestamp, saturn-host is the servername, rc is the linux rc wrapper script, "Starting" is on... (1 Reply)
Discussion started by: marcpascual
1 Replies

7. UNIX and Linux Applications

Linux ODBC in RHEL v5.2

I need some help with a project I am working on. I am writing a database application to manage some access lists. While this is for internal use only, the IT infrastructure is US Army managed. This severely limits which software I am allowed to use. I have a RHEL v5.2 server which uses some... (2 Replies)
Discussion started by: KenK
2 Replies

8. Linux

proper way to reserve ports in linux

How do you debug a perl script non interactively, similar to bash -x? (1 Reply)
Discussion started by: marcpascual
1 Replies

9. IP Networking

domain linux server, open ports?

Hi all - i currently run a domain strifex.net. This domain has a dedicated IP address and in having that, should be able to run a ventrilo VoIP server from it. I uploaded all the needed files etc... and am able to connect to it, if and only if i enable DMZ to my local machine - then i am able to... (1 Reply)
Discussion started by: ccfc1986
1 Replies

10. Linux

How to setup ports on Linux

If Linux have a file like AIX: rc.tcpip to setup port services? (3 Replies)
Discussion started by: rainbow_bean
3 Replies
Login or Register to Ask a Question