From: Joel Newkirk <netfilter@newkirk.us>
To: tom@acalgrinding.dyndns.org, netfilter@lists.netfilter.org
Subject: Re: http forwarding
Date: Thu, 14 Nov 2002 20:11:52 -0500 [thread overview]
Message-ID: <200211142011.52029.netfilter@newkirk.us> (raw)
In-Reply-To: <cld7tugoh1bo72ihi68e98j7sh2a19kqn4@4ax.com>
On Thursday 14 November 2002 09:59 am, Tom Elsesser wrote:
> trying to forward http request to ulysses. The router and eth1 are on
> a 10.10.10.0 subnet, while the rest of the network is on a 10.1.1.0
> subnet. The router cannot directly route the http requests from the
> outside to ulysses, so I am trying to forward them from yzerman, but
> it is not working as the connection times out if I try to connect from
> /sbin/iptables -P FORWARD DROP
> /sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
> /sbin/iptables -A FORWARD -i eth1 -m state --state RELATED,ESTABLISHED
> -j ACCEPT
> /sbin/iptables -A FORWARD -i eth0 -s 10.1.1.0/8 -j ACCEPT
> /sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT
> --to 10.1.1.2
> /sbin/iptables -A INPUT -i eth1 -d 0/0 -p tcp --dport 80 -j ACCEPT
Everything looked good up to here. This rule needs to be in the FORWARD
chain. Once you've DNATted in PREROUTING, it's not coming to this machine,
it's being forwarded to another.
j
next prev parent reply other threads:[~2002-11-15 1:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-14 14:59 http forwarding Tom Elsesser
2002-11-15 1:11 ` Joel Newkirk [this message]
2002-11-15 13:40 ` Tom Elsesser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200211142011.52029.netfilter@newkirk.us \
--to=netfilter@newkirk.us \
--cc=netfilter@lists.netfilter.org \
--cc=tom@acalgrinding.dyndns.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.