dante-server是一个很好的socks4/5代理服务器软件。

  • 使用apt-get安装
 
1
apt-getinstall dante-server
  • 添加一个用户
 
1
2
useradd proxyuser
passwd proxyuser
  • 禁止proxyuser用户登录系统(安全考虑)
 
1
sudo vim/etc/passwd

将proxyuser的shell改成 /bin/false

  • 配置danted.conf
 
1
2
sudo mv/etc/danted.conf/etc/danted.conf_old
sudo vim/etc/danted.conf

输入以下内容:

 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
#logoutput:stderr
#logoutput:syslog
logoutput:/var/log/sockd/sockd.log
 
internal:0.0.0.0port=10080
 
external:eth0
 
#method:username none
#method:pam
method:username
 
user.privileged:root
 
user.notprivileged:proxyuser
 
user.libwrap:nobody
 
compatibility:sameport
compatibility:reuseaddr
extension:bind
 
clientpass{
 
        from:0.0.0.0/0to:0.0.0.0/0
 
        log:connect disconnect error
 
}
 
pass{
 
        from:0.0.0.0/0to:0.0.0.0/0
 
        command:bind
 
        log:connect disconnect error
 
}
 
pass{
 
                from:0.0.0.0/0to:0.0.0.0/0
 
                command:bindreply udpreply
 
                log:connect error
 
}
 
pass{
 
                from:0.0.0.0/0to:0.0.0.0/0port1-65535
 
                protocol:tcp udp
 
}
 
pass{
 
                from:0.0.0.0/0to:0.0.0.0/0port1-65535
 
                command:udpassociate
 
}
 
#block{
#from:0.0.0.0/0to:0.0.0.0/0port1-65535
#protocol:tcp udp
#log:connect erro
#}
  • 创建log文件夹
 
1
mkdir/var/log/sockd
  • 启动dante-server
 
1
/etc/init.d/danted start
  • 查看是否监听成功:
 
1
netstat-anp|grep10080

现在你就可以使用socks5了

Ubuntu 12.04 安装socks5代理服务器dante-server的更多相关文章

  1. (转)ubuntu 12.04搭建Adobe Flash Media Server服务

    破解版传送门:http://fms45.cuplayer.com/fms4download.html 福利:1462-5247-1705-7678-8379-5590 下载解压 cd进目录,./ins ...

  2. ubuntu 12.04 安装Docker 实战

    2016-3-8 从网络服务商那里申请到一台Ubuntu测试服务器,用来测试安装Docker环境. 注:本人初学Docker,对Linux命令也仅是稍稍了解,如有错误,烦请告知. 查看系统相关信息 可 ...

  3. Ubuntu 12.04 安装 Apache2+PHP5+MySQL

    LAMP是Linux web服务器组合套装的缩写,分别是Apache+MySQL+PHP.此教程教大家如何在Ubuntu 12.04 LTS server 上安装Apache2服务器,包括PHP5(m ...

  4. Ubuntu 12.04 安装MySQL

    本文地址:http://www.cnblogs.com/yhLinux/p/4012689.html 本文适合新手入门. 本文是对 Ubuntu 12.04 环境下安装 MySQL 的记录,通过这两天 ...

  5. ubuntu 12.04 安装 redis

    原文地址:http://ijonas.com/software-development/nosql/412/ 1 Installing Redis 2.6.x on Ubuntu 12.04 and ...

  6. 【转】Ubuntu 12.04 安装JDK 8和Eclipse

    原文网址:http://blog.csdn.net/yechaodechuntian/article/details/24853813 Ubuntu 12.04 下安装 JDK8 方法一:(缺点是安装 ...

  7. Ubuntu 12.04 安装JDK 8和Eclipse

    Ubuntu 12.04 下安装 JDK8 方法一:(缺点是安装时附加openjdk等大量程序并无法去除,长处是安装简单) $ sudo apt-get install eclipse 方法二:(长处 ...

  8. Ubuntu 12.04安装Adobe Reader

    原本从Adobe 官方网站下载了 Adobe Reader, 是个rpm包,先用agt-get 装了rpm(sudo apt-get install rpm), 一安装(rpm -ivh AdobeR ...

  9. ubuntu 12.04 安装wireshark

    轉載自http://blog.chinaunix.net/uid-27064719-id-3786626.html 在ubuntu 12.04下安装wireshark软件之后,打开wireshark开 ...

随机推荐

  1. LeetCode算法题-Convert Sorted Array to Binary Search Tree(Java实现)

    这是悦乐书的第166次更新,第168篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第25题(顺位题号是108).给定一个数组,其中元素按升序排序,将其转换为高度平衡的二叉 ...

  2. 2293: Distribution Center 中南多校

    Description The factory of the Impractically Complicated Products Corporation has many manufacturing ...

  3. spring boot启动报错

    Exception encountered during context initialization - cancelling refresh attempt: org.springframewor ...

  4. TFT2.2

    https://cdn-learn.adafruit.com/downloads/pdf/2-2-tft-display.pdf

  5. 腾讯app自动化测试读后感

    1.播放器播放视频,如何验证视频播放成功? 1.1播放时间>=0,获取Video标签里的current time判断. 1.2有播放画面,截屏获取. 框架自带的截图功能, 1.3有播放声音,获取 ...

  6. vue-electron脚手架

    vue-electron官方文档(中文):https://simulatedgreg.gitbooks.io/electron-vue/content/cnvue-electron官方文档(英文):h ...

  7. Python+Pycharm—学习—pip

    1.pip是干什么的? 2.pip怎么安装? 3.pip怎么用?

  8. Apollo内核版本安装

    参考:https://github.com/ApolloAuto/apollo/blob/master/docs/quickstart/apollo_software_installation_gui ...

  9. PEP8 python规范神器

    如需转载,请注明出处:小婷儿的博客:https://www.cnblogs.com/xxtalhr/p/10645992.html 一.Jupyter notebook 篇 Jupyter noteb ...

  10. Python这么强大, 怎样才能快速入坑?

    作为一种年轻的编程语言,Python为何能在短短几年的时间内就以迅雷不及掩耳之势驰骋编程界?答案很简单,在人工智能时代,AlphaGo 都在使用的 Python语言,是最接近 AI 的编程语言. 随着 ...