From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DNS_FROM_AHBL_RHSBL,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 DKIM-Filter: OpenDKIM Filter v2.9.2 python.ilimnet.ru B5157E247A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taf.ru; s=FCA68DE2-074C-11E2-AD6F-DEDBFE231BC9; t=1460132325; bh=bZRPWAK8yfqwXhOQe7S476g4HmUjEwXwywcR6tPfnbM=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=AgMLs1sQeJ5CGhpD7wIJsxVcb85mT9Jpvdqi+0zyBtQZyi+V74gE58xLq34cY6icD DOSiUqu0v5Ryz09Vqt7BZG8PBr+MGiiKGkNlb10rOGqpOVSWRhG6Jld1q0+MKV92fQ 3K1+VvpIiUq9b2P7VdW2ipSpW67wAZN0NJoDOm+A= X-Virus-Scanned: amavisd-new at ilimnet.ru Date: Sat, 9 Apr 2016 01:18:44 +0900 (IRKT) From: Alexei Takaseev To: ALT Linux sysadmins' discussion Message-ID: <1805230123.1749324.1460132324586.JavaMail.zimbra@taf.ru> In-Reply-To: <57076EDB.8020802@altlinux.ru> References: <5706792D.1040907@altlinux.ru> <12565064.67.1460080492924.JavaMail.taf@taf.office.telnet> <57076EDB.8020802@altlinux.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Originating-IP: [193.33.233.7] X-Mailer: Zimbra 8.6.0_GA_1194 (ZimbraWebClient - FF45 (Win)/8.6.0_GA_1194) Thread-Topic: nat and shaper Thread-Index: PtVWkR8AvxLregpETk4lSMlCdyDGIA== Content-Transfer-Encoding: quoted-printable Subject: Re: [Sysadmins] nat and shaper X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux sysadmins' discussion List-Id: ALT Linux sysadmins' discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2016 16:17:20 -0000 Archived-At: List-Archive: ----- 8 =D0=90=D0=BF=D1=80 2016 =D0=B3. =D0=B2 16:42 Anton Gorlov stalker= @altlinux.ru =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): > 08.04.2016 04:56, Alexei Takaseev =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> =D0=90 =D0=BA=D0=B0=D0=BA=D0=B8=D0=B5 =D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0= =B5=D0=BC=D1=8B =D1=81 =D1=88=D0=B5=D0=B9=D0=BF=D0=B8=D0=BD=D0=B3=D0=BE=D0= =BC =D0=B2=D1=85=D0=BE=D0=B4=D1=8F=D1=89=D0=B5=D0=B3=D0=BE =D0=9D=D0=90 =D0= =BA=D0=BB=D0=B8=D0=B5=D0=BD=D1=82=D0=BE=D0=B2 =D1=82=D1=80=D0=B0=D1=84=D0= =B8=D0=BA=D0=B0? =D0=A2=D0=B0=D0=BC =D0=B2=D1=81=D0=B5 >> =D0=BD=D0=BE=D1=80=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE =D0=B8 =D0=BA=D0= =BB=D0=B0=D1=81=D1=81=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8 =D0=BF=D0=BE =D0= =BC=D0=B0=D0=BD=D1=83=D0=B0=D0=BB=D0=B0=D0=BC. =D0=9F=D1=80=D0=BE=D0=B1=D0= =BB=D0=B5=D0=BC=D0=B0 =D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE =D0=B2 =D1=88=D0= =B5=D0=B9=D0=BF=D0=B8=D0=BD=D0=B3=D0=B5 =D0=B8=D1=81=D1=85=D0=BE=D0=B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c filter add dev LAN parent ffff: protocol ip \ u32 match u32 0 0 action mirred egress redirect dev ifb0 =D0=B8 =D1=83=D0=B6=D0=B5 =D0=BD=D0=B0 ifb =D0=BF=D1=80=D0=BE=D0=BF=D0=B8= =D1=81=D1=8B=D0=B2=D0=B0=D1=82=D1=8C =D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB= =D0=B0 =D0=BD=D0=B0=D1=80=D0=B5=D0=B7=D0=BA=D0=B8 =D0=B8=D1=81=D1=85=D0=BE= =D0=B4=D1=8F=D1=89=D0=B5=D0=B9 =D0=BE=D1=82 =D0=BA=D0=BB=D0=B8=D0=B5=D0=BD= =D1=82=D0=BE=D0=B2 =D1=81=D0=BA=D0=BE=D1=80=D0=BE=D1=81=D1=82=D0=B8.