From owner-freebsd-questions Mon Feb 22 23:55:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from camel8.mindspring.com (camel8.mindspring.com [207.69.200.58]) by hub.freebsd.org (Postfix) with ESMTP id BC4D711E40 for ; Mon, 22 Feb 1999 23:55:23 -0800 (PST) (envelope-from vnath@mindspring.com) Received: from ms327980.mindspring.com (user-38lc54o.dialup.mindspring.com [209.86.20.152]) by camel8.mindspring.com (8.8.5/8.8.5) with SMTP id CAA25582 for ; Tue, 23 Feb 1999 02:55:22 -0500 (EST) Message-Id: <3.0.1.32.19990223025702.0069b240@pop.vamsi.net> X-Sender: quasar@pop.vamsi.net X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Tue, 23 Feb 1999 02:57:02 -0500 To: freebsd-questions@freebsd.org From: Vamsi Nath Subject: Redirecting http requests Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This isn't specifically a FreeBSD-related question, but I thought somebody on this list may be able to help. I'm currently running an Apache webserver on my FreeBSD box on my home LAN. The FreeBSD box is behind a gateway/firewall machine running Red Hat 5.0 with the 2.0.36 kernel. What I'm trying to do is redirect external http requests through my firewall to my webserver on my FreeBSD box. I'm trying to use ipfwadm on my linux box and the command I am using is: ipfwadm -F -a accept -b -P tcp -S 0.0.0.0/0 1024:65535 -D 192.168.1.4 80 When I try to access my webserver through the domain I have mapped to my gateway machine(borg.vamsi.net), I get a message saying 'A connection with the server cannot be established'. I know Apache is running on my FreeBSD box, because I can access it from my windows machine on my internal LAN. Is the ipfwadm command I'm using correct? I'm testing this out from my windows machine which is behind my firewall. Could this be causing the problem? I've tried flushing all the ipfwadm commands and then readding them. When I do 'ipfwadm -l -F', the output I get is: type prot source destination ports **** ****** ****** ************ ******* acc tcp anywhere 192.168.1.4 1024:65535 -> http acc/m all 192.168.1.0/24 anywhere n/a I'd appreciate any help you can give me. I've been banging my head over this all night :) --Vamsi quasar@vamsi.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message