From owner-freebsd-ipfw@freebsd.org Mon Sep 28 08:32:14 2015 Return-Path: Delivered-To: freebsd-ipfw@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E40B9D0783 for ; Mon, 28 Sep 2015 08:32:14 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward15j.cmail.yandex.net (forward15j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::b5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 423731079 for ; Mon, 28 Sep 2015 08:32:14 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp12.mail.yandex.net (smtp12.mail.yandex.net [95.108.131.191]) by forward15j.cmail.yandex.net (Yandex) with ESMTP id 35E3E20E4F; Mon, 28 Sep 2015 11:32:02 +0300 (MSK) Received: from smtp12.mail.yandex.net (localhost [127.0.0.1]) by smtp12.mail.yandex.net (Yandex) with ESMTP id CDDAA16A1054; Mon, 28 Sep 2015 11:32:01 +0300 (MSK) Received: by smtp12.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id PyVpWayEBv-W1Madth2; Mon, 28 Sep 2015 11:32:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1443429121; bh=UH7Dm4mImcT4+OdZXp8BsNriVFFvlOoJqtiJ7KkFk5k=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type; b=T10m7Y2PLiiTzDfmQg8c4mtSLuUwdKMevt5gCWXQmIhlvgcGT1HJtLEkj4zxfm77U R00znhBMAflBBOvxpHbCS1F5VYFgv4WCrOEDokic47JF3KfaLqjUAkbFCh4qXVfLoN Diu7HdLw2IOdAZGjslpcNfiHl68Cf3f1F/FvMmIQ= Authentication-Results: smtp12.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-ForeignMX: US Message-ID: <5608FAC2.5070104@yandex.ru> Date: Mon, 28 Sep 2015 11:30:58 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: lsrz2006@sina.com, freebsd-ipfw Subject: Re: proxy_rule is missing in kernel nat? References: <20150928023428.011A447814F@webmail.sinamail.sina.com.cn> In-Reply-To: <20150928023428.011A447814F@webmail.sinamail.sina.com.cn> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="55tB5duHROnqmnEgPX1Eej8DPAW9Vwa2o" X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2015 08:32:14 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --55tB5duHROnqmnEgPX1Eej8DPAW9Vwa2o Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 28.09.2015 05:34, lsrz2006@sina.com wrote: > I had using natd for a proxy for a while time, = using the command: > natd -p 3333 -proxy_only -proxy_rule "server 192.168.6.6 proto tcp" >=20 > but when I use this in kernel nat config, I get a error infomation: >=20 > # ipfw nat 20 config proxy_only proxy_rule server 192.168.6.6ipfw: unre= cognised option ``proxy_rule'' > I'd readed the src code in /usr/src/sbin/ipfw and can't find the LibAli= asProxyRule() function which is in the natd.c. > Does I have a mistake? Hi, it looks like proxy_rule was forgotten when it was ported. --=20 WBR, Andrey V. Elsukov --55tB5duHROnqmnEgPX1Eej8DPAW9Vwa2o Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWCPrHAAoJEAHF6gQQyKF65YIIAIhFaG4XzBlz6Ju9xQ+yotnV essGt/j1CySudEUZc/RQ96muKPscvd9twHB0nGJV5ZFRfAQ//Fau+gFqN52hAi0b r0EWLIm5WxqvwyD2DA8zDuPUeljh8JKWKrwMJ+bA6FEu0ezVxoGMsObC8L0+xB+Y tA5lrBDn4qMLQ9ZIw8b+KqgqRjMa92swSqd2YxM5EzAazWxe0aPTpjzdFXWwdgNL NNAVX7zbbYbmfDGCh424PcrPGma0viVzrmgdzleq2CRh4xl1/gWYie9qZVx4srfr PltnV1xc3GcVylvBvwBfmrCS7+HWAuxwrIORamvUY/6R+VG9RRw9ob2wUm01Yb4= =bq58 -----END PGP SIGNATURE----- --55tB5duHROnqmnEgPX1Eej8DPAW9Vwa2o--