From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Lunz Subject: Re: DNAT, Is it possible to find the original destination? Date: Mon, 8 Nov 2004 23:09:53 +0000 (UTC) Message-ID: References: <1099323026.41865692986d5@email.ixwebhosting.com> Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@lists.netfilter.org lumberjack@lumberjackvillage.com said: > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to 8080 > > Is there any way that my application can look in the table and see the real > destination? I've seen several things in patch-o-matic that do things with iirc, doesn't the SO_ORIGDST sockopt (or something like that) tell you this? Jason