Help with firewall

Discussion in 'Site & Server Administration' started by a4kata, Aug 3, 2009.

  1. #1
    Hello, I want to ask how to open the port in the firewall . I have :

    courier-imap,lighttpd and qmail .

    I wanna to turn on iptables but before I would like to know what ports I must open and how ?
     
    a4kata, Aug 3, 2009 IP
  2. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if running Iptables on a linux server, the following command should work:

    iptables -A FORWARD -p tcp --dport [Port Number] -j ACCEPT 
    Code (markup):
    replace tcp with udp if need be and remove the brackets from around port number/replace with the necessary port.
     
    SecureCP, Aug 4, 2009 IP
  3. Rudolf Bodocsi

    Rudolf Bodocsi Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    Default port for courier-imap : 143
    Protocol for courier-imap: TCP

    Default port for lighttpd: 80
    Protocol for lighttpd: TCP

    Default port for Qmail: 25
    Protocol for qmail: TCP

    You need check programs configuration files for the correct port number.

    Rudolf
     
    Last edited: Aug 5, 2009
    Rudolf Bodocsi, Aug 5, 2009 IP
  4. eric_basher

    eric_basher Peon

    Messages:
    185
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    after add like command above do nmap -sS -O 127.0.0.1 to check what port are open
     
    eric_basher, Aug 5, 2009 IP