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
  • 相关阅读:
    SAP UI5应用和Hybris Commerce的国际化(internationalization)支持
    PHP获取目录下面所有文件和文件夹
    php利用smtp类轻松的发送电子邮件
    Redis和Memcached的一些区别
    redis命令大全参考手册
    redis类与用法
    公共类属性使用
    php 非对称加密解密类
    RSA密钥生成与使用
    Centos下安装Lamp和vsftpd、redis
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/15767208.html
Copyright © 2011-2022 走看看