亚洲精品日韩欧美_欧美二区乱c少妇_中文字幕日韩在线播放_日韩不卡中文字幕

English |
  • 美國(guó)VPS主機(jī)推薦
  • |
  • 代購(gòu)服務(wù)
  • |
  • 10美元以下VPS
  • |
  • VPS新手指南/教程
  • |
  • 留言板
  • |
  • 關(guān)于
  • | 登錄 |

    Linux VPS上使用kingate搭建socks代理服務(wù)器

    2011年04月8日 上午 | 作者:VPS偵探

    kingate是一位國(guó)人開(kāi)發(fā)的代理服務(wù)器,支持http,socks,ftp等多種協(xié)議。支持多線程、tcp端口映射、規(guī)則控制、時(shí)間控制、用戶認(rèn)證、http管理等功能。

    kingate官網(wǎng):http://sourceforge.net/projects/kingate/

    安裝所需的依賴包

    Debian:

    apt-get install build-essential automake make gcc g++

    CentOS:

    yum install make automake gcc gcc-c++ gcc-g77

    安裝kingate

    wget http://softlayer.dl.sourceforge.net/project/kingate/kingate/2.0/kingate-2.0.tar.gz

    tar xzf kingate-2.0.tar.gz

    cd kingate-2.0/

    ./configure --prefix=/usr/local/kingate

    make && make install

    配置kingate

    修改/usr/local/kingate/etc/kingate.conf 為以下內(nèi)容:

    http off

    ftp off

    pop3 off

    smtp off

    telnet off

    socks on

    mms off

    rtsp off

    manage on

    max 2000

    max_per_ip 0

    min_free_thread 3

    http_port 8082

    http_accelerate off

    x_forwarded_for on

    http_time_out 30

    ftp_port 2121

    ftp_time_out 300

    pop3_port 1100

    pop3_time_out 300

    smtp_port 2525

    smtp_time_out 300

    telnet_port 2323

    telnet_time_out 300

    socks_port 20120

    socks_time_out 300

    socks5_user off

    mms_port 1755

    mms_time_out 300

    rtsp_port 5540

    rtsp_time_out 300

    manage_port 8822

    manage_time_out 300

    log_model user

    log_level 0

    log_rotate {0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * }

    log_close_msg on

    mem_min_cache 50m

    mem_max_cache 12m

    disk_min_cache 20m

    disk_max_cache 30m

    use_disk_cache off

    refresh never

    refresh_time 300

    user_time_out 0

    mem_cache 50m

    disk_cache 100m

    max_deny_per_ip 0

    max_queue_thread 15

    min_limit_speed_size 1m

    limit_speed 20k

    max_request 50

    total_seconds 10

    bind_addr

    run_user

    insert_via off

    以上配置中,socks on 表示啟用socks代理(也可以根據(jù)你自己的需求開(kāi)啟其他類型的代理),socks_port 20120 表示socks代理的端口。manage on 為啟用http管理,manage_port 8822 為http管理的端口。強(qiáng)烈建議修改端口號(hào)!

    kingate啟動(dòng)及管理

    下載啟動(dòng)腳本及添加權(quán)限

    wget?http://soft.vpser.net/proxy/kingate/kingate.init.d

    mv kingate.init.d /etc/init.d/kingate

    chmod +x /etc/init.d/kingate

    kingate管理

    啟動(dòng)kingate:

    /etc/init.d/kingate start

    關(guān)閉kingate:

    /etc/init.d/kingate stop

    重啟kingate:

    /etc/init.d/kingate restart

    http管理

    管理地址:http://ip:8822 ,如果修改過(guò)配置,8822端口修改為你設(shè)置的端口號(hào),默認(rèn)用戶名為root,密碼為kingate。

    加入開(kāi)機(jī)啟動(dòng)

    Debian執(zhí)行:

    update-rc.d -f kingate defaults

    CentOS執(zhí)行:

    chkconfig --level 345 kingate on

    客戶端設(shè)置

    這里以dropbox為例:

    如有問(wèn)題歡迎在本文或論壇反饋!

    原創(chuàng)文章謝絕轉(zhuǎn)載!

    >>轉(zhuǎn)載請(qǐng)注明出處:VPS偵探 本文鏈接地址:http://m.0794baidu.com/build/linux-vps-use-kingate-install-proxy-server.html
    VPS偵探推薦:
    遨游主機(jī)VultrLinode搬瓦工LOCVPSKVMLAHOSTKVMHostXen80VPS美國(guó)VPS主機(jī),國(guó)內(nèi)推薦騰訊云阿里云

    發(fā)表評(píng)論

    *必填

    *必填 (不會(huì)被公開(kāi))

    評(píng)論(29條評(píng)論)

    1. littlewater說(shuō)道:

      回復(fù)7樓問(wèn)題:

      這個(gè)問(wèn)題今天仔細(xì)看了一把,估計(jì)作者也知道這毛病所以提供了-f的選項(xiàng)

      需要知道安裝目錄,然后直接運(yùn)行加-f參數(shù)可以重置,默認(rèn)的話:

      /usr/local/kingate/bin/kingate -f

      成功啟動(dòng)之后再重新開(kāi)就好了。

    2. kiss說(shuō)道:

      wget http://ncu.dl.sourceforge.net/project/kingate/kingate/2.1/kingate-2.1.tar.gz
      tra xzf kingate-2.1.tar.gz
      cd kingate-2.1/
      ./configure --prefix=/usr/local/kingate
      make && make install

    3. hzqim說(shuō)道:

      2.1的已經(jīng)發(fā)布,但在debian上編程過(guò)程中出錯(cuò),用戶2.0就成功了,但是安裝成功后還要怎樣設(shè)置?http后臺(tái)能進(jìn)去,但是代理上不了。

    4. VPSer說(shuō)道:

      @新手, 登錄管理界面加

    5. 新手說(shuō)道:

      軍哥,成功了。為什么是透明的代理呀,怎么加賬號(hào)密碼哦。。。。

    6. ltns說(shuō)道:

      我這里安裝后,checkip.org顯示的vps的ip,而checkip.dyndns.org顯示卻還是實(shí)際的ip,試了一下翻墻無(wú)效,看樣子是透明代理

    7. ltns說(shuō)道:

      我安裝后,checkip.org顯示的是vps的地址,而通過(guò)checkip.dyndns.org卻還是實(shí)際的地址,實(shí)際翻墻還是會(huì)被墻

    8. VPSer說(shuō)道:

      @雨蕁, 上下都消耗vps的流量。

    9. 雨蕁說(shuō)道:

      軍哥,這個(gè)代理上去后 上網(wǎng)和下載產(chǎn)生的流量是VPS的嗎,還是不會(huì)損耗VPS一丁點(diǎn)的流量

    10. sober說(shuō)道:

      /etc/init.d/kingate start
      Starting kingate: kingate 2.0 Author king(email:khj99@tom.com)
      http://sourceforge.net/projects/kingate/
      sizeof fd_set is:128
      start error,have another kingate (pid=6141) running.
      try (kingate -q) to close it.
      if you are sure of none kingate be running,try (kingate -f) to start server.

      這是怎么情況?我重啟了還是這樣,而且那個(gè)pid=6141 進(jìn)程壓根沒(méi)有……

    11. 浙濱浪子說(shuō)道:

      為啥我裝完以后,瀏覽器的IP上查IP的網(wǎng)站查發(fā)現(xiàn)已經(jīng)是我美國(guó)的VPS的IP了,但還是上不了被墻的網(wǎng)站啊。。。
      難道是GFW神器升級(jí),這種東西根本穿不透?
      注:在vps上能Ping通那些網(wǎng)站,應(yīng)該是配置或者傳輸過(guò)程中出了一點(diǎn)問(wèn)題

    12. VPSer說(shuō)道:

      @istef, 應(yīng)該是代碼的問(wèn)題,不太好辦,要不找個(gè)deb或rpm包試試吧

    13. istef說(shuō)道:

      @VPSer 編譯過(guò)程都在下面了,幫忙看看是哪里出了問(wèn)題,謝謝
      davidbeck@yardvps:~/kingate-2.0# uname && uname -r
      Linux
      2.6.32-305-ec2
      davidbeck@yardvps:~/kingate-2.0# ./configure --prefix=/usr/local/kingate
      checking build system type... x86_64-unknown-linux-gnu
      checking host system type... x86_64-unknown-linux-gnu
      checking target system type... x86_64-unknown-linux-gnu
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for gawk... no
      checking for mawk... mawk
      checking whether make sets $(MAKE)... yes
      checking for g++... g++
      checking for C++ compiler default output file name... a.out
      checking whether the C++ compiler works... yes
      checking whether we are cross compiling... no
      checking for suffix of executables...
      checking for suffix of object files... o
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking for style of include used by make... GNU
      checking dependency style of g++... gcc3
      checking whether make sets $(MAKE)... (cached) yes
      checking for inline... inline
      checking how to run the C++ preprocessor... g++ -E
      checking for grep that handles long lines and -e... /bin/grep
      checking for egrep... /bin/grep -E
      checking for ANSI C header files... yes
      checking for sys/wait.h that is POSIX.1 compatible... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking arpa/inet.h usability... yes
      checking arpa/inet.h presence... yes
      checking for arpa/inet.h... yes
      checking fcntl.h usability... yes
      checking fcntl.h presence... yes
      checking for fcntl.h... yes
      checking for inttypes.h... (cached) yes
      checking locale.h usability... yes
      checking locale.h presence... yes
      checking for locale.h... yes
      checking netdb.h usability... yes
      checking netdb.h presence... yes
      checking for netdb.h... yes
      checking netinet/in.h usability... yes
      checking netinet/in.h presence... yes
      checking for netinet/in.h... yes
      checking for stdlib.h... (cached) yes
      checking for string.h... (cached) yes
      checking for strings.h... (cached) yes
      checking sys/file.h usability... yes
      checking sys/file.h presence... yes
      checking for sys/file.h... yes
      checking sys/ioctl.h usability... yes
      checking sys/ioctl.h presence... yes
      checking for sys/ioctl.h... yes
      checking sys/socket.h usability... yes
      checking sys/socket.h presence... yes
      checking for sys/socket.h... yes
      checking sys/time.h usability... yes
      checking sys/time.h presence... yes
      checking for sys/time.h... yes
      checking syslog.h usability... yes
      checking syslog.h presence... yes
      checking for syslog.h... yes
      checking for unistd.h... (cached) yes
      checking zlib.h usability... yes
      checking zlib.h presence... yes
      checking for zlib.h... yes
      checking dlfcn.h usability... yes
      checking dlfcn.h presence... yes
      checking for dlfcn.h... yes
      checking sstream usability... yes
      checking sstream presence... yes
      checking for sstream... yes
      checking for an ANSI C-conforming const... yes
      checking for uid_t in sys/types.h... yes
      checking for inline... (cached) inline
      checking for pid_t... yes
      checking for size_t... yes
      checking whether time.h and sys/time.h may both be included... yes
      checking whether struct tm is in sys/time.h or time.h... time.h
      checking for ctime_r have len... no
      checking for socklen_t... yes
      checking for u_long... yes
      checking for working memcmp... yes
      checking for sys/time.h... (cached) yes
      checking for unistd.h... (cached) yes
      checking for alarm... yes
      checking for working mktime... no
      checking whether strerror_r is declared... yes
      checking for strerror_r... yes
      checking whether strerror_r returns char *... yes
      checking for vprintf... yes
      checking for _doprnt... no
      checking for wait3 that fills in rusage... yes
      checking for gethostbyname_r... yes
      checking for gettimeofday... yes
      checking for inet_ntoa... yes
      checking for localtime_r... yes
      checking for memchr... yes
      checking for memset... yes
      checking for select... yes
      checking for socket... yes
      checking for strcasecmp... yes
      checking for strchr... yes
      checking for strdup... yes
      checking for strncasecmp... yes
      checking for strrchr... yes
      checking for strstr... yes
      checking for strtol... yes
      checking for ctime_r... yes
      checking for daemon... yes
      configure: creating ./config.status
      config.status: creating Makefile
      config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
      config.status: creating src/Makefile
      config.status: WARNING: 'src/Makefile.in' seems to ignore the --datarootdir setting
      config.status: creating src/config.h
      config.status: src/config.h is unchanged
      config.status: executing depfiles commands
      davidbeck@yardvps:~/kingate-2.0# make
      Making all in src
      make[1]: Entering directory `/davidbeck/kingate-2.0/src'
      make all-am
      make[2]: Entering directory `/davidbeck/kingate-2.0/src'
      if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O0 -D_REENTRANT -DLINUX -MT KConfig.o -MD -MP -MF ".deps/KConfig.Tpo" -c -o KConfig.o KConfig.cpp; \
      then mv -f ".deps/KConfig.Tpo" ".deps/KConfig.Po"; else rm -f ".deps/KConfig.Tpo"; exit 1; fi
      if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O0 -D_REENTRANT -DLINUX -MT http://ftp.o -MD -MP -MF ".deps/ftp.Tpo" -c -o http://ftp.o http://ftp.cpp; \
      then mv -f ".deps/ftp.Tpo" ".deps/ftp.Po"; else rm -f ".deps/ftp.Tpo"; exit 1; fi
      if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O0 -D_REENTRANT -DLINUX -MT allow_connect.o -MD -MP -MF ".deps/allow_connect.Tpo" -c -o allow_connect.o allow_connect.cpp; \
      then mv -f ".deps/allow_connect.Tpo" ".deps/allow_connect.Po"; else rm -f ".deps/allow_connect.Tpo"; exit 1; fi
      In file included from oops.h:666,
      from allow_connect.cpp:15:
      lib.h: In function 'int store_in_chain(char*, int, mem_obj*)':
      lib.h:184: warning: deprecated conversion from string constant to 'char*'
      lib.h:187: warning: deprecated conversion from string constant to 'char*'
      lib.h:191: warning: deprecated conversion from string constant to 'char*'
      allow_connect.cpp: In function 'unsigned int allow_connect2(mysocket*, int, const char*, int, long unsigned int&, bool, unsigned int)':
      allow_connect.cpp:44: error: cast from 'const char*' to 'int' loses precision
      allow_connect.cpp:68: error: cast from 'const char*' to 'int' loses precision
      make[2]: *** [allow_connect.o] Error 1
      make[2]: Leaving directory `/davidbeck/kingate-2.0/src'
      make[1]: *** [all] Error 2
      make[1]: Leaving directory `/davidbeck/kingate-2.0/src'
      make: *** [all-recursive] Error 1
      davidbeck@yardvps:~/kingate-2.0#

    主站蜘蛛池模板: 欧美日韩一区二区在线免费观看| 国产欧美久久久久| 亚洲爆乳无码专区| 久久偷窥视频| 97成人在线观看视频| 国产在线视频91| 欧美日韩精品免费看| 亚洲xxxx做受欧美| 国产成人精品999| 国产精品手机播放| 国产在线拍揄自揄视频不卡99| 免费国产成人看片在线| 日韩视频永久免费观看| 久久av高潮av| 久久久久天天天天| 久久另类ts人妖一区二区| 欧美激情亚洲国产| 午夜精品一区二区三区在线| 91精品国产91久久久久久吃药 | 国产欧美日韩小视频| 久久国产天堂福利天堂| 久青草国产97香蕉在线视频| 日韩免费观看网站| 午夜精品视频在线观看一区二区| 一区二区三区在线观看www| 91久久国产精品91久久性色| 国产精品二区在线观看| 国产精品视频永久免费播放| 国产精品自在线| 国产精品日本精品| 不卡中文字幕在线| 亚洲伊人婷婷| 日本三级久久久| 久久久中精品2020中文| 久久九九视频| 国产区欧美区日韩区| 国产精品夫妻激情| 亚洲欧美日韩综合一区| 日韩av在线一区二区三区| 欧美视频在线观看网站| 精品视频一区在线|