Date: Wed, 6 Sep 2000 21:18:50 -0400 From: "Matthew Emmerton" <matt@gsicomp.on.ca> To: "Terje Oseberg" <oseberg@hotmail.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: FreeBSD 4.0 Firewall System and Problem with Apache Name Virtual Hosts Message-ID: <001301c01869$96479440$1200a8c0@zircon> References: <F274KufVma0osA91E9G0000532f@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> If I'm on the system under test and I telnet to localhost port 80 > and do the GET requests, it doesn't work, but when I telnet to port > 80 from another computer, it does work. This is on FreeBSD 3.2 that > I noticed this and with this particular config file and the original > config file that I had on that system. > > I'm thinking that when I telnet to localhost, it telnet's to the > wrong (internal rather than external) IP adress. And maybe the bug > in FreeBSD 4.0 is that when you telnet from outside the firewall > to port 80, it actually believes that you're inside the firewall. If you telnet to port 80 on the local system, the request is coming from inside the firewall. Hence, it's going to use the web servers NAT'd address or 127.0.0.1. Requests from other systems on the NAT'd network will connect to the NAT'd address of the web server. The only time when the external address will be used is when the requests come from outside the NAT/firewall. -- Matthew Emmerton GSI Computer Services +1 (800) 217-5409 (Canada) 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?001301c01869$96479440$1200a8c0>