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
  • 相关阅读:
    C# List<T>中Select List Distinct()去重复
    Spring.Net 简单入门学习
    [ASP.NET MVC]:
    打车题
    Vue------发布订阅模式实现
    Vue----数据响应原理
    小程序自定义导航栏_navigationStyle
    CleanWebpackPlugin最新版本使用问题
    js-事件函数调用简化
    用XHR简单封装一个axios
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/15767208.html
Copyright © 2011-2022 走看看