From owner-freebsd-net@FreeBSD.ORG Tue Apr 12 11:08:22 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D927D16A4CE for ; Tue, 12 Apr 2005 11:08:22 +0000 (GMT) Received: from t1.perm.mtsnet.ru (ns.perm.mtsnet.ru [213.87.42.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DE1443D5C for ; Tue, 12 Apr 2005 11:08:21 +0000 (GMT) (envelope-from sergey@vavilov.org) Received: from [10.100.9.154] (vavy-ntbk.perm.mtsnet.ru [213.87.42.30]) by t1.perm.mtsnet.ru (8.13.3/8.13.3) with ESMTP id j3CB8JAa027420 for ; Tue, 12 Apr 2005 17:08:19 +0600 (YEKST) Message-ID: <425BAC1E.6090001@vavilov.org> Date: Tue, 12 Apr 2005 17:08:14 +0600 From: Sergey Vavilov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.83/822/Tue Apr 12 10:55:55 2005 on t1 X-Virus-Status: Clean Subject: natd, DNAT of UDP traffic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 11:08:23 -0000 Hello, all! I want to make DNAT (Destination NAT) on FreeBSD 5.3 with saving of source IP in translated packets. As I understood, natd always changes source IP to value of "-alias_address" or IP of "-interface". As I understood, remaining source IP unchanged possible with "-proxy_only". But "proxy-only" works with TCP traffic only, but I want to process UDP traffic via natd. Please, give me some advice how I can to do this. Thank you beforehand! The Schema: srcipA-----> ipB(DNAT)------->dstipC Now I using redirect_address, but I want to see in server's logs at dstipC original client's ip address (srcipA - is a pool of 30 addresses). -- Sergey Vavilov, Perm, Russia