this is the security related issue, you can either use tcp wrapper or iptables for it.
but for better and versatile issue, please follow the netfiler (iptables) http://netfilter.org/ simply use, iptables -t filter -A INPUT -p tcp -s 192.168.0.50 --dport 80 -j accept iptables -t filter -A INPUT -p tcp -s 0/0 --dport 80 -j DROP then service iptables save to confirm iptables -l eg. Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- 192.168.0.50 0.0.0.0/0 tcp dpt:80 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 chkconfig iptables on another method is using the tcp wrapper it is rather simple just two files /etc/hosts.allow and /etc/hosts.deny in hosts.allow httpd:192.168.0.50 in hosts.deny httpd:ALL it is rather simple but confusing recommeded to use iptables than tcp wrapper, regards, daya Madan Puraskar pustakalay On 1/21/07, Bishwo <[EMAIL PROTECTED]> wrote: > > > I m red hat linux 9.0 user. i like to block port no 80 to other IPs > except 192.168.0.50 > What shall i do.I will vay much thankful if suggestion provided > > > > > --~--~---------~--~----~------------~-------~--~----~ FOSS Nepal mailing list [email protected] http://groups.google.com/group/foss-nepal Community website: http://www.fossnepal.org/ -~----------~----~----~----~------~----~------~--~---
