Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2001 00:03:52 -0600
From:      Jonathan Wright <wrightcs@home.com>
To:        freebsd-questions@freebsd.org
Subject:   ipfw & natd / simple firewall - trouble
Message-ID:  <4.3.2.7.2.20010119231834.01b52cd0@wheresmymailserver.com>

next in thread | raw e-mail | index | archive | help


I need to block all ports except smtp from the outside world to my machine 
that runs natd.

My server's setup is two network cards, one to Internet(dc0) and one to 
LAN(dc1).  I made the necessary adjustments to get natd working.  It does, 
and users on LAN can access the internet w/ ipfw add all ip any to any.

This is how I really want ipfw configured instead:
	Allow my users access to any resource/port on Internet & any resource/port 
on my server running natd/ipfw.
	Disallow every Internet user access to every port on my server running 
natd/ipfw except port smtp.

I'm not sure which which commands to give ipfw.  I tried editing the ones 
in rc.firewall (simple and client) but those rules seemed to stop all 
access to the Internet.

It should be really simple.  I'm probably missing some easy concept that I 
should have caught by reading the manpages, freebsd-questions, etc. 
concerning this topic.




Thank You Very Much in Advance,



Jonathan



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




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