From owner-freebsd-questions Fri Feb 15 13:23:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.dslextreme.com (ns1-old.dslextreme.com [63.203.107.15]) by hub.freebsd.org (Postfix) with ESMTP id B061337B404 for ; Fri, 15 Feb 2002 13:23:13 -0800 (PST) Received: from athena (adsl-66.51.201.26.dslextreme.com [66.51.201.26]) by ns1.dslextreme.com (8.12.1/8.12.1) with SMTP id g1F1GF80018644; Thu, 14 Feb 2002 17:16:15 -0800 Message-ID: <000a01c1b5bf$b94b5ef0$f2dca8c0@athena> From: "Tim Fulmer" To: Cc: Subject: natd and redirect_port Date: Thu, 14 Feb 2002 17:25:59 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C1B57C.AAFBDED0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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
 
 
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
1= 92.168.B.1
   =20 +--->192.168.B.2
 
I am browsing=20 from 192.168.B.2.
 
compiled a kernel with added = options=20 :
 
options        =20 CPU_FASTER_5X86_FPU
options       &= nbsp;=20 NO_F00F_HACK
options        =20 TCP_DROP_SYNFIN
options        = ;=20 IPFIREWALL
options        =20 IPFIREWALL_FORWARD
options       &n= bsp;=20 IPFIREWALL_VERBOSE
options       &n= bsp;=20 IPFIREWALL_VERBOSE_LIMIT=3D100
options     &n= bsp;  =20 IPDIVERT
 

relevant rc.conf :
 
gateway_enable=3D"YES"
ifconfig_rl0=3D"inet 66.Q.X.Y  netmask=20 255.255.255.0"
ifconfig_rl0_alias0=3D"inet 66.Q.X.Z netmask=20 255.255.255.255"
firewall_enable=3D"YES"
firewall_type=3D"OPEN"
= natd_enable=3D"YES"
natd_interface=3D"rl0"
natd_flags=3D"-f=20 /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=20 browser at 66.Q.X.Y, though the connection sharing works fine from both = internal=20 nets.  At some point in the future redirect_address may also = be a good=20 idea, but right now that is non-functional as well.
 
Any suggestions would be greatly appreciated.
 
Cheers,
 
 - tim
------=_NextPart_000_0007_01C1B57C.AAFBDED0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message