• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Giúp giùm firewall iptables cua CentOS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Giúp giùm firewall iptables cua CentOS

    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT icmp -- anywhere anywhere
    ACCEPT all -- anywhere anywhere
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
    REJECT all -- anywhere anywhere reject-with icmp-host-prohibited


    cho em hoi "reject-with icmp-host-prohibited" có nghĩa là gì , tại sao nó lại có thể chặn những kết nối khác mà trên đó đã có "ACCEPT all -- anywhere anywhere"

    Và em có câu lệnh này : iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT , ở đây -m tcp có nghĩ là gì ạ( -p tcp mới là xét protocol tcp chứ).
    Và -m state dùng như thế nào và bao h cần dùng,vì nếu muốn thiết lập server nghe ở port 80 thì em không cần nó vẫn chạy được.
    Và em chỉ giùm câu lệnh để firewall mở port 21 để tạo ftp server,vì em thiết lập như câu lệnh bên trên ko đươc
Working...
X