Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: port and adress forward
Date: Mon, 9 May 2005 14:19:28 -0400	[thread overview]
Message-ID: <20050509181928.GA5978@bender.817west.com> (raw)
In-Reply-To: <427F7554.4000107@dud.com.br>

On Mon, May 09, 2005 at 02:36:04PM +0000, Roberto Dud (listas) wrote:
> Hi All,
> 
> I have a web and mail server in my local lan with ip 192.168.0.x and I 
> have a firewall / gateway with valid address.  I have a policy a to 
> redirect port 80 to my internal server. But I try to access my website 
> inside my internal lan and doesn't access.
> 
> My chain is below:
> 
>  iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT 
> --to-dest 192.168.0.X
>  iptables -A FORWARD -p tcp -i eth0 --dport 80 -d 192.168.0.X -j ACCEPT
> 
> Anyone help me?

1) connect to the web server using its 192.168.0.X address--no firewall
involved.

2) setup split dns so that www.mysite.com resolves to 192.168.0.X
internally and the external IP of the firewall externally.

3) wait for someone else to post the stupid DNAT/SNAT solution.

-j

--
"Stewie: Mother, as first lady of the American stage Helen Hayes once
 said, "I'm going to kill you.""
        --Family Guy


  parent reply	other threads:[~2005-05-09 18:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-09 14:36 port and adress forward Roberto Dud (listas)
2005-05-09 17:56 ` Rob Sterenborg
2005-05-09 18:19 ` Jason Opperisano [this message]
2005-05-09 18:28 ` Taylor, Grant
2005-05-09 16:55   ` Roberto Dud (listas)

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=20050509181928.GA5978@bender.817west.com \
    --to=opie@817west.com \
    --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