From mboxrd@z Thu Jan 1 00:00:00 1970 From: Romain Moyne Subject: port translation Date: Sun, 11 Jan 2004 11:21:17 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <4001239D.7010904@yahoo.fr> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Hello, I'm French and my english is bad ;) I have a http server (debian 3.0) behind a router (debian 3.0). I have a problem when I want to log the visitor's IP of my website with PHP or Perl or all language. I have always the IP of my router ! Somebody tell me that I must do port translation but I have searched and I haven't fand anything. Can you help me ? This is the rules of my router : iptables -t nat -A PREROUTING -d MyIP -p tcp --dport 80 -j DNAT --to-destination 192.168.0.3:80 Romain