Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Thorsten Scherf <tscherf@web.de>
To: Fritz Mesedilla <fritz.mesedilla@overturemedia.com>,
	netfilter@lists.netfilter.org
Subject: Re: internal web server
Date: Fri, 5 Sep 2003 15:57:39 +0200	[thread overview]
Message-ID: <200309051557.39683.tscherf@web.de> (raw)
In-Reply-To: <F22386C3FEB012449238672E38ED61E70A8CA2@overlord.overturemedia.com>

>- external ip of firewall 202.138.128.xxx
>- internal ip of firewall 192.168.247.3
>- internal web server with ip 192.168.247.5
>
>This was what my code was...
>$IPT -t nat -A PREROUTING -p tcp -d 192.168.247.3 --dport 80 -j DNAT
> --to-destination 192.168.247.5:80
>
>It doesn't seem to work. I have set the web server to use the gw of
> 192.168.247.3

Not really sure what you want, but if you try to write a rule for forwarding 
packets which destination Port 80 to your internal web server, try this 
one:

$IPT -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 
192.168.247.5:80

If you know your external fw-IP you can specify it in the rule:

$IPT -t nat -A PREROUTING -p tcp --dport 80 -d 202.138.128.xxx -j DNAT 
--to-destination 192.168.247.5:80


Greetings,

Thorsten Scherf,
RHCE, RHCX



  reply	other threads:[~2003-09-05 13:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-05 12:57 internal web server Fritz Mesedilla
2003-09-05 13:57 ` Thorsten Scherf [this message]
2003-09-05 14:32 ` slack geek
  -- strict thread matches above, loose matches on Subject: below --
2003-09-05 14:19 Fritz Mesedilla
2003-09-08  5:48 Fritz Mesedilla

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=200309051557.39683.tscherf@web.de \
    --to=tscherf@web.de \
    --cc=fritz.mesedilla@overturemedia.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