From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <008e01c724dc$3ede9c90$0200a8c0@mics.local> From: "Nikolay(computer-service.ru)" To: "ALT Linux sysadmin discuss" References: <012c01c72412$55143f30$0200a8c0@mics.local> <45898ABC.3070107@rambler.ru> Date: Thu, 21 Dec 2006 11:44:36 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Content-Transfer-Encoding: quoted-printable X-SpamTest-Info: Profile: Formal (863/061221) X-SpamTest-Info: Profile: Detect Standard (4/030526) X-SpamTest-Info: Profile: SysLog X-SpamTest-Info: Profile: Archiving/Rejecting (2/030321) X-SpamTest-Status: Not detected X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release Subject: Re: [Sysadmins] DNAT??? X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 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, 21 Dec 2006 08:48:51 -0000 Archived-At: List-Archive: > Nikolay(computer-service.ru) =D0=C9=DB=C5=D4: > > =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5 =D5=D7=C1=D6=C1=C5=CD=CF=C5 =D3=CF= =CF=C2=DD=C5=D3=D4=D7=CF! > > =F0=CF=CD=CF=C7=C9=D4=C5 =D2=C5=DB=C9=D4=D8 =D0=D2=CF=C2=CC=C5=CD=CB=D5= . =E5=D3=D4=D8 2 =D3=C5=D4=C9 192.168.0.* =C9 192.168.1.* =CD=C5=D6=C4=D5 =CE=C9=CD=C9 > > =D3=D4=CF=C9=D4 ALT =CD=C1=D3=D4=C5=D2 2.4(=D1=C4=D2=CF 2.4) > > =D3 =C4=D7=D5=CD=D1 =D3=C5=D4=C5=D7=D9=CD=C9 =CB=C1=D2=D4=C1=CD=C9 =C9= =C4=D7=D5=CD=D1 ip(192.168.0.40 =C9 192.168.1.40) > > =EE=D5=D6=CE=CF =DE=D4=CF=C2=D9 =D7 =CF=C4=CE=CF=CA =D3=C5=D4=C9(192.= 168.0.*) =C2=D9=CC =D7=C9=C4=C5=CE =CB=CF=CD=D0 =C4=D2=D5=C7=CF=CA(192.16= 8.1.1) > > =D3=C5=D4=C9 =D0=CF =CF=D0=D2=C5=C4=C5=CC=C5=CE=CE=CF=CD=D5 =D0=CF=D2= =D4=D5(80), > > =CE=CF =D3=C5=D4=C9 =D0=D2=C9 =DC=D4=CF=CD =C4=D2=D5=C7 =C4=D2=D5=C7=C1= =CE=C5 =D7=C9=C4=C5=CC=C9. =E4=D5=CD=C1=C0 =CE=C1=C4=CF =C9=D3=D0=CF=CC=D8= =DA=CF=D7=C1=D4=D8 DNAT > > =D0=C9=DB=D5 =D7 iptables > > -A PREROUTING -p tcp -d 192.168.1.1 --dport 80 -j DNAT --to-destinat= ion > > 192.168.0.40:80 > > =EF=C2=D2=C1=DD=C1=C0=D3=D8 =C9=DA =D3=C5=D4=C9 192.168.0.* =CB ip 1= 92.168.0.40 =CE=C1 80 =D0=CF=D2=D4 =C9 =DB=C9=DB =DE=C5=C7=CF. > > =E5=D3=CC=C9 =CD=C1=DB=C9=CE=C1 - =DB=CC=C0=DA, =D4=CF =CE=C9=DE=C5=C7=CF= =D4=C1=CB=CF=C7=CF =CE=C5 =CE=C1=C4=CF=D2=C1=DA=D7=C5 =DE=D4=CF =DA=C1=D0= =D2=C5=D4=C9=D4=D8 =C6=CF=D2=D7=C1=D2=C4 > =D7=D3=C5=C7=CF =CB=D2=CF=CD=C5 -p tcp --dport 80 -d 192.168.1.1, =C1 =D4= =C1=CB=D6=C5 ESTABLISHED =C9 > RELATED. =E5=D3=CC=C9 =CE=C5=D4, =D4=CF =D4=CF=CC=D8=CB=CF > =D0=D2=CF=CB=D3=C9. =F7=CF=DA=CD=CF=D6=CE=CF, =D0=D2=CF=DA=D2=C1=DE=CE=D9= =CA. =E9=CE=C1=DE=C5 =CE=C9=CB=C1=CB. AFAIK. =F7 =D4=CF=CD =D4=CF =D7=D3=D1 =C9 =D0=D2=CF=C2=CC=C5=CD=C1 =DE=D4=CF 192= .168.0.40 =CE=C5 =DB=CC=C0=DA =CE=C9 =D7 =CF=C4=CE=CF=CA =CE=C9 =D7 =C4=D2= =D5=C7=CF=CA =D3=C5=D4=C9. =CE=C1=C4=CF =C9=DA =CF=C4=CE=CF=CA =D3=C5=D4=C9 (192.168.1.0./24) =D7=D9= =CB=C9=CE=D5=D4=D8 =D0=CF=D2=D4 80(=D0=CF=D2=D4 =CE=C5 =D7=C1=D6=C5=CE) =CD=C1=DB=C9=CE=D9(192.168.1.1) =D7 =C4=D2=D5=C7=D5=C0 =D3=C5=D4=D8 192.1= 68.0.0./24 > > > _______________________________________________ > Sysadmins mailing list > Sysadmins@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/sysadmins >