[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help needed with router vs Apache problem



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jul 22, 2003 at 01:54:31PM +0000, Daniel Lesage wrote:
> I then configured the router to forward requests to port 81 to the debian 
> box.

Why?  Your ISP is blocking connections to port 80.  Have your router
redirect incoming connections from the outside world on port 81 to
your webserver's port 80 on the internal network.

If you were using Linux as a router, this would be accomplished with:

# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 81 -j DNAT --to-destination 192.168.0.4:80

This assumes eth0 is your external interface and eth1 is your
internal.  Also assumes your webserver is listening on the default
port (80/tcp) and is located at 192.168.0.4.  Change these details as
necissary.

- -- 
 .''`.     Paul Johnson <baloo@ursine.ca>
: :'  :    proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than fix a system
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/H8MsJ5vLSqVpK2kRAmgIAKCgsZ2jm7DfbEBZlPW1xuYVutZVOwCgmOyh
llNqOJ3znrxL1rw5Y8ZfrXs=
=cLBR
-----END PGP SIGNATURE-----



Reply to: