Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2004 08:42:55 +0100
From:      Michael Hollmann <michael.hollmann@jawa.at>
To:        Stanley Chan <stan@cyberec.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NAT and DHCP
Message-ID:  <400795FF.2070304@jawa.at>
References:  <400752A8.566F67AE@cyberec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
hello,

add following to:
================


/etc/rc.conf
------------
firewall_type="open"
firewall_enable="YES"
firewall_quiet="NO"
natd_enable="YES"
natd_flags="-f /etc/natd.conf"
natd_interface="rl0"
gateway_enable="YES"


/etc/natd.conf
--------------
use_sockets yes



Kernelkonfiguration
/usr/src/sys/i386/conf/
cp GENERIC FIREWALL
vi FIREWALL

// add this to your kernel
options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=10
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPFIREWALL_FORWARD
options         IPDIVERT
options         DUMMYNET
options         PMAP_SHPGPERPROC=300


config FIREWALL
cd ../../compile/FIREWALL
make depend
make
make install
// oder make depend && make && make install


i hope that´s what you are looking for.

greetings michael




Stanley Chan schrieb:
> Dear friends,
> 
> I am running my servers with FreeBSD 4.8 Release and I am planning to
> use the NAT and DHCP functions to let my local area network machines to
> access the internet. Could you tell me where can I find these
> information's and documents as I could you quite understand the
> materials on the handbook. The examples on the handbook are not
> adequate.
> 
> Thanks very much for your assistance.
> 
> Yours sincerely,
> 
> Stanley
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 


-- 

Mit freundlichen Grüßen

Michael Hollmann

JAWA Management Software GmbH
A-8041 Graz, Liebenauer Hauptstraße 200
Tel:  ++43 (0)316 403274-13
Fax:  ++43 (0)316 403274-10
GSM:  ++43 (0)676 4101431
E-Mail: michael.hollmann@jawa.at
Web:  http://www.jawa.at/
News: http://www.jawa.at/news.php/ "Web-Framework für B2B-Applikationen"



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