我有一个运行 Winodws VM (VirtualBox) 的 Digital Ocean VPS,我只想通过每天更换的单个 Socks5 路由流量...唯一的方法是(似乎)是将 VM 桥接为虚拟机适配器并让该虚拟适配器通过远程 Socks5 进行路由。
我是一个 unix 菜鸟,不知道如何正确执行此操作,我在 questions/330/running-a-virtual-machine-vm-that-can-only-connect-through-tor/376 上看到了使用 TOR 完成的操作但我对 TOR 不感兴趣,我几乎不知道如何正确创建虚拟适配器...我是否需要某种类型的 SSH 隧道到映射到虚拟适配器的 Socks5,然后使用“brctl”建立桥接?
我创建了一个虚拟适配器“Br0”,如下所示,并尝试使用连接代理,但无法使其工作。
```
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::30a0:95ff:fe59:381f prefixlen 64 scopeid 0x20<link>
ether 32:a0:95:59:38:1f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 162 bytes 26949 (26.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 165.22.37.x netmask 255.255.240.0 broadcast 165.22.47.255
inet6 fe80::7455:51ff:fe61:ccd prefixlen 64 scopeid 0x20<link>
inet6 2604:a880:800:c1::193:f001 prefixlen 64 scopeid 0x0<global>
ether 76:55:51:61:0c:cd txqueuelen 1000 (Ethernet)
RX packets 14072 bytes 1273849 (1.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30801 bytes 6612660 (6.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.17.0.x netmask 255.255.0.0 broadcast 10.17.255.255
ether 76:55:51:61:0c:cd txqueuelen 1000 (Ethernet)
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 17226 bytes 5385950 (5.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17226 bytes 5385950 (5.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
```