Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Anthony R. Vallario" <avallari@sirinet.net>
To: netfilter@lists.netfilter.org
Subject: IPTABLES Difficulties
Date: Sun, 17 Aug 2003 18:03:06 -0500	[thread overview]
Message-ID: <007401c36513$b8541cd0$0400a8c0@whynot> (raw)

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

To whom it may concern;
            I have an iptables NAT box setup on Redhat 9.0. I recently added a box behind the firewall that will act as a web server. I didn't want to do a DMZ as money is tight. I used the following rules to get all outside requests on port 80 to the web server inside:

-A PREROUTING -p tcp -i eth0 -d $publicip --dport 80 -j DNAT --to-destination $internalip
-A PREROUTING -p tcp -i eth0 -d $publicip --dport 443 -j DNAT --to-destination $internalip

My only problem is when somebody behind the firewall wants to access this webserver, it doesn't work. I don't want to have to type in the internal ip. I don't want to install an internal dns server. I would like my workstations to be able to type in the FQDN for the webserver and it actually work. If NAT works, why doesn't it go out the firewall and turn right back around and go to the webserver?

Anthony R. Vallario


[-- Attachment #2: Type: text/html, Size: 1617 bytes --]

             reply	other threads:[~2003-08-17 23:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-17 23:03 Anthony R. Vallario [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-17 23:06 IPTABLES Difficulties Anthony R. Vallario
2003-08-17 23:22 George Vieira

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='007401c36513$b8541cd0$0400a8c0@whynot' \
    --to=avallari@sirinet.net \
    --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