Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2004 11:56:07 +0930
From:      Tim Aslat <tim@spyderweb.com.au>
To:        freebsd security list <freebsd-security@freebsd.org>
Subject:   quick FW question
Message-ID:  <20040512115607.23ac80ea@bofh.spyderweb.com.au>

next in thread | raw e-mail | index | archive | help
I hope this isn't too off topic, but I'd like a quick solution to a
problem.

I have a small network behind a NAT firewall (FreeBSD of course) and I'd
like to block/redirect all traffic from the internal network to the
local mail server (same box as firewall) in order to prevent direct smtp
requests to the outside world (mainly virus/trokan programs).

I think I have it right in this rule, but I would prefer to get a
second, or even a third opinion.

ipfw add fwd 127.0.0.1,25 tcp from any to me dst-port 25

Cheers

Tim

-- 
Tim Aslat <tim@spyderweb.com.au>
Spyderweb Consulting
http://www.spyderweb.com.au
Phone: +61 0401088479



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040512115607.23ac80ea>