Skip to main content

How do I trace and resolve TCP_OUT Blocked messages?

Comments

5 comments

  • keat63
    Reverse IP Lookup - ViewDNS.info might help
    0
  • DigitalEssence
    Thanks, That's given me a web address but I'm not sure how I proceed to find out what is trying to connect to it.
    0
  • cPanelLauren
    You could use netstat while it's occurring to see if you can see which service is connecting: For example if I wanted to see what was connected to port 587 I'd run: [root@server etc]# netstat -plan |grep 587 tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 11429/exim tcp6 0 0 :::587 :::* LISTEN 11429/exim
    0
  • DigitalEssence
    You could use netstat while it's occurring to see if you can see which service is connecting: For example if I wanted to see what was connected to port 587 I'd run: netstat -plan |grep 587

    Thanks Lauren. I ran netstat -plan | grep 178.79.140.52
    And that gives me: tcp 0 1 MY.SERVER.IP.ADDRESS:47600 178.79.140.52:4506 SYN_SENT 7800/python2.7
    0
  • cPanelLauren
    Hi @DigitalEssence So that tells us that python is the service and the PID is 7800 (or was at the time) You'd have to look further into the PID if you're not sure what's using python: lsof will give you files opened by the process: lsof -p PID
    ps will get you a snapshot of the process: ps faux |grep PID
    0

Please sign in to leave a comment.