gpt4 book ai didi

python - 连接到GCP实例的静态外部IP(VPN)时,SSHUTTLE抛出错误99

转载 作者:行者123 更新时间:2023-12-02 20:20:58 26 4
gpt4 key购买 nike

我有4个Google云实例,并将它们配置为我的hadoop集群。我将静态外部IP设置为要从我的Linux机器(Linux的Windows子系统)连接的实例之一。我尝试使用 sshuttle 服务作为 VPN连接到该实例,以便可以通过此VPN访问群集中的其他实例。连接到我的实例时,Shuttle抛出错误。

[错误]

sshuttle -r username@mystaticip 0.0.0.0/0 --ssh-cmd "ssh -i ~/.ssh/google_compute_engine"
[local sudo] Password:
client: Connected.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
fatal: ['iptables', '-t', 'nat', '-nL'] returned 3
client: fatal: cleanup: ['sudo', '-p', '[local sudo] Password: ', 'PYTHONPATH=/usr/lib/python3/dist-packages', '--', '/usr/bin/python3', '/usr/bin/sshuttle', '--method', 'auto', '--firewall'] returned 99

最佳答案

到目前为止,Ubuntu上的 Linux的Windows子系统(WSL)不支持sshuttle。似乎WSL中的Ubuntu并不完全支持sshuttle调用的iptables命令。

关于python - 连接到GCP实例的静态外部IP(VPN)时,SSHUTTLE抛出错误99,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60560451/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com