From: "Josh Berry" Subject: Re: http acces Date: Thu, 20 Nov 2003 20:02:05 -0600 (CST) Sender: netfilter-admin@lists.netfilter.org Message-ID: <4006.192.168.111.202.1069380125.squirrel@mail.linknet-solutions.com> References: <1069364822.3fbd3656723b4@roma-hme1> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1069364822.3fbd3656723b4@roma-hme1> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="iso-8859-1" To: skydive Cc: netfilter@lists.netfilter.org DNAT will not work in this method. You should either be using internal DNS or I believe that you could use the Redirect target to send and information coming from your internal lan with a destination of www.example.org and redirect it to your server. > hi all > > i have been experienced a problem since i'm trying to > access my web server from my lan through my internet ip. > > i have no problems doing DNAT, from those who access my > web page form the outside: > > iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 > -j DNAT --to 192.168.0.1:80 > > this is solving the problem > > let's say my web page has the following address > www.example.org, and that it is host [like it is ;)) ] > in one machine on my lan with the following IP: > > 192.168.0.1 > > when i write www.example.org on my web browser, it just > hits eth1 on my gateway/firewall and stucks there. > maybe i'm missing something on my prerouting rules, or > maybe my small brain just can't reach it :) > > the way i see it, when i put www.example.org on my web > browser, i send i request to my gateway, and it was > supposed to take it back to my lan, where the site is > hosted. > > not working though... > > can somebody please help with these missing rules?! or > is it just something else i'm missing? > > thanks to those who took the time to ride all this > garbage and i'm greatfull even if you are not able to > help whatever your reason is ;))) > > [][] * * * > skydive! > > ------------------------------------------------- > Email Enviado utilizando o servi=E7o MegaMail > > > Thanks, Josh Berry, CTO LinkNet-Solutions 469-831-8543 josh.berry@linknet-solutions.com