POP3 usin tcp_wrappers or iptables
hi fans...
i hv one doubt in POP3 access...
scenario: server IP---> 192.168.0.6
client IP------>192.168.0.7
now the ques is Configure POP such dat only USER1 from some doamin say "linux.com [192.168.0.Y]" should recieve the mail through it & block from "hacker.org [192.168.1.X]"
so i can go to this ques in 2ways either by TCP_WRAPPERS or IPTABLES
using iptables i say
#iptables -A INPUT -s 192.168.1.X -d 192.168.0.6 -p tcp --dport 110 -j REJECT
i save the rules...
#service iptables restart
#chkconfig iptables on
well 'll it block "hacker.org"
by tcp_wrappers method i edit d file /etc/hosts.deny
& type
pop3: 192.168.1.0/255.255.255.0
will this work ???
actually tcp_wrappers does not calls "libwrap.so" when v use POP3 protocols i think !!!!
what say...
please help !!
|