[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: limiting port 25 to an IP



On Sat, Oct 23, 2004 at 10:54:22PM +0200, Marcin Sochacki wrote:
> On Fri, Oct 22, 2004 at 04:22:33PM -0800, W.D.McKinney wrote:
> > Do you know of any examples ?
> 
> Actually, it's the list for ISPs, so people here are supposed to have
> a bit of basic knowledge about networking. But anyways, it could be
> something like:
> 
> iptables -A INPUT -p tcp -s IP.YOU.WANT.TO.BLOCK --dport 25 -j REJECT
> 
> Wanted

Not an elegant solution that, both postfix and exim can be told what IPs
to bind to, only bind the daemons to the IPs they should be listening
to, it's much nicer. In fact, do that with all daemons that you don't
want to be listening on all ports.

Thanks,
-- 
Brett Parker
web:   http://www.sommitrealweird.co.uk/
email: iDunno@sommitrealweird.co.uk



Reply to: