From owner-freebsd-questions@FreeBSD.ORG Tue Dec 22 16:24:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9862106568D for ; Tue, 22 Dec 2009 16:24:27 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward9.mail.yandex.net (forward9.mail.yandex.net [77.88.61.48]) by mx1.freebsd.org (Postfix) with ESMTP id 8E2408FC15 for ; Tue, 22 Dec 2009 16:24:27 +0000 (UTC) Received: from smtp10.mail.yandex.net (smtp10.mail.yandex.net [77.88.61.36]) by forward9.mail.yandex.net (Yandex) with ESMTP id C0FD84682F0; Tue, 22 Dec 2009 19:24:25 +0300 (MSK) Received: from HOMEUSER (unknown [77.93.42.230]) by smtp10.mail.yandex.net (Yandex) with ESMTPA id 7EB0910900D6; Tue, 22 Dec 2009 19:24:25 +0300 (MSK) X-Nat-Received: from [192.168.9.8]:2549 [ident-empty] by SPAM FILTER: with TPROXY id 1261499068.49294 abuse-to kes-kes@yandex.ru Date: Tue, 22 Dec 2009 18:24:27 +0200 From: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?utf-8?B?0KfQnyDQmtC+0L3RjNC60L7QsiwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <1265047402.20091222182427@yandex.ru> To: Tiago In-Reply-To: <614b39480912220459l378faa15ufa7514ce2c1d5825@mail.gmail.com> References: <614b39480912220459l378faa15ufa7514ce2c1d5825@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Yandex-TimeMark: 1261499065 X-Yandex-Spam: 1 X-Yandex-Front: smtp10.mail.yandex.net X-Mailman-Approved-At: Tue, 22 Dec 2009 16:36:42 +0000 Cc: freebsd-questions@freebsd.org Subject: Re: Help with ipfw please X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 16:24:27 -0000 Здравствуйте, Tiago. Вы писали 22 декабря 2009 г., 14:59:50: T> Im trying to add a basic rule in my ipfw. T> My server has 2 network address, one for external access (x.x.x.x) and other T> for the local network(y.y.y.y). T> The mysql is binded to the local network, but I would like to allow my home T> computer (z.z.z.z) to connect to the mysql by the external ip. T> so basicaly im trying to do is: if request comes from z.z.z.z to T> y.y.y.y:3306 redirect to x.x.x.x:3306 T> I tryed some configuration but I ended locked outside the machine... You need -redirect_port man natd: For example, the argument tcp inside1:telnet 6666 -- С уважением, Коньков mailto:kes-kes@yandex.ru