Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

How to reopen a blocked port?

Discussion in 'General Discussion' started by groefie, Feb 13, 2005.

  1. groefie

    groefie Active Member

    Joined:
    May 30, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    156
    Ok guys,

    today I've blocked a bunch of ports on our servers with the command

    iptables -A INPUT -p tcp --dport 23:24 -j DROP
    iptables -A INPUT -p tcp --dport 26:36 -j DROP

    etc...

    Too bad I've blocked port 26 (exim) and the port of spamd too. :rolleyes:

    Any idea how to reopen them? :cool:

    Thanks in advance
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,615
    Likes Received:
    51
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    iptables -A INPUT -p tcp --dport 23:24 -j ACCEPT
    iptables -A INPUT -p tcp --dport 26:36 -j ACCEPT
     
  3. groefie

    groefie Active Member

    Joined:
    May 30, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    156
    Thanks, that works like a charm :p

    But now I'm having another problem. When sending a mail to an account on that server I get the following error:

    host superfm.be[193.151.74.85] said:
    550-astra.telenet-ops.be [195.130.132.58] is currently not permitted to
    relay 550-through this server. Perhaps you have not logged into the
    pop/imap server 550-in the last 30 minutes or do not have SMTP
    Authentication turned on in your 550 email client. (in reply to RCPT TO
    command)


    What happens and how to solve this?

    Thanks! :)
     
  4. groefie

    groefie Active Member

    Joined:
    May 30, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    156
    Problem solved. I just did a mailbox fix in WHM and it works fine now :D
     
Loading...

Share This Page