unbuntu命令行使用socks代理

目前国内gfw越来越严格的形势下, 翻q最稳定的还是socks协议了,然而在ubuntu下,一般用代理的地方是浏览器,但有时候命令行中也需要连google服务器.但ubuntu下我没找到能设置全局socks代理的地方,就想着怎么单独解决命令行下使用socks代理的问题.后来发现了一个命令socksify,有同样问题的可以试试.


  • 安装

    sudo apt-get install dante-client

  • 配置 /etc/dante.conf , 主要是下面这段去掉注释改一下

# IP address 10.1.1.1, port 1080.   Note that unless you have
# specified a direct connection for DNS, or the socksserver is resolvable
# without network traffic, you can't give a hostname for the socksserver,
# you must give a IP address.  (the reasons for that are logical enough,
# you would create a loop otherwise.)
route {
    from: 0.0.0.0/0   to: 0.0.0.0/0   via: 127.0.0.1 port = 1080
    p
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值