mirror of
				https://github.com/minio/minio.git
				synced 2025-10-30 00:05:02 -04:00 
			
		
		
		
	Add firewall-cmd entry for firewall configuration (#5755)
This commit is contained in:
		
							parent
							
								
									e76fe435c4
								
							
						
					
					
						commit
						d67e423a32
					
				
							
								
								
									
										22
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								README.md
									
									
									
									
									
								
							| @ -101,7 +101,7 @@ iptables -A INPUT -p tcp --dport 9000:9010 -j ACCEPT | ||||
| service iptables restart | ||||
| ``` | ||||
| 
 | ||||
| ### ufw in Debian | ||||
| ### 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 | ||||
| 
 | ||||
| @ -115,6 +115,26 @@ 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 | ||||
| 
 | ||||
| ```sh | ||||
| 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 | ||||
| 
 | ||||
| ```sh | ||||
| 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. | ||||
| 
 | ||||
| ```sh | ||||
| firewall-cmd --reload | ||||
| ``` | ||||
| 
 | ||||
| ## 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. | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user