Results 1 to 3 of 3
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 ...
- 08-08-2004 #1Just Joined!
- Join Date
- Sep 2003
- Posts
- 6
iptables help needed...
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
- 08-08-2004 #2Linux Engineer
- Join Date
- May 2003
- Location
- Greece / Athens
- Posts
- 1,169
use man iptables for more information on this..
Linux For Ever!
- 08-15-2004 #3Linux Newbie
- Join Date
- Jan 2004
- Location
- Belgrade, S&M
- Posts
- 177
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...


Reply With Quote
