From: Alexander Samad <alex@samad.com.au>
To: netfilter@lists.netfilter.org
Subject: Re: forwarding rule (internal webserver) HELLPP!!
Date: Tue, 16 Mar 2004 13:13:46 +1100 [thread overview]
Message-ID: <20040316021346.GG26800@samad.com.au> (raw)
In-Reply-To: <20040315191020.11187.qmail@web10205.mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
On Mon, Mar 15, 2004 at 11:10:20AM -0800, arif wrote:
> Anyone know why the following rule does not work when
> i use SNAT but does when i use MASQUERADE??
>
> /sbin/iptables -A PREROUTING -t nat -p tcp -d 63.x.x.x
> --dport 80 -j DNAT --to 10.0.0.3:80
>
> When I use the following rule, the previous rule
> works:
> /sbin/iptables -t nat -A POSTROUTING -o eth1 -j
> MASQUERADE
>
> but when i do it like this, i just get a connection
> refused from the outside:
> /sbin/iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o
> eth0 -j SNAT --to-source 63.203.63.246
Not sure if its a typo MASQ is for eth1 and the SNAT is for eth0
>
> Both work as far as NAT'ing my internal hosts, but i
> cant get the darn forward to work! thanks!! :)
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
> http://mail.yahoo.com
>
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-03-16 2:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-15 19:10 forwarding rule (internal webserver) HELLPP!! arif
2004-03-16 2:13 ` Alexander Samad [this message]
2004-03-16 17:32 ` arif
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=20040316021346.GG26800@samad.com.au \
--to=alex@samad.com.au \
--cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox