Skip to content

how to use on windows? #1006

Open
Open

Description

@LCHONE

I have installed sshuttle and pydivert by pip(python3.12), and use command "sshuttle --method windivert -r ubuntu@xxxxxx 10.0.0.0/8 ", but there is also error "ModuleNotFoundError: No module named 'fcntl'"

Activity

  1. nom3ad commented on Nov 12, 2024

    @nom3ad
    Contributor

    Current master branch doesn't have fcntl imports in Windows code path.
    Note that windivert is for Windows host, and won't work on WSL as it's Linux VM.
    What'ssshuttle --version ?

  2. felipecrs commented on Dec 19, 2024

    @felipecrs

    I'm experiencing the very same error. I just did pip install pydivert sshuttle.

    pydivert 2.1.0
    sshuttle 1.1.2

  3. felipecrs commented on Dec 19, 2024

    @felipecrs

    This is the solution:

    pip install --upgrade pydivert git+https://github.com/sshuttle/sshuttle@master
    
  4. thedunston commented on Feb 28, 2025

    @thedunston

    I was able to get this working using the portable version of Python and following the instructions here:

    Python Embedded on Windows 10 except I used Python 3.12.1. I created the virtual environment, installed sshuttle and pydivert and got the Windows firewall popup, connected and am routing traffic.

    I had to run it from an elevated terminal, but I've had no issues for the last several days. I am running on Windows 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions