From owner-freebsd-questions Mon Dec 30 20:30:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FF7C37B401 for ; Mon, 30 Dec 2002 20:30:30 -0800 (PST) Received: from uqam.ca (anis.telecom.uqam.ca [132.208.250.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EF6D43E4A for ; Mon, 30 Dec 2002 20:30:29 -0800 (PST) (envelope-from bg591591@er.uqam.ca) Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6]) by sortant.uqam.ca (8.12.2/8.12.1) with SMTP id gBV4T1DT003750 for ; Mon, 30 Dec 2002 23:29:01 -0500 (EST) Received: from antivirus.uqam.ca ([127.0.0.1]) by anis.telecom.uqam.ca (NAVGW 2.5.1.12) with SMTP id M2002123023290107474 for ; Mon, 30 Dec 2002 23:29:01 -0500 Received: from intrusion (nobel.si.uqam.ca [132.208.219.1]) by intrant.uqam.ca (8.12.2/8.12.1) with SMTP id gBV4Sp8H003730 for ; Mon, 30 Dec 2002 23:28:52 -0500 (EST) Message-ID: <00ea01c2b085$202ec470$011ea8c0@intrusion> From: "Tien Duc Nguyen" To: Subject: tri-homed gateway source routing questions Date: Mon, 30 Dec 2002 23:28:51 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.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 Hello, I know this topic has been answered numerous times, but the responses i've gathered doesn't seem to help me in making my gateway machine route properly. Here's my setup: Internet --------ADSL modem -----------rl0-- freebsd gateway --rl1(192.168.0.1) ----switch1 private 192.168.0.x --rl2 (192.168.1.1)-----switch2 private 192.168.1.x --rl3 (192.168.2.1)------switch3 private 192.168.2.x My ISP has given to block of public IPs, say a.b.c.2 to a.b.c.5 with a netmask of 255.255.255.248 and gateway of a.b.c.1 and d.e.f.3 to d.e.f.20 with a netmask of 255.255.255.224 and gateway of d.e.f.1 on the gateway rl0, i have set up the main ip as a.b.c.2, with the netmask 255.255.255.248 and the gateway a.b.c.1 as the default gateway, moreover i have binded to rl0 as aliases the rest of the ips i have "nated" all the machines in network 192.168.0.x with no problem as per the freebsd docs, but i'm encountering problem in making a machine in 192.168.1.x use a public ip (aliased on rl0), be it a.b.c.x or d.e.f.x i didn't have any problem for the 192.168.0.x network, i used static nat with a redirect_address directive specifically redirect_address 192.168.0.2 a.b.c.5 for example, 192.168.0.2 default gateway being 192.168.0.1 what i want to achieve is this: for traffic coming from 192.168.1.2 and going through rl2, route it through rl0 as d.e.f.10 transparently (inbound and outbound) is this possible with the forward command of ipfw? i have added this to my firewall rule, right after the nat divert rules, but to no avail: add forward d.e.f.1 ip from 192.168.1.2 to any out via rl0 thanks for any help tien duc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message