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 autolearn=ham version=3.2.5 X-Virus-Scanned: amavisd-new at nevod.ru Message-ID: <4A6985AA.9020304@nevod.ru> Date: Fri, 24 Jul 2009 15:58:02 +0600 From: =?UTF-8?B?0KjQuNCz0LDQv9C+0LIg0KDQuNC90LDRgg==?= User-Agent: Thunderbird 2.0.0.17 (X11/20080929) MIME-Version: 1.0 To: ALT Linux Community general discussions References: <4A66DDE6.8050809@nevod.ru> <4d6cc2f20907220342h42c73f8bxc3f6cc5fc45f2fb6@mail.gmail.com> In-Reply-To: <4d6cc2f20907220342h42c73f8bxc3f6cc5fc45f2fb6@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Comm] OpenVZ & smbnetfs & FreeNX X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2009 09:58:20 -0000 Archived-At: List-Archive: List-Post: Полученное решение: В node.conf: SAMBA_MOUNT_SHARE_PROTOCOL="smbfs" ENABLE_SAMBA_PRELOAD="1" COMMAND_SMBMOUNT=/usr/local/bin/mountsmb COMMAND_SMBUMOUNT=/usr/local/bin/umountsmb Врапперы: [root@nxServer nxserver]# cat /usr/local/bin/mountsmb #!/bin/bash /usr/local/bin/redirect445 -I $NXSAMBA_PORT mkdir ~/tmp/smbnetfs ln -sf ~/tmp/smbnetfs/127.0.0.1 ~/Desktop/MyShares smbnetfs ~/tmp/smbnetfs [root@nxServer nxserver]# cat /usr/local/bin/umountsmb #!/bin/bash /usr/local/bin/redirect445 -D $NXSAMBA_PORT fusermount -u ~/tmp/smbnetfs [root@nxServer nxserver]# cat /usr/local/bin/redirect445 #!/bin/bash /sbin/iptables -t nat $1 OUTPUT -p tcp --dport 445 -j REDIRECT --to-ports $2 Для работы nat в ve подгрузил модуль iptables_nat. -- С уважением, Шигапов Ринат инженер-программист ООО "Невод" тел. (342)2196960 JabberID: dxist эт ya.ru