Skip to content

fatal error on macOS when using --dns or --ns-hosts option #491

@hth2

Description

@hth2

when running sshuttle on mac, I get the following error:

sshuttle -r remote-host --ns-hosts=abc 192.168.1.0/24
client: Connected.
fatal: ['pfctl', '-a', 'sshuttle-12300', '-f', '/dev/stdin'] returned 1
client: fatal: cleanup: ['sudo', '-p', '[local sudo] Password: ', '/usr/bin/env', 'PYTHONPATH=/usr/local/Cellar/sshuttle/1.0.3/libexec/lib/python3.8/site-packages', '/usr/local/Cellar/sshuttle/1.0.3/libexec/bin/python3.8', '/usr/local/bin/sshuttle', '--method', 'auto', '--firewall'] returned 99

I can sudo without password, but still sshuttle expects a password for sudo.

I also tried to run sshuttle as sudo, to get around the necessity to enter password. This time another error:

sudo sshuttle -e 'ssh -i /Users/xyz/.ssh/id_rsa' -r remote-host --ns-hosts=abc 192.168.1.0/24
client: Connected.
fatal: ['pfctl', '-a', 'sshuttle-12300', '-f', '/dev/stdin'] returned 1
client: fatal: cleanup: ['/usr/local/Cellar/sshuttle/1.0.3/libexec/bin/python3.8', '/usr/local/bin/sshuttle', '--method', 'auto', '--firewall'] returned 99

Any hint what else I can try? I am using sshuttle version 1.0.3, installed using homebrew

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