Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2002 17:25:59 -0800
From:      "Tim Fulmer" <tfulmer@dslextreme.com>
To:        <freebsd-questions@FreeBSD.ORG>
Cc:        <tfulmer@dslextreme.com>
Subject:   natd and redirect_port
Message-ID:  <000a01c1b5bf$b94b5ef0$f2dca8c0@athena>

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

------=_NextPart_000_0007_01C1B57C.AAFBDED0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



Hi All,

Having a bit of trouble with natd.

Here's the setup :

Internet
|
66.Q.X.Y
192.168.A.1---->192.168.A.2
192.168.B.1
    +--->192.168.B.2

I am browsing from 192.168.B.2.

compiled a kernel with added options :

options         CPU_FASTER_5X86_FPU
options         NO_F00F_HACK
options         TCP_DROP_SYNFIN
options         IPFIREWALL
options         IPFIREWALL_FORWARD
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=3D100
options         IPDIVERT


relevant rc.conf :

gateway_enable=3D"YES"
ifconfig_rl0=3D"inet 66.Q.X.Y  netmask 255.255.255.0"
ifconfig_rl0_alias0=3D"inet 66.Q.X.Z netmask 255.255.255.255"
firewall_enable=3D"YES"
firewall_type=3D"OPEN"
natd_enable=3D"YES"
natd_interface=3D"rl0"
natd_flags=3D"-f /etc/natd.conf"


and natd.conf :

redirect_port tcp 192.168.A.2:80 80


and am still getting the local apache installation when I point a =
browser at 66.Q.X.Y, though the connection sharing works fine from both =
internal nets.  At some point in the future redirect_address may also be =
a good idea, but right now that is non-functional as well.

Any suggestions would be greatly appreciated.

Cheers,

 - tim


------=_NextPart_000_0007_01C1B57C.AAFBDED0
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Having a bit of trouble with =
natd.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here's the setup :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>Internet<BR>|<BR>66.Q.X.Y<BR>192.168.A.1----&gt;192.168.A.2<BR>1=
92.168.B.1<BR>&nbsp;&nbsp;&nbsp;=20
+---&gt;192.168.B.2</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am&nbsp;browsing=20
from&nbsp;192.168.B.2.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>compiled a kernel with&nbsp;added =
options=20
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
CPU_FASTER_5X86_FPU<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
NO_F00F_HACK<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
TCP_DROP_SYNFIN<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
IPFIREWALL<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IPFIREWALL_FORWARD<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
IPFIREWALL_VERBOSE<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
IPFIREWALL_VERBOSE_LIMIT=3D100<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
IPDIVERT</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial =
size=3D2>
<DIV><BR>relevant rc.conf :</DIV>
<DIV>&nbsp;</DIV>
<DIV>gateway_enable=3D"YES"</DIV>
<DIV>ifconfig_rl0=3D"inet 66.Q.X.Y&nbsp; netmask=20
255.255.255.0"<BR>ifconfig_rl0_alias0=3D"inet 66.Q.X.Z netmask=20
255.255.255.255"<BR>firewall_enable=3D"YES"<BR>firewall_type=3D"OPEN"<BR>=
natd_enable=3D"YES"<BR>natd_interface=3D"rl0"<BR>natd_flags=3D"-f=20
/etc/natd.conf"</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>and natd.conf :</DIV>
<DIV>&nbsp;</DIV>
<DIV>redirect_port tcp 192.168.A.2:80 80</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>and am still getting the local apache installation when I point =
a=20
browser at 66.Q.X.Y, though the connection sharing works fine from both =
internal=20
nets.&nbsp;&nbsp;At some point in the future redirect_address may also =
be a good=20
idea, but right now that is non-functional as well.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any suggestions would be greatly appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cheers,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;- tim<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C1B57C.AAFBDED0--


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?000a01c1b5bf$b94b5ef0$f2dca8c0>