免费注册 查看新帖 |

Chinaunix

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

[proxy] 在AS4U4下建立的socks5服务经常进程丢失?请教各位。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-11 14:18 |只看该作者 |倒序浏览
在AS4U4下建立的socks5服务经常进程丢失?有时能坚持几天,有时一天就挂了。请教各位。。帮忙看看。。

这是log:
tail -10 socks5.log.old
18646:000000: TCP Connection Terminated: Abnormal (10.9.4.31:1053 to 125.40.24.119:8000) for user : 681738 bytes out, 290448 bytes in
19103:000000: TCP Connection Terminated: Abnormal (10.9.4.31:1111 to 222.36.91.121:307 for user : 2490896 bytes out, 3617778 bytes in
19027:000000: TCP Connection Terminated: Normal (10.9.4.31:4310 to 60.195.33.48:80) for user : 1805 bytes out, 34332 bytes in
18722:000000: TCP Connection Terminated: Normal (10.9.4.31:2023 to 60.195.33.48:80) for user : 38509 bytes out, 168111 bytes in
18956:000000: TCP Connection Terminated: Abnormal (10.9.4.31:3963 to 58.30.48.106:80) for user : 575680 bytes out, 84248 bytes in
18722:000000: TCP Connection Terminated: Abnormal (10.9.4.31:2037 to 122.89.48.98:17495) for user : 46489 bytes out, 240488 bytes in
18722:000000: TCP Connection Terminated: Abnormal (10.9.4.31:1767 to 122.89.48.98:17495) for user : 122732 bytes out, 157182 bytes in
18421:000000: TCP Connection Terminated: Abnormal (10.9.4.31:3933 to 221.9.61.137:80) for user : 35617 bytes out, 9619752 bytes in
16868:000000: server exiting: fork failed
16868:000000: Socks5 Exiting at: Wed Oct 10 21:35:56 2007


启动shell如下:
-bash-3.00$ more 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: "
        #daemon socks5
        /usr/sbin/socks5 -t -s 2> /opt/squid/var/logs/socks5.log &
        #touch /opt/squid/var/logs/socks5
        echo "socks5 start"
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down socks5: "
        /usr/sbin/stopsocks -KILL
        echo "done"
        rm -f /opt/squid/var/logs/socks5
        ;;
  restart|reload)
        $0 stop
        $0 start
        ;;
  status)
        status socks5
        ;;
  *)
        echo "Usage: socks5 {start|stop|status|restart|reload}"
        exit 1
esac

exit 0

conf文件如下:

-bash-3.00$ more socks5.conf
set SOCKS5_BINDINFC 10.9.1.13:1080
set SOCKS5_NOIDENT
set SOCKS5_TIMEOUT 15
set SOCKS5_V4SUPPORT
set SOCKS5_MAXCHILD 10
#deny - - 10.9.15.205/255.255.255.255   - - -
permit - - 10.9.0.0/255.255.0.0  - - -

论坛徽章:
0
2 [报告]
发表于 2007-10-23 17:53 |只看该作者
怎么没有人回复。。:(  自己顶一下先。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP