From: "Rob Sterenborg" <rob@sterenborg.info>
To: netfilter@lists.netfilter.org
Subject: RE: How to block sending mail from local network.
Date: Sat, 7 Feb 2004 21:17:32 +0100 [thread overview]
Message-ID: <20040207201732.93A41382@sterenborg.info> (raw)
In-Reply-To: <4024C335.7080705@ergolight-sw.com>
> I want to block smtp operations from the local network so the
> viruses/worms will be blocked.
>
> I tried a command:
> $IPTABLES -A OUTPUT -p TCP -i $LAN_IFACE -s $LAN_IP_RANGE
> --dport smtp
> -j DROP
> but it did nothing.
No, the INPUT and OUTPUT chains are for filtering the local machine : de
firewall itself.
If you want to block clients, you should use the FORWARD chain.
You could use a rule like this one :
$IPTABLES -A FORWARD -i $LAN_IFACE -s $LAN_IP_RANGE -p tcp --dport 25 -j
DROP
or
$IPTABLES -A FORWARD -i $LAN_IFACE -s $LAN_IP_RANGE -p tcp --dport 25 -j
REJECT --reject-with tcp-reset
I suppose you're running your own mailserver ? Otherwise none of your
clients are able to send email.
Gr,
Rob
next prev parent reply other threads:[~2004-02-07 20:17 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
2004-02-07 20:17 ` Rob Sterenborg [this message]
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=20040207201732.93A41382@sterenborg.info \
--to=rob@sterenborg.info \
--cc=netfilter@lists.netfilter.org \
/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