Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 1998 20:39:39 -0400 (EDT)
From:      Adam Rothschild <asr@millburn.net>
To:        freebsd-net@FreeBSD.ORG, freebsd-security@FreeBSD.ORG
Subject:   NAT woes!
Message-ID:  <Pine.BSF.3.95q.980506203916.29027A-100000@thuule.pair.com>

next in thread | raw e-mail | index | archive | help
Hey everyone...

I'm trying to setup the following, and I'm failing miserably.

Internal network -[ed0]- FreeBSD (2.2.5) box -[ex0]- public IP
192.168.0.0/24                                       1.2.3.4

- FreeBSD box blocks all incoming connections, except on TCP port 25

Here's what I have.  Note that the NAT for internal machines accessing the
'net works nicely.  However, I can't figure out how to allow tcp port 25
into the box on it's public interface [ex0]. 

o FreeBSD box is assigned 192.168.0.1 on the ed0 interface, and 1.2.3.4 on
the ex0 interface.
o The following script is executed to initiate things:

natd -log -redirect_address 192.168.0.0 0.0.0.0 -n ex0 -u
ipfw -f flush
ipfw add divert natd all from any to any 
ipfw add pass all from any to any

Any help would be GREATLY appreciated!!!

Thanks,
Adam


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe security" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980506203916.29027A-100000>