From owner-freebsd-questions Sun May 28 9:12:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.latnet.lv (mail.latnet.lv [159.148.108.208]) by hub.freebsd.org (Postfix) with ESMTP id 237F437B5AE for ; Sun, 28 May 2000 09:12:45 -0700 (PDT) (envelope-from shahoff@latnet.lv) Received: from whatsup (whatsup.latnet.lv [159.148.108.150]) by mail.latnet.lv (8.9.2/8.9.2) with SMTP id SAA21708 for ; Sun, 28 May 2000 18:12:44 +0200 (GMT) From: "Andrew Shahoff" To: Subject: Ipfw + natd Date: Sun, 28 May 2000 18:12:35 +0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 1) What I have: /real lan/ed1 with 2 real IP`s from one subnet/freebsd4.0/ed0 with 2 fake ip`s from 2 diference subnets 2) What I need : I need divert first fake net to first real IP , and divert second fake subnet to second real ip 3) What I do : start 2 natd`s ( with diferent ports ) /sbin/natd -p 8668 -u -a ${firstreal} /sbin/natd -p 8669 -u -a ${secondreal} write in rc.firewall rules like that ${fwcmd} add 10 divert 8668 all from 10.0.0.0/24 to any via ${firstreal} ${fwcmd} add 20 divert 8669 all from 10.0.1.0/24 to any via ${secondreal} ${fwcmd} add pass all from any to any And all , nothing work ( if I write ${fwcmd} add 10 divert 8668 all from any to any via ${firstreal} all work but only thrue ${firstreal} ) Where is error ? Sorry for bad eglish :) With best Regards..... =========================== Andrew Shahoff shahoff@ardi.lv =========================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message