Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2000 09:56:24 -0700
From:      "Jeremy Warner" <jwarner182@yahoo.com>
To:        <questions@freebsd.org>
Subject:   IPFW and NATD question
Message-ID:  <001401bfbc33$025f0980$1001a8c0@northwesttechnical.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0011_01BFBBF8.55046C60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I trying to setup NATD and IPFW and im not getting very far.
I'm using FreeBSD-4.0.
My gateway server is connected to the internet (fxp0) and it is also =
connected to my network (fxp1)
I am trying to get natd to divert my internal network 192.168.1.0 =
through my gateway so that my internal network can see the internet, but =
for some reason its not working.

I compiled my Kernal with:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPDIVERT

This is what my rc.conf file looks like:

ifconfig_fxp0=3D"inet 206.163.165.1  netmask 255.255.255.224"
ifconfig_fxp1=3D"inet 192.168.1.1  netmask 255.255.255.0"
gateway_enable=3D"YES"
defaultrouter=3D"206.163.165.30"
named_enable=3D"YES"
network_interfaces=3D"lo0 fxp0 fxp1"
hostname=3D"gw.northwesttechnical.com"
natd_enable=3DYES
natd_interface=3D"fxp0"
natd_flags=3D"-f /etc/natd.conf"
firewall_enable=3DYES
firewall_type=3Dopen
firewall_quiet=3DYES

This is my natd.conf file:

interface fxp0
deny_incoming yes
use_sockets yes
same_ports yes


If anyone has any ideas here let me know.

Thanks...


------=_NextPart_000_0011_01BFBBF8.55046C60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I trying to setup NATD and IPFW and im =
not getting=20
very far.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm using FreeBSD-4.0.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>My gateway server is connected to the =
internet=20
(fxp0) and it is also connected to my network (fxp1)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to get natd to divert my =
internal=20
network 192.168.1.0 through my gateway so that my internal network can =
see the=20
internet, but for some reason its not working.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I compiled my Kernal with:</FONT></DIV>
<P><FONT face=3DArial size=3D2>options IPFIREWALL<BR>options=20
IPFIREWALL_VERBOSE<BR>options IPDIVERT</FONT></P>
<DIV><FONT face=3DArial size=3D2>This is what my&nbsp;rc.conf file looks =

like:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ifconfig_fxp0=3D"inet =
206.163.165.1&nbsp; netmask=20
255.255.255.224"<BR>ifconfig_fxp1=3D"inet 192.168.1.1&nbsp; netmask=20
255.255.255.0"<BR>gateway_enable=3D"YES"<BR>defaultrouter=3D"206.163.165.=
30"<BR>named_enable=3D"YES"<BR>network_interfaces=3D"lo0=20
fxp0=20
fxp1"<BR>hostname=3D"gw.northwesttechnical.com"<BR>natd_enable=3DYES<BR>n=
atd_interface=3D"fxp0"<BR>natd_flags=3D"-f=20
/etc/natd.conf"<BR>firewall_enable=3DYES<BR>firewall_type=3Dopen</FONT></=
DIV>
<DIV><FONT face=3DArial size=3D2>firewall_quiet=3DYES</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is my natd.conf file:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>interface fxp0<BR>deny_incoming =
yes</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>use_sockets yes<BR>same_ports =
yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If anyone has any ideas here let me=20
know.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks...</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0011_01BFBBF8.55046C60--


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


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?001401bfbc33$025f0980$1001a8c0>