[CentOS] how to only allow tcp on dport 443 on the OUTPUT chain?

erikmccaskey64 erikmccaskey64 at zoho.com
Wed Mar 9 07:35:36 UTC 2011


it's a normal desktop machines iptables firewall: 


If i want to block udp on dport 80 on the output chain, then is this enough? i want to only allow tcp on it!
iptables -P OUTPUT DROP
iptables -A OUTPUT -o $PUBIF --dport 80 -j ACCEPT


or i need this rule?
iptables -P OUTPUT DROP
iptables -A OUTPUT -o $PUBIF -p tcp --dport 80 -j ACCEPT


the second one is the good one?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110308/e354961f/attachment.html>


More information about the CentOS mailing list