Hi.

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

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
<[EMAIL PROTECTED]>                |   Never touch a running sysop,
<[EMAIL PROTECTED]>   |   or your wife is a big hippo.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to