免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2877 | 回复: 1
打印 上一主题 下一主题

[proxy] socks5代理配置实例分享(成功) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-07 12:16 |只看该作者 |倒序浏览
1,搭建环境

Red Hat Enterprise Linux AS release 4 (Nahant Update 4)+socks5-1.0r11-3.i386.rpm

2,安装
rpm -ivh socks5-1.0r11-3.i386.rpm

3,配置

touch /etc/socks5.conf
# A Socks5 Config file for a normal, single homed server
auth    -       -       u
set SOCKS5_V4SUPPORT
#
permit  u       -       -       -       -       -       zhq


touch /etc/socks5.passwd
zhq zhq


4,其他

vi /etc/init.d/socks5
#!/bin/sh
#
# chkconfig: 345 86 24
# description: This script takes care of starting and stopping socks5.
#

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/sbin/socks5 ] || exit 0

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting socks5: "
        /usr/sbin/socks5 -t -s 2> /var/log/socks5(修改后)
        touch /var/lock/subsys/socks5
        echo "Good Job,Boy~"
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down socks5: "
        stopsocks -KILL(修改后)
        echo "done"
        rm -f /var/lock/subsys/socks5
        ;;
  restart|reload)
        $0 stop
        $0 start
        ;;
  status)
        status socks5
"/etc/init.d/socks5" 46L, 899C

加入自启动:vi /etc/rc.local
添加:/etc/init.d/socks5 start

论坛徽章:
0
2 [报告]
发表于 2007-07-07 16:05 |只看该作者
虽然我看不懂,但是支持一下。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP