Halaman

Minggu, 15 Februari 2015

IPTABLES di vestacp

Vestacp yg baru ga masukin script iptables masbro, jadi harus di input manual...
:p
Suram, lupa mulu mau posting, jadi mumung lagi inget kalo dah install fresh vesta cp jangan lupa bikin script ini d konsol nya ( ane pake ubuntu server ).



  1. Ke direktori  /usr/local/vesta/data/firewall :
     $>cd  /usr/local/vesta/data/firewall
  2. Bikin   file  ini :
    $ sudo nano ports.conf isinya beginian :
    PROTOCOL='TCP' PORT='20'
    PROTOCOL='TCP' PORT='21'
    PROTOCOL='TCP' PORT='22'
    PROTOCOL='TCP' PORT='25'
    PROTOCOL='UDP' PORT='53'
    PROTOCOL='TCP' PORT='80'
    PROTOCOL='TCP' PORT='443'
    PROTOCOL='TCP' PORT='110'
    PROTOCOL='UDP' PORT='123'
    PROTOCOL='TCP' PORT='143'
    PROTOCOL='TCP' PORT='3306'
    PROTOCOL='TCP' PORT='5432'
    PROTOCOL='TCP' PORT='8080'
    PROTOCOL='TCP' PORT='8443'
    PROTOCOL='TCP' PORT='8083'

    $ sudo nano rules.conf isinya beginian :
    RULE='1' ACTION='ACCEPT' PROTOCOL='ICMP' PORT='0' IP='0.0.0.0/0' COMMENT='PING' SUSPENDED='no' TIME='17:13:48' DATE='2014-09-16'
    RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='8083' IP='0.0.0.0/0' COMMENT='VESTA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
    RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='0.0.0.0/0' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
    RULE='4' ACTION='ACCEPT' PROTOCOL='TCP' PORT='143,993' IP='0.0.0.0/0' COMMENT='IMAP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
    RULE='5' ACTION='ACCEPT' PROTOCOL='TCP' PORT='110,995' IP='0.0.0.0/0' COMMENT='POP3' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
    RULE='6' ACTION='ACCEPT' PROTOCOL='TCP' PORT='25,465,587,2525' IP='0.0.0.0/0' COMMENT='SMTP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
    RULE='7' ACTION='ACCEPT' PROTOCOL='UDP' PORT='53' IP='0.0.0.0/0' COMMENT='DNS' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
    RULE='8' ACTION='ACCEPT' PROTOCOL='TCP' PORT='21' IP='0.0.0.0/0' COMMENT='FTP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
    RULE='9' ACTION='ACCEPT' PROTOCOL='TCP' PORT='80,443' IP='0.0.0.0/0' COMMENT='WEB' SUSPENDED='no' TIME='17:04:27' DATE='2014-09-24'
    RULE='10' ACTION='ACCEPT' PROTOCOL='TCP' PORT='22' IP='0.0.0.0/0' COMMENT='SSH' SUSPENDED='no' TIME='22:06:35' DATE='2014-10-23'
  3. Restart firewall Service dari VestaCP Panel

Tidak ada komentar:

Posting Komentar