UNIX socket redirection

Forum / NoMachine Cloud Server Products / UNIX socket redirection

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10481
    snejok
    Participant

    Hello, dear NoMachine!

    How can I redirect UNIX domain socket through nxplayer as like tcp port redirection?

    I need to redirect pcsc service to server:

    http://ludovicrousseau.blogspot.ru/2010/11/pcsc-client-and-server-on-two-different.html

    As I understand I can workaround this by choosing ssh protocol and specifying ssh-wrapper script in nxplayer cfg.

     

     

    #10491
    reza
    Participant

    It’s currently not possible to redirect UNIX domain sockets.

    You can workaround this by binding them to TCP ports with help of nc or socat.

    And yes, you can also play with ssh to accomplish it.

     

    But what about NoMachine SmartCard sharing?

    It may be a option for you.

    https://www.nomachine.com/DT10K00060&dn=#4.5

    #10533
    snejok
    Participant

    Hello, reza!

    There is one problem with NoMachine SmartCard sharing:

    I don’t understand how to find smart card reader on server side after redirection: 🙂
    a) I installed pcscd, opensc and libasedrive-usb package to Ubuntu 12.04 client and server sides

    b) on client: # opensc-tool -l

    # Detected readers (pcsc)

    Nr.  Card  Features  Name

    0    Yes             AseIIIeUSB 00 00

    and

    # pkcs11-tool –module /usr/lib/opensc-pkcs11.so  -L

    Available slots:

    Slot 0 (0xffffffff): Virtual hotplug slot

    (empty)

    Slot 1 (0x1): AseIIIeUSB 00 00

    (empty)

    c) I launched Nxplayer and said him to use /usr/lib/opensc-pkcs11.so security module, after that nxplayer redirected smart card to server

    d) on server after redirection:

    # opensc-tool -l

    No smart card readers found.

    and

    # pkcs11-tool –module /usr/lib/opensc-pkcs11.so -L

    Available slots:

    Slot 0 (0xffffffffffffffff): Virtual hotplug slot

    (empty)

    and

    # pkcs11-tool –module /usr/NX/lib/libpkcs11.so -L

    error: PKCS11 function C_Initialize failed: rv = CKR_FUNCTION_FAILED (0x6)

    Aborting.

    Am I doing it wrong? 🙂

    #10555
    frog
    Participant

    Hello,

     

    in order to connect properly the SmartCard device, please follow these steps:

     

    1. Start the NoMachine session.

    2. Open the NoMachine menu inside the session (ctrl+alt+0 or click on

    the page peel in the upper right corner of the window).

    3. In the menu click on Devices -> SmartCards

    3. Pick your smardcard and click ‘mount’

    4. Inside the NoMachine session open a terminal and paste this command:

     

    pkcs11-tool –module /usr/NX/lib/libpkcs11.so -L

     

    It’s fundamental to run this command inside the session when the smartcard is already connected.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic was marked as solved, you can't post.