Click to See Complete Forum and Search --> : port forward question


sb
06-20-2002, 05:53 PM
Hello,

We have two computers behind a SMC router. Computer 1 is a WinME machine and computer 2 redhat linux.

The router connects to PacBell DSL using a PPPoE protocal. Because PacBell is running DHCP, I'm using DynaDNS and a daemon on the redhat machine to assign our system the name sbeckman.homelinux.org.

I've set the router to portforward ssh on machine 2 to the outside world so I can ssh into my home linux machine by "ssh sbeckman.homelinux.org"

I've setup an apache server on computer 2. I can read documents served from it by computer 1. I then set the router to portforward port 80. When I did this the network service ended. I assume that PacBell doesn't allow webservers on port 80.

I reconfigured the apache server to listen to port 3001. From computer 1 I can now only see the documents by looking at 192.168.123.2:3001 . I set the router to forward port 3001. No problem.

From work I can not access sbeckman.homelinux.org:3001. When I check the IP number and try to access directly http://64.166.23.234:3001/index.html I still can't reach the system.

Does anyone know how to solve this problem?

I'm trying to build a small family site, nothing high traffic. I'd prefer to not switch to a provider because we wouldn't be generating profit so paying for access is foolish, at the same time I don't want the ads and I'd like to use this site to learn PHP, Perl-CGI and maybe try slashcode.

mychl
06-27-2002, 11:53 PM
can you not set up the router to listen on 3001 and forward those requests to machine2 on port 80? Also, check your apache log files to see if the requests are being recieved. You might be reaching the server, but sending the output back accross your router might be blocking it...

tail /var/log/httpd/access_log

GL

jumpedintothefire
07-04-2002, 08:47 PM
Check this out:

http://www.linuxnewbie.org/forum/showthread.php?s=&threadid=43804

Since the router is masq'ing the lan, you may have to reduce the mtu of your network card, for the packets to pass through the router without being fragmented.