From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.2.5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=OwWp0l3smA2HB+HPvALFPhot25v7XQtVjhw/Ad1bzrA=; b=U0XBoibez9r3nEQh5JgDveGhfKxqzm7kyjVVkfMg8GYhM1DomZ/PljqcHqnjSca9b9 742gP1/+3DQdsIgMZCoeEWArcThzzWRTPxatBwwoPOcWSR+2c53yLByC9rrtV2mCoRL9 RRbS8YaFXjuixexx7UPJ90OBLzPNqZKgFbaR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=Cx5VJo2pZKpWeu8wgHrwOBcCitPUkrS9ipW5i7sLrqS7HMX2FuMBUCvwUVJ4dPavdw NK6pBoP1fdoqsDDYLxk1SMbd2cdOyBrLDT3Q8/uv+z3u96eJX8l1ljyPfn25CiPmitdC 3lVX6/Owa/NthrTaVt/+3mykdC7vFMSCa2mSU= Date: Thu, 16 Apr 2009 23:12:33 +0400 From: Maks Re To: sysadmins@lists.altlinux.org Message-ID: <20090416231233.07001686@lynx> In-Reply-To: <200904161151.59125.a_s_y@sama.ru> References: <200904112033.47447.a_s_y@sama.ru> <200904141048.15485.a_s_y@sama.ru> <20090414153727.572eedb5@lynx> <200904161151.59125.a_s_y@sama.ru> X-Mailer: Claws Mail 3.6.1cvs5 (GTK+ 2.12.12; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Sysadmins] bridge & iptables MASQUERADE X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 19:12:57 -0000 Archived-At: List-Archive: > =20 > =D0=90 =D1=87=D1=82=D0=BE =D0=BF=D0=BE =D0=BF=D0=BE=D0=B2=D0=BE=D0=B4=D1= =83 iptabls -nL -t nat ? >=20 # iptables -nvL -t nat Chain PREROUTING (policy ACCEPT 1117K packets, 121M bytes) pkts bytes target prot opt in out source destina= tion 1056 51104 DNAT tcp -- * * 0.0.0.0/0 89.179.= x.y tcp dpt:33573 to:192.168.100.12:33573 0 0 DNAT tcp -- * * 0.0.0.0/0 89.179.= x.y tcp dpt:33574 to:192.168.100.15:33574 1 60 DNAT tcp -- * * 0.0.0.0/0 89.179.= x.y tcp dpt:80 to:192.168.102.55:80 12969 656K DNAT tcp -- * * 0.0.0.0/0 89.179.= x.y tcp dpt:33575 to:192.168.100.11:33575 Chain POSTROUTING (policy ACCEPT 21297 packets, 1240K bytes) pkts bytes target prot opt in out source destina= tion 1 462 MASQUERADE all -- * * 192.168.122.0/24 !192.16= 8.122.0/24 547 61928 ACCEPT all -- * * 192.168.100.0/24 192.168= .100.0/24 0 0 ACCEPT all -- * * 192.168.102.0/24 192.168= .102.0/24 24860 1350K SNAT all -- * ppp0 192.168.100.0/24 0.0.0.0= /0 to:89.179.x.y 0 0 SNAT all -- * ppp0 192.168.102.0/24 0.0.0.0= /0 to:89.179.x.y Chain OUTPUT (policy ACCEPT 5994 packets, 471K bytes) pkts bytes target prot opt in out source destination =D0=BD=D0=BE =D0=BA=D0=B0=D0=BA-=D1=82=D0=BE =D0=B2=D1=81=D0=B5 =D1=81=D1= =82=D1=80=D0=B0=D0=BD=D0=BD=D0=BE. =D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB =D1=81=D0=B2=D0=B5= =D0=B6=D0=B5=D0=B5 =D1=8F=D0=B4=D1=80=D0=BE 2.6.27-std-def-alt15 =D0=BD=D0=B5=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE =D1=83=D0=BB=D1=83=D1=87=D1=88= =D0=B8=D0=BB=D0=BE=D1=81=D1=8C, =D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0 =D1=81= =D0=BC=D0=B0=D1=81=D0=BA=D0=B0=D1=80=D0=B0=D0=B4=D0=B8=D0=BD=D0=B3=D0=BE= =D0=BC/=D1=81=D0=BD=D0=B0=D1=82 =D0=B8 =D0=BF=D1=80... =D0=BD=D0=BE =D1=87=D1=82=D0=BE-=D1=82=D0=BE "=D0=BD=D0=B5 =D1=82=D0=BE" =D0=BD=D0=B0 2.6.27-ovz-smp-alt4 =D0=B5=D1=89=D0=B5 =D0=BD=D0=B5 =D0=BF=D1= =80=D0=BE=D0=B2=D0=B5=D1=80=D1=8F=D0=BB