zoukankan      html  css  js  c++  java
  • linux防火墙

    Deployment Recommendations

     

    Allow port access for Firewalls

    By default MinIO uses the port 9000 to listen for incoming connections. If your platform blocks the port by default, you may need to enable access to the port.

     

    ufw

    For hosts with ufw enabled (Debian based distros), you can use ufw command to allow traffic to specific ports. Use below command to allow access to port 9000

    ufw allow 9000

    Below command enables all incoming traffic to ports ranging from 9000 to 9010.

    ufw allow 9000:9010/tcp

     

    firewall-cmd

    For hosts with firewall-cmd enabled (CentOS), you can use firewall-cmd command to allow traffic to specific ports. Use below commands to allow access to port 9000

    firewall-cmd --get-active-zones

    This command gets the active zone(s). Now, apply port rules to the relevant zones returned above. For example if the zone is public, use

    firewall-cmd --zone=public --add-port=9000/tcp --permanent

    Note that permanent makes sure the rules are persistent across firewall start, restart or reload. Finally reload the firewall for changes to take effect.

    firewall-cmd --reload

     

    iptables

    For hosts with iptables enabled (RHEL, CentOS, etc), you can use iptables command to enable all traffic coming to specific ports. Use below command to allow access to port 9000

    iptables -A INPUT -p tcp --dport 9000 -j ACCEPT
    service iptables restart

    Below command enables all incoming traffic to ports ranging from 9000 to 9010.

    iptables -A INPUT -p tcp --dport 9000:9010 -j ACCEPT
    service iptables restart
  • 相关阅读:
    perf + 火焰图用法 小结
    忽略多年的地理基本知识
    windows7安装docker异常:looks like something went wrong in step ‘looking for vboxmanage.exe’
    我的选择
    CSS3 width的min/max-content、fill-available以及fit-content
    Redis入门与命令汇总
    javascript中的原型详解
    Promise实现及原理
    nodejs中的垃圾回收
    javascript中的闭包
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/15767208.html
Copyright © 2011-2022 走看看