The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

APF installed but still have other ports open

Discussion in 'General Discussion' started by EdRooney, Dec 3, 2004.

  1. EdRooney

    EdRooney BANNED

    Joined:
    Oct 21, 2004
    Messages:
    166
    Likes Received:
    0
    Trophy Points:
    0
    APF installed but still have other ports open
    tcp 0 0 0.0.0.0:1980 0.0.0.0:* LISTEN 24529/pi

    Why does netstat show port 1980 open when I have apf blocking all ports except whats used by cpanel?
     
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    1980 isnt open for any C-panel servers. can u check what is the process that is listening over there ?
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That certainly does look odd. However, you have misunderstood what iptables/APF does. It is a firewall, it blocks certain ports and allows others through for new connections and more if there is an alternative established connection. It does not stop processes running up attached to ports (as you've shown here), it just stops connections to them.
     
  4. EdRooney

    EdRooney BANNED

    Joined:
    Oct 21, 2004
    Messages:
    166
    Likes Received:
    0
    Trophy Points:
    0
    How do I stop processes running up attached to ports?

    Am I correct that no one is able to connect to :1980 if apf is on and configured properly even if a process is attached to that port?
     
  5. picoyak

    picoyak Well-Known Member

    Joined:
    Jun 10, 2004
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Yes, you are correct.
     
  6. EdRooney

    EdRooney BANNED

    Joined:
    Oct 21, 2004
    Messages:
    166
    Likes Received:
    0
    Trophy Points:
    0
    How do I stop processes running up attached to ports?
     
  7. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    do an:
    Code:
    lsof -i :1980
    
    to see what process is running on port 1980. Then you can kill that process, the process ID should be shown from the lsof command.
    Code:
    kill -15 <PID>
    
     
Loading...

Share This Page