Project

General

Profile

Cannot connect if port 80 is forwarded

Added by jldavid47 almost 15 years ago

OS: FreeBSD
Lighttpd version: 1.4.26
Router: Netgear DG834G

I've set up lighttpd to be my webserver on a NetBSD installation. Connections from behind my router/firewall work fine. When I try to access a web page from outside, however, the connection times out. I have forwarded port 80 (and port 22) to my NetBSD box. SSH connections over port 22 get forwarded just fine and I can login from outside the firewall. I get this entry in my router log for SSH attempts

Sun, 2010-06-27 13:35:01 - TCP Packet - Source:69.163.149.200,40170 Destination:70.xxx.yy.zzz,22 - [SSH rule match]

and get connected to the server. The auth.log entries confirm this.

HTTP requests, however, seem to die after getting to router. Here is a typical router log entry:

Sun, 2010-06-27 21:30:21 - TCP Packet - Source:192.168.0.3,65458 Destination:70.xxx.yy.zzz,80 - [HTTP rule match]

In this case, the browser times out and there are NO log entries anywhere on the server. I'm 99.9% sure I've set up the port forwarding on the router correctly. (Service Name=HTTP, Action=ALLOW Always, LAN Server IP Address=192.168.0.50 - the reserved IP address for the server behind the firewall). Using a Port Forwarding Tester tells me that ports 22 and 80 are open and all others are closed.

UPDATE: If I try to access from any common web browser (Firefox, Chrome, IE) the request times out and I see nothing in the server logs. However I tried a couple of tests connecting using the Tcl http package. If I try "http://70.xxx.yy.zzz/" I get "HTTP/1.0 301 Moved Permanently" back from the server, but if I try "http://70.xxx.yy.zzz/index.html" the page gets served correctly. Neither works from a web browser.

I'm thinking that I am missing something in the configuration. Again, access from within the firewall works perfectly. Any ideas?

Thanks.