From: skydive Subject: Re: http acces Date: Fri, 21 Nov 2003 10:47:04 +0000 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1069411624.3fbded284f7f1@paris-hme1> References: <1069364822.3fbd3656723b4@roma-hme1> <200311202254.hAKMss723777@onyx.rockstone.co.uk> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-reply-to: <200311202254.hAKMss723777@onyx.rockstone.co.uk> 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: netfilter@lists.netfilter.org C=F3pia Antony Stone : > On Thursday 20 November 2003 9:47 pm, skydive > wrote: > > > 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 :) > > See if > http://www.netfilter.org/documentation/HOWTO//NAT- HOWTO-10.html > > answers your question. > > Antony. > > -- > > Having been asked to provide a reference for > this man, > I can confidently state that you will be very > lucky indeed > if you can get him to work for you. > =20 > Please reply to the list; > =20 > please don't CC me. > >=20 skydive! Antony: ok.. i got it to work just fine. although i need 3=20 rules: 1 prerouting,1 forward, 1 postrouting!=20 i'll be glad to help if i can! danke ! [] ;))) ------------------------------------------------- Email Enviado utilizando o servi=E7o MegaMail