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

Re: Apache Not Serving Up Documents



Hi.

On Mon, Mar 10, 2003 at 11:24:20PM -0600, Joseph A Nagy Jr wrote:
> 
> janjrent@jan-jr-ent:~$ telnet jan-jr-ent.homelinux.org 80
> Trying 24.158.191.171...
> telnet: Unable to connect to remote host: Connection refused
> janjrent@jan-jr-ent:~$

I assume you and the web server are behind a masquerading router.
If that is the case, trying to access the outside IP of the router will
fail, because the forwarding rules will not be triggered. Except you
have take precautions in this regard, of course.

Here are known good iptables rules for SMTP, edit as necessary:

iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 25 -j DNAT \
--to `host balrog | sed -e 's/^.*address //'`:25
iptables -I  FORWARD 2 -o eth0 -p tcp --dport 25 -j ACCEPT

Cheers,
Nick

-- 
Nicolas Kratz                           |   GPG-key: 1D6D075A
<nick@ikarus.dyndns.org>                |   Never touch a running sysop,
<n_kratz@informatik.uni-frankfurt.de>   |   or your wife is a big hippo.

Attachment: pgpz6f7d6xQEO.pgp
Description: PGP signature


Reply to: