From owner-freebsd-questions Sat Jun 29 20:16:49 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 6F2DD37B400 for ; Sat, 29 Jun 2002 20:16:45 -0700 (PDT) Received: from mail.k12us.com (mail.k12us.com [65.112.222.15]) by mx1.FreeBSD.org (Postfix) with SMTP id A9DA343E0A for ; Sat, 29 Jun 2002 20:16:44 -0700 (PDT) (envelope-from cweimann@k12hq.com) Received: (qmail 67479 invoked by uid 1001); 30 Jun 2002 03:16:38 -0000 Date: Sat, 29 Jun 2002 23:16:38 -0400 From: Christopher Weimann To: freebsd-questions@FreeBSD.ORG Subject: divert/natd/redirect_address/localnet don't get along. Message-ID: <20020629231638.A51826@mail.k12us.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) 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 I have a webserver setup on a private address and am fowarding port a public address to it. I have two addresses on dc0 ( public nic ) one for the firewall itself and the other is forwarded with natd's redirect_address to the inside server. This works fine for users outside my network. Inside my network however access to the webserver ( at its public ip ) results in a connection refused. This seems to be a problem with my diver rule. I have managed to get this to work by adding a second rule like /sbin/ipfw add 00050 divert 8668 ip from any to any via dc0 /sbin/ipfw add 00051 divert 8668 ip from any to any via dc1 I don't like this but it works. Now I change my browser to go through squid ( running on the firewall ) and it doesn't work anymore... I guess the packets are no longer coming in via either of the dc interfaces so I drop the via bit altogether and am back to a single rule. /sbin/ipfw add 00050 divert 8668 ip from any to any I like this even less AND it doesn't fix the problem... Do I have other choices? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message