连接到GCP实例的静态外部IP(VPN)时发生Shuttle抛出错误99

2024-05-21 20:13:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我有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

Tags: to实例clientiptableslinuxusrlocal错误