the below command will open up the 9100 port. sudo iptables -I INPUT -p tcp --dport 9100 -jACCEPT This wont work with AWS