erikmccaskey64
2011-Mar-09 07:35 UTC
[CentOS] how to only allow tcp on dport 443 on the OUTPUT chain?
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-0002.html>
Apparently Analagous Threads
- IPv6, HE tunnel and ip6tables problems
- [Bug 1202] New: Cannot match on both dport and sport in one nftables rule
- [Bug 612] New: conntrack returns src, dst, dport and sport all zeroed
- [Bug 1757] New: Alpine 3.19: iptables: Bad rule (does a matching rule exist in that chain?).
- match ip dst works, match ip dport doens''t.