Hello,
Can anyone help me iptables solution for the follwing specification.
I want to allow all packets coming to port 80, but reject traffic coming out through port 80.
Thanks
Printable View
Hello,
Can anyone help me iptables solution for the follwing specification.
I want to allow all packets coming to port 80, but reject traffic coming out through port 80.
Thanks
use man iptables for more information on this..
This is what you asked for:
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 80 -j DENY
You can change DENY to DROP but I can't see any use of it as no connection will work with only receivng packets...