Re: Stop Mail

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: Stop Mail
On Tue, 2 Mar 2004, Carl Parrish wrote:

> This is the voodoo I'm trying now. Can anyone let me know if I'm on the
> right track?
>
> iptables -A FORWARD -i $IPADDRESS -p tcp --sport 25 --dport 25 -j DROP
>
> iptables -A OUTPUT -o $IPADDRESS -p tcp --sport 25 --dport 25 -j DROP


Normally, you'd use -i and -o with interfaces (and use -s or -d with IP
addresses).

The source port would not (usually) be port 25 so get rid of "--sport 25".

OUTPUT is for packets coming from the box. FORWARD is for packets routed
from outside through the box.

Jeremy C. Reed
http://www.reedmedia.net/

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss