Cópia Antony Stone <Antony@xxxxxxxxxxxxxxxxxxxx>: > 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. > > Please reply to the list; > > please don't CC me. > > skydive! Antony: ok.. i got it to work just fine. although i need 3 rules: 1 prerouting,1 forward, 1 postrouting! i'll be glad to help if i can! danke ! [] ;))) ------------------------------------------------- Email Enviado utilizando o serviço MegaMail