From 850caaa1be7279073778a13c963a819e18d4c6c5 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Sat, 24 Mar 2018 00:00:47 +0530 Subject: [PATCH] Add iptables/ufw command example to open relevant ports for Minio (#5604) fixes #5022 --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index a7af28785..a65dcd0f2 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,41 @@ Source installation is only intended for developers and advanced users. If you d go get -u github.com/minio/minio ``` +## 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. + +### 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 + +```sh +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. + +```sh +iptables -A INPUT -p tcp --dport 9000:9010 -j ACCEPT +service iptables restart +``` + +### ufw in Debian + +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 + +```sh +ufw allow 9000 +``` + +Below command enables all incoming traffic to ports ranging from 9000 to 9010. + +```sh +ufw allow 9000:9010/tcp +``` + ## Test using Minio Browser Minio Server comes with an embedded web based object browser. Point your web browser to http://127.0.0.1:9000 ensure your server has started successfully.