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

Re: Apache Not Serving Up Documents



Nicolas Kratz wrote:
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



janjrent@jan-jr-ent:~$ iptables -t net -A PREROUTING -i ppp0 -p t
cp --dport 25 -j DNAT \ --to 'host balrog | sed -e 's/^.*address
//' :25
>

It brings me a gt sign prompt. I'm off to read the iptables how to as I'm not sure what I need to change.



Reply to: