From: David Harel <hareldvd@ergolight-sw.com>
To: Sven Schuster <schuster.sven@gmx.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: How to block sending mail from local network.
Date: Sun, 08 Feb 2004 11:39:06 +0200 [thread overview]
Message-ID: <402603BA.1060006@ergolight-sw.com> (raw)
In-Reply-To: <20040207201511.GA2097@zion.homelinux.com>
Thanks,
This works great.
Sven Schuster wrote:
>Hi David,
>
>On Sat, Feb 07, 2004 at 12:51:33PM +0200, David Harel told us:
>
>
>>Hi all,
>>
>>
>>I tried a command:
>>$IPTABLES -A OUTPUT -p TCP -i $LAN_IFACE -s $LAN_IP_RANGE --dport smtp
>>-j DROP
>>but it did nothing.
>>
>>
>
>This will only stop traffic generated on your gateway. To stop traffic
>going _through_ the gateway you will need to put this rule in the
>FORWARD rule instead of OUTPUT, so replace OUTPUT with FORWARD, you
>might try something like this:
>
>$IPTABLES -A FORWARD -p tcp --dprt 25 -i $LAN_IFACE -o $EXT_IFACE \
> -j REJECT --reject-with tcp-reset
>
>HTH
>
>Sven
>
>
>
>>What can I do to block those messages sending attempts?
>>
>>--
>>Thanks.
>>
>>David Harel,
>>
>>
>>
>
>
>
--
Thanks.
David Harel,
==================================
Home office +972 4 6921986
Fax: +972 4 6921986
Cellular: +972 54 534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email: hareldvd@ergolight-sw.com
next prev parent reply other threads:[~2004-02-08 9:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-07 10:51 How to block sending mail from local network David Harel
2004-02-07 20:15 ` Sven Schuster
2004-02-08 9:39 ` David Harel [this message]
2004-02-07 20:17 ` Rob Sterenborg
2004-02-08 15:31 ` Tarek W.
2004-02-08 21:42 ` Alex Satrapa
2004-02-08 22:40 ` Mark Weaver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=402603BA.1060006@ergolight-sw.com \
--to=hareldvd@ergolight-sw.com \
--cc=netfilter@lists.netfilter.org \
--cc=schuster.sven@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox