Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 1999 02:57:02 -0500
From:      Vamsi Nath <vnath@mindspring.com>
To:        freebsd-questions@freebsd.org
Subject:   Redirecting http requests
Message-ID:  <3.0.1.32.19990223025702.0069b240@pop.vamsi.net>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19990223025702.0069b240>