All of lore.kernel.org
 help / color / mirror / Atom feed
* How to block sending mail from local network.
@ 2004-02-07 10:51 David Harel
  2004-02-07 20:15 ` Sven Schuster
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: David Harel @ 2004-02-07 10:51 UTC (permalink / raw)
  To: netfilter

Hi all,

I have a small local network and a Linux machine as a gateway to the 
Internet. On the Linux machine I started iptables using the script from 
Oscar Andreasson's tutorial at: 
http://iptables-tutorial.frozentux.net/iptables-tutorial.html
Using his script: rc.DHCP.firewall.
This script implements masquerading service to the internal network and 
provides firewall security.

The problem started when I was suspected of having a MyDoom virus or 
some other worm that sends unsolicited messages. Most likely this can 
happened to any of the machines on the internal network.

In Oscar's script the local network is treated liberally allowing them 
to everything assuming that illegal activity will be blocked elsewhere 
by the firewall. This is done using the command:
$IPTABLES -A INPUT -p ALL -i $LAN_IFACE -s $LAN_IP_RANGE -j ACCEPT
where LAN_IFACE is eth0 and LAN_IP_RANGE is 10.0.0/24 (of course 
IPTABLES is /usr/sbin/iptables)

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.

What can I do to block those messages sending attempts?

-- 
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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-08 22:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-02-08 15:31 ` Tarek W.
2004-02-08 21:42 ` Alex Satrapa
2004-02-08 22:40 ` Mark Weaver

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.