From: "Шигапов Ринат" <srk@nevod.ru> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: Re: [Comm] OpenVZ & smbnetfs & FreeNX Date: Fri, 24 Jul 2009 15:58:02 +0600 Message-ID: <4A6985AA.9020304@nevod.ru> (raw) In-Reply-To: <4d6cc2f20907220342h42c73f8bxc3f6cc5fc45f2fb6@mail.gmail.com> Полученное решение: В 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
next prev parent reply other threads:[~2009-07-24 9:58 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-22 9:37 Шигапов Ринат 2009-07-22 10:42 ` Boris Savelev 2009-07-24 9:58 ` Шигапов Ринат [this message] 2009-07-29 10:31 ` Шигапов Ринат
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4A6985AA.9020304@nevod.ru \ --to=srk@nevod.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git