5,661,954 members and growing! (265 online)
Email Password   helpLost your password?
General Programming » Internet / Network » Proxy / Firewall     Intermediate

SOCKS Proxy + SSL Tunnel

By Svetoslav Chekanov

A full featured SOCKS 4 & 5 proxy server written in Java.
Java, Java, Dev

Posted: 22 Feb 2000
Updated: 22 Feb 2000
Views: 580,383
Bookmarked: 48 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
59 votes for this Article.
Popularity: 8.09 Rating: 4.57 out of 5
1 vote, 3.1%
1
1 vote, 3.1%
2
2 votes, 6.3%
3
4 votes, 12.5%
4
24 votes, 75.0%
5
  • Download source files - 41 Kb
  • The SSH Proxy is full featured SOCKS Proxy written in Java.
    It supports both versions 4 and 5 of Socks protocol.

    Additional feature that I have implemented in SSH Proxy is the possibility to make TCP connections through an HTTP-SSL Tunnel.

    SSH Proxy works in two modes:

    1. Normal mode - works as normal SOCKS Proxy
    2. TCP via SHTTP mode - Works as SOCKS Proxy but makes SOCKS TCP connections via HTTP-SSL Tunnel Proxy.

    Sample Image 1
    Sample Image 2

    The TCP via SHTTP mode is very useful when user woks behind HTTP Proxy and hasn't any other acces to the Internet. In this case the user can run SSH Proxy on his/her machine, and configure it to use TCP connections via HTTP-SSL tunnels which are commonly supported by most proxies. This way he/she will be able to use other internet applications, eg. IRC, FTP, e-mail, telnet, HTTP (of course :-) but without caching and etc.

    But if SSH Proxy works behind a firewall (in SSL tunnel mode) - the other SOCKS commands BIND and UDP association will not work.

    SSH Proxy loads its configuration from file config.txt which should be in the directory of the SSH Proxy

    # Copyright (c) 2000 Svetoslav Tchekanov (swetoslav@iname.com)
    #-------------------------------
    #EnableLog=no
    EnableLog=yes
    #-------------------------------
    SOCKSPort=8888
    #-------------------------------
    #UseSHttpProxy=1
    UseSHttpProxy=0
    SHttpProxyHost=<SHTTP Proxy Host/IP>
    SHttpProxyPort=<SHTTP Proxy Port>
    

    The variables UseSHttpProxy and EnableLog are logical. So you can specify their values either by 1, 0, Yes or No.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Svetoslav Chekanov


    I am a software development engineer.
    I am a programmer.
    And my projects can explain what I am.


    Programming Languages: C/C++ - 10 yr., Java - 6 yr., Delphi -7 yr., HTML - 6 yr., CGI, Servlets, EJB, Assembly, CNC G-language
    RDBMS Microsoft SQL Server 7.0, MySQL, MS Access, ODBC, JDBC

    Networking: TCP/IP, Winsock, HTTP, HTTPS, FTP, SMTP, POP3, TELNET, IMAP, SOCKS 4/5, RTSP, CGI, MS Internet Information Server

    The great projects, ordered by greatness:
  • Java Virtual Machine

  • Application Server + Internet Proxy Services

  • Instant Messenger - like MSN and Yahoo ones

  • Voicer - Freeware VoIP application

  • SSH Proxy - SOCKS 4&5 Proxy that can relay TCP Connections through HTTPS Proxy

  • HTTP Proxy

  • SOCKS proxy

  • Battery Test Suite

  • Internet Address Book - Synchronizes local Outlook, Outlook Express, Netscape and Eudora address book with database on WEB server located in the Internet

  • Advertising Screen Saver - Screen Saver that sends e-mails and gain prizes for the computer owner

  • Proxy Send Mail - Send Mail service that can send e-mails through SOCKS 4, SOCKS 5 and HTTPS proxies

  • Proxy Hunter - Very fast, and also works as proxy checker

  • Java Disassembler

  • CNC Gravuring System

  • Little DOS games - when I was schoolboy


  • More information about my current work you can find here:
    www.d-bross.com
    www.d-voicer.com
    www.d-tunnel.com


    Occupation: Web Developer
    Location: Bulgaria Bulgaria

    Other popular Internet / Network articles:

    Article Top
    Sign Up to vote for this article
    You must Sign In to use this message board.
    FAQ FAQ Noise ToleranceSearch Search Messages 
     Layout  Per page   
     Msgs 1 to 25 of 155 (Total in Forum: 155) (Refresh)FirstPrevNext
    QuestionHow do I run the applet?memberDarklomba11:44 1 Aug '07  
    Generalprotocol detailed specificationsmemberavinu22:58 28 Jul '07  
    QuestionHTTP TunnelmemberPriyanka Bindumahavan23:26 29 Jan '07  
    GeneralNew problem.. need help.memberaddagol3:52 14 Dec '06  
    GeneralRe: New problem.. need help.memberSvetoslav Chekanov21:20 5 Aug '07  
    GeneralThank You and One questionmemberJoshi Pranay7:54 22 Oct '06  
    GeneralRe: Thank You and One questionmemberSvetoslav Chekanov6:38 23 Oct '06  
    GeneralRe: Thank You and One questionmemberJoshi Pranay8:45 23 Oct '06  
    GeneralRe: Thank You and One questionmemberSvetoslav Chekanov22:01 23 Oct '06  
    GeneralRe: Thank You and One questionmemberJoshi Pranay9:25 25 Oct '06  
    Generalabout firewall in javamembermeetbecks7:00 11 Oct '06  
    Generaloperating system usermembervanichopra18:53 23 May '06  
    GeneralABOUT UDP its urgentmemberpearlstar22:59 17 May '06  
    GeneralUDP supportmemberpearlstar22:13 9 May '06  
    GeneralRe: UDP supportmemberSvetoslav Chekanov23:37 17 May '06  
    Generalauthentication by name/passpordmemberpearlstar9:47 9 May '06  
    GeneralRe: authentication by name/passpordmemberSvetoslav Chekanov21:57 9 May '06  
    Generalneeded help to understand concept of socketmemberpearlstar11:03 5 Apr '06  
    GeneralRe: needed help to understand concept of socketmemberSvetoslav Chekanov23:30 5 Apr '06  
    GeneralRe: needed help to understand concept of socketmemberpearlstar5:37 7 Apr '06  
    GeneralHow to use socks5memberpearlstar21:36 2 Apr '06  
    GeneralRe: How to use socks5memberSvetoslav Chekanov21:41 2 Apr '06  
    GeneralA new Problemmemberjaramillo.santi18:03 23 Mar '06  
    GeneralRe: A new Problemmemberjaramillo.santi18:17 23 Mar '06  
    GeneralProblem...memberjaramillo.santi18:59 24 Jan '06  

    General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    PermaLink | Privacy | Terms of Use
    Last Updated: 22 Feb 2000
    Editor: Valerie Bradley
    Copyright 2000 by Svetoslav Chekanov
    Everything else Copyright © CodeProject, 1999-2008
    Java | Advertise on the Code Project