Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2000 07:22:55 -0800 (PST)
From:      Bhishan Hemrajani <bhishan@cytosine.dhs.org>
To:        Jesus <jesus@innova.rcanaria.es>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Help NAT configuration
Message-ID:  <200003241522.HAA15069@cytosine.dhs.org>
In-Reply-To: <38DB6A97.55C0056E@innova.rcanaria.es> from Jesus at "Mar 24, 2000 01:16:07 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
You basically need to do exactly what it says at the bottom of
the natd man page.

Since you said you have read this, heres some things to check for:

Make sure you have this line in rc.firewall:
$fwcmd add 10 divert natd all from any to any via fxp0

And this in rc.conf:
natd_enable="YES"
natd_interface="fxp0"
gateway_enable="YES"
firewall_enable=YES

Also, make sure that your kernel is built with the options:
options IPFIREWALL
options IPDIVERT

Then, you can restart, or if you don't want to, do the following:

# cd /etc
# sh rc.firewall
(The line above will reset all current connections to be careful!)
# natd -n fxp0

Hope this helps.

--bhishan


> Hello:
> 
> I try configure my network, it consist in a machine with FreeBSD
> containing diferent internet  servers (apache, database , realaudi,ftp
> ...) and other LAN server (Samba).
> 
> The server have two NIC:
> fxp0 for public addresses ip=195.x.x.38 Lan=195.x.x.32
> mask=255.255.255.224
> 
> fxp1 private lan ip=192.168.1.1 Lan=192.168.1.0 mask=255.255.255.0
> 
> I need how to configure my network to my host in local lan see the
> internet and samba server.
> 
> I read the natd and ipfw documentation and try configurate the natd but
> it not well.
> 
> Thanks.
> 
> Jesus Fernandez
> VENTO IP
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



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?200003241522.HAA15069>