I have set DROP as default rule for all in my centos 7 system and allow only following rules.
#Allow web server ports
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp --sport 80 -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp --sport 443 -j ACCEPT
When I run yum update
. Error occured. When I disabled iptables yum update
work successfully. Is yum use some port other than 80. What rule I should add to allow yum update
to run successfully.