@
jacy 额,还少了一条规则允许从服务器返回的数据,总的是
iptables -t nat -A PREROUTING -p tcp --dport https -d 转发服务器的IP -j DNAT --to-destination Google的IP
iptables -t nat -A POSTROUTING -p tcp --dport https -d Google的IP -j SNAT --to-source 转发服务器的IP
iptables -t filter -P FORWARD DROP
iptables -t filter -A FORWARD -p tcp --dport https -d Google的IP -j ACCEPT
iptables -t filter -A FORWARD -p tcp --sport https -s Google的IP -j ACCEPT # 刚才少了这条
sysctl net.ipv4.ip_forward=1