block web request with iptables

Posted by scottk on January 31, 2008 in System |

add a rule to block port 80 web requests:
/sbin/iptables -A INPUT -p tcp -s xxIPADDRESSxx --dport 80 -j DROP

to remove that rule:
/sbin/iptables -D INPUT -p tcp -s xxIPADDRESSxx --dport 80 -j DROP

Copyright © 2006-2024 SimpIT.com All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.