From owner-freebsd-questions Tue Jul 10 22:41: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx7.port.ru (mx7.port.ru [194.67.23.44]) by hub.freebsd.org (Postfix) with ESMTP id B8DAD37B405 for ; Tue, 10 Jul 2001 22:41:06 -0700 (PDT) (envelope-from imush@mail.ru) Received: from p66-201.acedsl.com ([66.114.66.201] helo=omsk.mushinsky.net) by mx7.port.ru with smtp (Exim 3.14 #1) id 15KCkD-0000aU-00 for freebsd-questions@freebsd.org; Wed, 11 Jul 2001 09:41:05 +0400 Content-Type: text/plain; charset="koi8-r" From: Isaac Mushinsky To: "freebsd-questions" Subject: routing Date: Wed, 11 Jul 2001 01:40:38 -0400 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01071101403801.00337@omsk.mushinsky.net> Content-Transfer-Encoding: quoted-printable 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 Sorry for silly questions but I never had to do routing before. I have 2 static IP addresses, x.x.x.101 and x.x.x.102 from my DSL provide= r, a=20 DSL modem and 2 boxes, one with 2 NICs, (no router). Interface rl0 goes t= o=20 the modem and interface dc0 to the other box. So far we used ipfw with na= td=20 to masquerade under 1 IP. I now need to give the other public IP to the=20 second (Windows) box. Can I do it? How? I need to tell my machine that dc= 0 is=20 the way to x.x.x.102 and nowhere else. Current setup with natd in rc.conf is=20 ifconfig_rl0=3D"inet x.x.x.101 netmask 255.255.255.0" ifconfig_dc0=3D"inet 192.168.2.100 netmask 255.255.255.0" firewall_enable=3D"YES" natd_program=3D"/sbin/natd" natd_interface=3D"rl0" natd_enable=3D"YES" gateway_enable=3D"YES"=20 defaultrouter=3D"x.x.x.1" << this is the ISP's gateway and etc> cat rc.firewall /sbin/ipfw -f flush /sbin/ipfw add divert 8668 all from any to any via rl0 /sbin/ipfw add allow all from any to any Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message