通用
查看网络信息
ifconfig (windows中是 ipconfig)
ip addr
Ubuntu
防火墙软件: iptables
ufw status
ufw enable
ufw disable
设置代理
将如下两行添加到 ~/.bashrc
export http_proxy=10.10.21.28:1080
export https_proxy=10.10.21.28:1080
然后
source ~/.bashrc
验证
curl https://www.google.com.hk/