设置 VPN 终止开关后,我发现有些东西不起作用:aptitude、使用请求的 python 脚本和 wget。(curl 可以工作)。有人知道为什么吗?
我的 ufw 设置是:
Status: active
To Action From
-- ------ ----
Anywhere on tun0 ALLOW Anywhere
8.8.8.8 ALLOW Anywhere
8.8.4.4 ALLOW Anywhere
Anywhere ALLOW 192.168.0.0/24
Anywhere ALLOW 224.0.0.0/24
127.0.0.1 ALLOW Anywhere
Anywhere (v6) on tun0 ALLOW Anywhere (v6)
ff01::/16 ALLOW Anywhere (v6)
ff02::/16 ALLOW Anywhere (v6)
ff05::/16 ALLOW Anywhere (v6)
::1 ALLOW Anywhere (v6)
Anywhere ALLOW OUT Anywhere on tun0
VPN IP ALLOW OUT Anywhere
192.168.0.0/24 ALLOW OUT Anywhere
8.8.4.4 ALLOW OUT Anywhere
8.8.8.8 ALLOW OUT Anywhere
224.0.0.0/24 ALLOW OUT Anywhere
VPN DNS IP ALLOW OUT Anywhere
127.0.0.1 ALLOW OUT Anywhere
Anywhere (v6) ALLOW OUT Anywhere (v6) on tun0
ff01::/16 ALLOW OUT Anywhere (v6)
ff02::/16 ALLOW OUT Anywhere (v6)
ff05::/16 ALLOW OUT Anywhere (v6)
::1 ALLOW OUT Anywhere (v6)
我添加了一些 DNS IP,以便唤醒时互联网连接速度更快。
我正在测试的python脚本只有3行:
import requests
r = requests.get("http://www.google.com")
print "worked", len(r.text)
当我运行它时,dmesg -w
我认为它正在尝试在无线接口上运行:
[UFW BLOCK] IN= OUT=wlp2s0 SRC=2605:e000:2e44:dc00:0000:0000:0000:0005 DST=2607:f8b0:4000:0800:0000:0000:0000:2004 LEN=80 TC=0 HOPLIMIT=64 FLOWLBL=384122 PROTO=TCP SPT=40074 DPT=80 WINDOW=28800 RES=0x00 SYN URGP=0
我可以改变什么来让它工作吗?