Click here to Skip to main content
13,249,504 members (42,685 online)
Click here to Skip to main content
Add your own
alternative version


79 bookmarked
Posted 22 Feb 2000

SOCKS Proxy + SSL Tunnel

, 22 Feb 2000
Rate this:
Please Sign up or sign in to vote.
A full featured SOCKS 4 & 5 proxy server written in Java.
  • 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 (
    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.


    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
    Technical Lead Brosix
    Bulgaria Bulgaria
    I am a software development engineer .

    Programming Languages: C/C++, Java, Delphi, HTML, 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

    Projects I have worked on:
  • Brosix
  • Screen-Sharing product
  • Video chat application
  • 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:

    You may also be interested in...

    Comments and Discussions

    Questionm_lock Pin
    Member 1113075123-Sep-15 20:10
    memberMember 1113075123-Sep-15 20:10 
    Questionhow to use Pin
    ShanLoly6-Feb-15 13:16
    memberShanLoly6-Feb-15 13:16 
    QuestionAct as proxy in a special way? Pin
    AshesOfTime17-Jun-13 3:05
    memberAshesOfTime17-Jun-13 3:05 
    AnswerRe: Act as proxy in a special way? Pin
    Svetoslav Chekanov18-Jun-13 22:01
    memberSvetoslav Chekanov18-Jun-13 22:01 
    AnswerRe: Act as proxy in a special way? Pin
    ShanLoly6-Feb-15 13:17
    memberShanLoly6-Feb-15 13:17 
    GeneralMy vote of 5 Pin
    Member 43208446-Jan-12 1:35
    memberMember 43208446-Jan-12 1:35 
    QuestionHow to change this application to a HTTPS proxy server? Pin
    shewo5-Dec-11 15:37
    membershewo5-Dec-11 15:37 
    QuestionGetting Error Because of Proxy Authentication Required Pin
    WindowsVsLinux15-Nov-11 0:09
    memberWindowsVsLinux15-Nov-11 0:09 
    AnswerRe: Getting Error Because of Proxy Authentication Required Pin
    WindowsVsLinux15-Nov-11 4:31
    memberWindowsVsLinux15-Nov-11 4:31 
    GeneralRe: Getting Error Because of Proxy Authentication Required Pin
    WindowsVsLinux15-Nov-11 10:55
    memberWindowsVsLinux15-Nov-11 10:55 
    GeneralMy vote of 5 Pin
    WindowsVsLinux13-Nov-11 13:01
    memberWindowsVsLinux13-Nov-11 13:01 
    GeneralDNS Query Pin
    kshitij22325-Mar-10 22:43
    memberkshitij22325-Mar-10 22:43 
    Questionhow to run this project & to see how it works Pin
    nuthanhebbar11-Jan-09 21:16
    membernuthanhebbar11-Jan-09 21:16 
    AnswerRe: how to run this project & to see how it works Pin
    Svetoslav Chekanov28-Mar-11 21:20
    memberSvetoslav Chekanov28-Mar-11 21:20 
    GeneralRe: how to run this project & to see how it works Pin
    reinerotto2-Sep-11 4:23
    memberreinerotto2-Sep-11 4:23 
    QuestionHow do I run the applet? Pin
    Darklomba1-Aug-07 11:44
    memberDarklomba1-Aug-07 11:44 
    AnswerRe: How do I run the applet? Pin
    Syed Mohammed Khawar27-Mar-11 21:59
    memberSyed Mohammed Khawar27-Mar-11 21:59 
    GeneralRe: How do I run the applet? Pin
    Svetoslav Chekanov28-Mar-11 21:16
    memberSvetoslav Chekanov28-Mar-11 21:16 
    AnswerRe: How do I run the applet? Pin
    Svetoslav Chekanov28-Mar-11 21:17
    memberSvetoslav Chekanov28-Mar-11 21:17 
    Generalprotocol detailed specifications Pin
    avinu28-Jul-07 22:58
    memberavinu28-Jul-07 22:58 
    QuestionHTTP Tunnel Pin
    Priyanka Bindumahavan29-Jan-07 23:26
    memberPriyanka Bindumahavan29-Jan-07 23:26 
    AnswerRe: HTTP Tunnel Pin
    sv_chekanov11-Jan-09 22:06
    membersv_chekanov11-Jan-09 22:06 
    GeneralNew problem.. need help. Pin
    addagol14-Dec-06 3:52
    memberaddagol14-Dec-06 3:52 
    GeneralRe: New problem.. need help. Pin
    Svetoslav Chekanov5-Aug-07 21:20
    memberSvetoslav Chekanov5-Aug-07 21:20 
    GeneralThank You and One question Pin
    Joshi Pranay22-Oct-06 7:54
    memberJoshi Pranay22-Oct-06 7:54 
    GeneralRe: Thank You and One question Pin
    Svetoslav Chekanov23-Oct-06 6:38
    memberSvetoslav Chekanov23-Oct-06 6:38 
    GeneralRe: Thank You and One question Pin
    Joshi Pranay23-Oct-06 8:45
    memberJoshi Pranay23-Oct-06 8:45 
    GeneralRe: Thank You and One question Pin
    Svetoslav Chekanov23-Oct-06 22:01
    memberSvetoslav Chekanov23-Oct-06 22:01 
    GeneralRe: Thank You and One question Pin
    Joshi Pranay25-Oct-06 9:25
    memberJoshi Pranay25-Oct-06 9:25 
    Generalabout firewall in java Pin
    meetbecks11-Oct-06 7:00
    membermeetbecks11-Oct-06 7:00 
    Generaloperating system user Pin
    vanichopra23-May-06 18:53
    membervanichopra23-May-06 18:53 
    GeneralABOUT UDP its urgent Pin
    pearlstar17-May-06 22:59
    memberpearlstar17-May-06 22:59 
    GeneralUDP support Pin
    pearlstar9-May-06 22:13
    memberpearlstar9-May-06 22:13 
    GeneralRe: UDP support Pin
    Svetoslav Chekanov17-May-06 23:37
    memberSvetoslav Chekanov17-May-06 23:37 
    Generalauthentication by name/passpord Pin
    pearlstar9-May-06 9:47
    memberpearlstar9-May-06 9:47 
    GeneralRe: authentication by name/passpord Pin
    Svetoslav Chekanov9-May-06 21:57
    memberSvetoslav Chekanov9-May-06 21:57 
    GeneralRe: authentication by name/passpord Pin
    wira_redi25-May-09 20:13
    memberwira_redi25-May-09 20:13 
    Generalneeded help to understand concept of socket Pin
    pearlstar5-Apr-06 11:03
    memberpearlstar5-Apr-06 11:03 
    GeneralRe: needed help to understand concept of socket Pin
    Svetoslav Chekanov5-Apr-06 23:30
    memberSvetoslav Chekanov5-Apr-06 23:30 
    GeneralRe: needed help to understand concept of socket Pin
    pearlstar7-Apr-06 5:37
    memberpearlstar7-Apr-06 5:37 
    QuestionHow to use socks5 Pin
    pearlstar2-Apr-06 21:36
    memberpearlstar2-Apr-06 21:36 
    AnswerRe: How to use socks5 Pin
    Svetoslav Chekanov2-Apr-06 21:41
    memberSvetoslav Chekanov2-Apr-06 21:41 
    GeneralA new Problem Pin
    jaramillo.santi23-Mar-06 18:03
    memberjaramillo.santi23-Mar-06 18:03 
    GeneralRe: A new Problem Pin
    jaramillo.santi23-Mar-06 18:17
    memberjaramillo.santi23-Mar-06 18:17 
    GeneralProblem... Pin
    jaramillo.santi24-Jan-06 18:59
    memberjaramillo.santi24-Jan-06 18:59 
    GeneralRe: Problem... Pin
    pearlstar28-Feb-06 19:11
    memberpearlstar28-Feb-06 19:11 
    GeneralWebsite proxy server Pin
    pvdwalt77726-Nov-05 6:19
    memberpvdwalt77726-Nov-05 6:19 
    GeneralWorks only on one machine. Pin
    vivekvsb5-Nov-05 23:26
    membervivekvsb5-Nov-05 23:26 
    Generalsocks doubt Pin
    psaras3-Nov-05 21:33
    memberpsaras3-Nov-05 21:33 
    GeneralPlease Help with SOCKS Pin
    mattoqua23-Oct-05 10:04
    membermattoqua23-Oct-05 10:04 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Terms of Use | Mobile
    Web02 | 2.8.171114.1 | Last Updated 23 Feb 2000
    Article Copyright 2000 by Svetoslav Chekanov
    Everything else Copyright © CodeProject, 1999-2017
    Layout: fixed | fluid