
Probably easier to do it with IPTables: iptables -A INPUT -s 10.10.10.0/24 -p tcp --destination-port 80 -j ACCEPT iptables -A INPUT -p tcp --destination-port 80 -j DROP -----Original Message----- From: wlug-bounces(a)list.waikato.ac.nz [mailto:wlug-bounces(a)list.waikato.ac.nz] On Behalf Of Narender Sent: Tuesday, 6 October 2009 4:17 PM To: Waikato Linux Users Group Subject: [wlug] IP range + port blocking Hi I need some help in IP/Port blocking as below:- All machines with IP range 10.10.10.x should have access to Port 80 on (Machine 10.10.10.xx). and rest all should be blocked. Could someone suggest how to use hosts.deny/hosts.all for port blocking Many thanks in advance. Best Regards --N _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug